git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7156b
)
Print "no request" instead of "(null)" to debug log on client disconnect
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Mon, 13 Aug 2007 13:36:07 +0000
(13:36 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Mon, 13 Aug 2007 13:36:07 +0000
(13:36 +0000)
or error reading the incoming request.
org.glite.lb.server/src/lb_http.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/lb_http.c
b/org.glite.lb.server/src/lb_http.c
index
3e2cb50
..
cc152da
100644
(file)
--- a/
org.glite.lb.server/src/lb_http.c
+++ b/
org.glite.lb.server/src/lb_http.c
@@
-28,8
+28,9
@@
int edg_wll_ServerHTTP(edg_wll_Context ctx)
if ( ctx->isProxy ) err = edg_wll_http_recv_proxy(ctx,&req,&hdr,&body);
else err = edg_wll_http_recv(ctx,&req,&hdr,&body,ctx->connections->serverConnection);
- dprintf(("[%d] %s\n",getpid(),req));
- if (body) dprintf(("\n%s\n\n",body));
+ if (req) dprintf(("[%d] request: %s\n",getpid(),req));
+ else dprintf(("no request\n"));
+ if (body) dprintf(("request body:\n%s\n\n",body));
if (!err) {
if ((err = edg_wll_Proto(ctx,req,hdr,body,&resp,&hdrOut,&bodyOut)))