I was going through NGINX source code to implement keepalive for nginx
zeromq plugin that I have developed.
I have been inspired by ngx_http_upstream_keepalive_module. Was
why nginx uses a kind of two linkedlist based stack implementation to
implement keepalive connection pool. Why not use typical linkedlist
Kindly refer to ngx_http_upstream_keepalive_module.c
I used exactly like this without wondering why, now I kind of want to
Posted at Nginx Forum: