Print "no request" instead of "(null)" to debug log on client disconnect
authorZdeněk Salvet <salvet@ics.muni.cz>
Mon, 13 Aug 2007 13:36:07 +0000 (13:36 +0000)
committerZdeně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

index 3e2cb50..cc152da 100644 (file)
@@ -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)))