logging.SysLogHandler doesn't close UNIX socket when connection failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
Restarting rsyslog causing logging from python based daemons to lockup.
[Test Case]
sudo apt-get install python-eventlet
== run this script script
#!/usr/bin/env python
import eventlet
from logging.handlers import SysLogHandler
import time
import logging
eventlet.
logger = logging.
logger.
while True:
print "send a message to logger"
logger.
time.sleep(1)
==
sudo service rsyslog stop
sudo service rsyslog start
("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://
2.7.3-0ubuntu2 at Ubuntu 12.04 LTS.
Related branches
Changed in python2.7 (Ubuntu Precise): | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
description: | updated |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Status changed to 'Confirmed' because the bug affects multiple users.