>From the python socket API reference:
setdefaulttimeout( timeout)
Set the default timeout in floating seconds for new socket objects. A value
of None indicates that new socket objects have no timeout. When the socket
module is first imported, the default is None. New in version 2.3.
So if you:
import socket
socket.setdefaulttimeout(120)
before you import and invoke the minion functions that, in theory, should give
your sockets a 2 minute timeout, rather than the default (which you could call
getdefaulttimeout() to determine) on your system. The timeout value should be
in effect for the duration of your script, including when func ultimately
imports the socket module.
Hopefully this will work for you. Of course, if it's a long running process
then async is the way to go.
Phil
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list