[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99f0c0207faa by Vinay Sajip in branch '2.7': Issue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita for the patch. http://hg.python.org/cpython/rev/99f0c0207faa New changeset 1bc1a14feb70 by Vinay Sajip in branch '3.2': Issue

[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This seems a flawed contract; either connect() should work (in which > case the socket will need closing when it's finished with) or it should > fail, not connect and not require a close call (as it isn't connected) socket.close() closes the file descriptor,

[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Vinay Sajip
Vinay Sajip added the comment: Why should the socket need closing if the connect fails? This seems a flawed contract; either connect() should work (in which case the socket will need closing when it's finished with) or it should fail, not connect and not require a close call (as it isn't conn

[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Kazutaka Morita
Changes by Kazutaka Morita : -- hgrepos: -137 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Kazutaka Morita
Changes by Kazutaka Morita : -- hgrepos: +137 keywords: +patch Added file: http://bugs.python.org/file26154/syslog.patch ___ Python tracker ___ __

[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Kazutaka Morita
New submission from Kazutaka Morita : If we stop a syslog daemon when running the following program, it leads to an infinite loop. == #!/usr/bin/env python import eventlet from logging.handlers import SysLogHandler import time import logging eventlet.patcher.monkey_patch(all=False, socket=True