added a check for http

This commit is contained in:
roberto@debian32
2011-09-30 09:21:12 +02:00
parent 4259946e3b
commit 16143e698f
+1
View File
@@ -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;