re: Is there a Time Limit in Func ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>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
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux