** Description changed:

+ [Impact]
+ Restarting rsyslog causing logging from python based daemons to lockup.
+ 
+ [Test Case]
+ == script
+ #!/usr/bin/env python
+ 
+ import eventlet
+ from logging.handlers import SysLogHandler
+ import time
+ import logging
+ 
+ eventlet.patcher.monkey_patch(all=False, socket=True)
+ 
+ logger = logging.getLogger('log')
+ logger.addHandler(SysLogHandler('/dev/log'))
+ 
+ while True:
+     print "send a message to logger"
+     logger.error("syslog test")
+     time.sleep(1)
+ ==
+ sudo service rsyslog stop ("send a message to logger" log messages will just 
stop)
+ 
+ [Regression Potential]
+ The proposed fix is in all py2.7 versions > 12.04 right now and is not 
causing problems.
+ 
+ [Original Bug Report]
  Python logging SysLogHandler to log into SysLog doesn't close UNIX-socket
  when connection failed. This bug is solved on the Python Issue Tracker at
  http://bugs.python.org/issue15179 and affects python package with version
  2.7.3-0ubuntu2 at Ubuntu 12.04 LTS.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1081022

Title:
  logging.SysLogHandler doesn't close UNIX socket when connection failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1081022/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to