As I was running apachebench on a nginx -> node.js server, I noticed after a certain number of concurrent requests were set, some of the requests were not being followed through to completion. The results of ss -s
output are as follows:
TCP: 26006 (estab 660, closed 25296, orphaned 38, synrecv 0, timewait 25295/0), ports 0
It looks like the majority of the connections have been closed and are waiting. I imagine this will work well under a heavy load.
Is it possible to "recycle" these connections faster? They seem to persist for quite a long time (10 seconds or so?)