From 16143e698fb7839ca61e2dd960b89db1a2a06bb6 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Fri, 30 Sep 2011 09:21:12 +0200 Subject: [PATCH] added a check for http --- proto/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/http.c b/proto/http.c index 57655b78..87ee24a2 100644 --- a/proto/http.c +++ b/proto/http.c @@ -260,6 +260,7 @@ int uwsgi_proto_http_parser(struct wsgi_request *wsgi_req) { len = read(wsgi_req->poll.fd, wsgi_req->proto_parser_buf + wsgi_req->proto_parser_pos, uwsgi.buffer_size - wsgi_req->proto_parser_pos); if (len <= 0) { + uwsgi_log("errno = %d\n", errno); free(wsgi_req->proto_parser_buf); uwsgi_error("recv()"); return -1;