[Twisted-Python] adding a new connection type

Itamar Shtull-Trauring twisted at itamarst.org
Mon May 27 04:30:36 EDT 2002


Eric C. Newton wrote:

> Among other things, I needed to add a shutdown() method, which socket
> provides and Twisted seems to need.

What shutdown(2) does as opposed to close() is close the socket 
immediately, instead of just lowering the refcount for the socket. This 
was a workaround for an issue in Win32 process running, and is therefore 
not relevant to you. Feel free to override this method and use 
sock.close() instead of shutdown(2) in your class.






More information about the Twisted-Python mailing list