socket timeout setting for long running operations

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

 



Hello, is there currently a way to set the timeout for long running
operations. For example I am using the services module to restart a
(Java) process but the process takes a long time to stop. I end up
getting a socket timeout error. I'm thinking that if I had to add this
then the timeout should be a parameter for the func client interface or
something more general instead of just for the service module. Seems
like a general timeout setting would be nice.

 ['REMOTE_ERROR', 'socket.timeout', "(110, 'Operation timed out.')", '
File "/usr/lib/python2.4/site-packages/func/overlord/client.py", line
433, in process_server\n    retval = getattr(conn, meth)(*args[:])\n
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__\n
return self.__send(self.__name, args)\n   File
"/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request\n
verbose=self.__verbose\n   File "/usr/lib64/python2.4/xmlrpclib.py",
line 1131, in request\n    errcode, errmsg, headers = h.getreply()\n
File "/usr/lib64/python2.4/httplib.py", line 1137, in getreply\n
response = self._conn.getresponse()\n   File
"/usr/lib64/python2.4/httplib.py", line 866, in getresponse\n
response.begin()\n   File "/usr/lib64/python2.4/httplib.py", line 336,
in begin\n    version, status, reason = self._read_status()\n   File
"/usr/lib64/python2.4/httplib.py", line 294, in _read_status\n    line =
self.fp.readline()\n   File "/usr/lib64/python2.4/socket.py", line 325,
in readline\n    data = recv(1)\n   File
"/usr/lib/python2.4/site-packages/certmaster/SSLConnection.py", line
132, in recv\n    raise socket.timeout((110, "Operation timed
out."))\n']

func-0.24-1.el5

Thanks!



_______________________________________________
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