id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,uname,nginx_version 1582,func ngx_proxy_protocol_read encounter an incomplete line,njuzpw@…,,"when I read the source code of nginx, i found this in file :http/ngx_http_request.c if we set proxy_protol like this: [listen 80 proxy_protocol;], and then in func ngx_http_wait_request_handler, we will call n = c->recv(c, b->last, size); .... p = ngx_proxy_protocol_read(c, b->pos, b->last); to see if this is an legal proxy_protocol message. there is condition that if data in b is not an complete line of proxy_protocol message, ngx_proxy_protocol_read will set p to NULL instead of adding rev to event loop, and this will case a failure. I'm wondering if is reasonable here to read proxy_protocol message only once for we may get an incomplete line and case an error(I have tried and it failed indeed) ",defect,closed,minor,,other,1.12.x,invalid,proxy protocol incomplete line,,2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux,"nginx version: nginx/1.10.1 built by clang 7.3.0 (clang-703.0.31) configure arguments: --with-stream --prefix=output"