diff --git a/src/http.c b/src/http.c index 33b752a5..b96c759f 100644 --- a/src/http.c +++ b/src/http.c @@ -219,9 +219,14 @@ static void _http_on_read(uv_stream_t* stream, ssize_t read_size, const uv_buf_t _http_add_body_bytes(connection, connection->headers_buffer + parse_result, connection->headers_buffer_length - parse_result); } + else if (parse_result == -2) + { + /* Incomplete. Will try again next time. */ + } else { tf_printf("phr_parse_request: %d\n", parse_result); + _http_connection_destroy(connection); } } else