Robert Hardy wrote:

> No I don't think so. In my case it seems to be hanging during an xmlrpc 
> call, which attempts to get new hosts from the server. I haven't yet found 
> many good examples of using xmlrpc from Python.
> 
> I'm hoping to implement some kind of time out. The hosts from the server 
> are great, but it's a lot more important to keep watching the logs on the 
> local machine.

I do see a timeout whith a log similar to yours, except that DH does not 
hang there:

2008-06-05 19:29:09,529 - denyfileutil: INFO     num entries purged: 0
2008-06-05 19:32:18,825 - sync        : ERROR    (110, 'Connection timed 
out')
Traceback (most recent call last):
   File "/usr/lib64/python2.5/site-packages/DenyHosts/sync.py", line 
117, in rece
ive_new_hosts
     self.__prefs.get("SYNC_DOWNLOAD_RESILIENCY"))
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1147, in __call__
     return self.__send(self.__name, args)
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1437, in __request
     verbose=self.__verbose
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1183, in request
     self.send_content(h, request_body)
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1297, in send_content
     connection.endheaders()
   File "/usr/lib64/python2.5/httplib.py", line 856, in endheaders
     self._send_output()
   File "/usr/lib64/python2.5/httplib.py", line 728, in _send_output
     self.send(msg)
   File "/usr/lib64/python2.5/httplib.py", line 695, in send
     self.connect()
   File "/usr/lib64/python2.5/httplib.py", line 679, in connect
     raise socket.error, msg
error: (110, 'Connection timed out')
2008-06-05 20:32:19,461 - denyfileutil: INFO     purging entries older 
than: Tue Jun  3 20:32:19 2008

When it was apparently stuck, the last part of the log looked like this, 
but notice that it logged when I shut it down 2 days later:

2008-06-01 14:13:36,617 - sync        : ERROR    (110, 'Connection timed 
out')
Traceback (most recent call last):
   File "/usr/lib64/python2.5/site-packages/DenyHosts/sync.py", line 
100, in __se
nd_new_hosts
     self.__server.add_hosts(hosts)
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1147, in __call__
     return self.__send(self.__name, args)
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1437, in __request
     verbose=self.__verbose
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1183, in request
     self.send_content(h, request_body)
   File "/usr/lib64/python2.5/xmlrpclib.py", line 1297, in send_content
     connection.endheaders()
   File "/usr/lib64/python2.5/httplib.py", line 856, in endheaders
     self._send_output()
   File "/usr/lib64/python2.5/httplib.py", line 728, in _send_output
     self.send(msg)
   File "/usr/lib64/python2.5/httplib.py", line 695, in send
     self.connect()
   File "/usr/lib64/python2.5/httplib.py", line 679, in connect
     raise socket.error, msg
error: (110, 'Connection timed out')
2008-06-01 14:13:36,643 - sync        : INFO     sent 1 new host
2008-06-03 14:47:59,698 - denyhosts   : INFO     DenyHosts daemon is 
shutting down

So, I think the time out is working fine, the problem is something else.
-- 
René Berber


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to