To debug the issue further, I wrote a simple Java based HTTP client. This
client would open a socket to the nginx server, write the request line (GET
/ HTTP/1.1), write the host header, write the Connection:close header and
commit the request. While committing the write the CRLF character twice.
I
We have a Java based reverse proxy(developed in-house) which is talking to
Nginx which is a proxy_pass for gunicorn server(python/django). The HTTP
request flows from Java reverse proxy (JRPxy) to nginx to gunicorn. All
these servers are running on the same machine.
Previously JRPxy was sending Co