How to detect non-graceful disconnect of Twisted on Linux?
Posted
by Victor Lin
on Stack Overflow
See other posts from Stack Overflow
or by Victor Lin
Published on 2010-06-09T06:12:15Z
Indexed on
2010/06/09
6:12 UTC
Read the original article
Hit count: 584
I wrote a server based on Twisted, and I encountered a problem, some of the clients are disconnected not gracefully. For example, the user pulls out the network cable.
For a while, the client on Windows is disconnected (the connectionLost is called, and it is also written in Twisted). And on the Linux server side, my connectionLost of twisted is never triggered. Even it try to writes data to client, but the connection is lost. Why Twisted can't detect those non-graceful disconnection (even write data to client) on Linux? How to makes Twisted detect non-graceful disconnections? Because the feature Twisted can't detect non-graceful, I have lots of zombie user on my server.
Thanks. Victor Lin.
© Stack Overflow or respective owner