[Haskell-cafe] "too many open files" using snap
wsysdu at gmail.com
Mon Jan 9 07:45:25 CET 2012
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 at 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.
> Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe