Open rogerbinns opened 13 years ago
Added and will be part of the next release
This is still open? I have to shutdown my connections like this to stop them from staying in use:
for conn in gm_client.connection_list:
try:
conn.gearman_socket.shutdown(socket.SHUT_RDWR)
conn.gearman_socket.close()
conn._reset_connection()
except:
pass
The sockets this library makes are not marked close on exec and consequently are inherited by any child processes such as those executed by the subprocess module.
Code is: