Yes, I know it's not related to the static files now. But do I have to close socket in snap monad? Shouldn't it be closed by snap-server? 

ÔÚ 2012-1-9£¬ÏÂÎç2:29£¬ Gregory Collins дµÀ£º

2012/1/9 Eric Wong <wsysdu@gmail.com>
I run both of these commands and found out that there're sockets leaking.
Most of them are TCP connections in CLOSE_WAIT state. There're also some socket with "can't identify protocol".

So, What's the problem? Is it related to the timeout in the server config? I'm using the default value.

CLOSE_WAIT indicates that the other side has closed its side of the connection and the OS is waiting for you to close() the socket. At this point I'd start looking at your database layer.

G
--
Gregory Collins <greg@gregorycollins.net>