mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 05:31:44 +00:00
added a check for http
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user