From 86a3f438bea43d6348a72898fea48009cff20130 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Mon, 13 Aug 2007 13:36:07 +0000 Subject: [PATCH] Print "no request" instead of "(null)" to debug log on client disconnect or error reading the incoming request. --- org.glite.lb.server/src/lb_http.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.server/src/lb_http.c b/org.glite.lb.server/src/lb_http.c index 3e2cb50..cc152da 100644 --- 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))) -- 1.8.2.3