Hello!
On Wed, Apr 2, 2014 at 12:27 PM, Jai wrote:
> Will check carefully again, but currently it doesn't seem like the server
> is closing the connection but it indeed is closed by the nginx looking
> through strace.
>
nginx will close the connection when the remote already closes the
connection or there is unread data in the system receive buffer.
>
> Think of it like a memcache module set up, so we have our proxy handler
> (based on memcache handler) which hooks into
> create_request/process_header... phases. The connections are managed by ngx
> upstream module since it is a normal TCP connection and hopefully keep alive
> module.
>
You can test if the standard ngx_memcached module works for you. If
yes, then it's more likely to be a bug in your own nginx module or
your remote server.
Regards,
-agentzh