poorconn.close_upon_acceptance

poorconn.close_upon_acceptance(s)

Shutdown and close the connection socket upon accepting.

Parameters

s (socket.socket) – The socket.socket object whose accept() function is to be wrapped.

Return type

None

Changed in version 0.2: Renamed from close_upon_accepting.