[New-bugs-announce] [issue19182] Socket leak in logging.handlers

Esa Peuha report at bugs.python.org
Sun Oct 6 15:39:44 CEST 2013


New submission from Esa Peuha:

Running test_logging produces the following:

/home/peuha/python/cpython/Lib/logging/handlers.py:550: ResourceWarning: unclosed <socket.socket fd=4, family=1, type=2049, proto=0>
  self.retryTime = now + self.retryPeriod
/home/peuha/python/cpython/Lib/logging/handlers.py:550: ResourceWarning: unclosed <socket.socket fd=4, family=1, type=2049, proto=0>
  self.retryTime = now + self.retryPeriod

This turns out to be a bug in SocketHandler.makeSocket; the attachment should fix it.

----------
components: Library (Lib)
files: logging.handlers.diff
keywords: patch
messages: 199074
nosy: Esa.Peuha
priority: normal
severity: normal
status: open
title: Socket leak in logging.handlers
type: behavior
Added file: http://bugs.python.org/file31973/logging.handlers.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19182>
_______________________________________


More information about the New-bugs-announce mailing list