[issue16168] SysLogHandler constructor ignores socktype arg when address refers to a Unix Domain Socket
Vitaly
report at bugs.python.org
Tue Oct 9 00:03:03 CEST 2012
New submission from Vitaly:
_connect_unixsocket() (see below) does not use socktype value that was passed into SysLogHandler.__init__():
def _connect_unixsocket(self, address):
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
# syslog may require either DGRAM or STREAM sockets
try:
self.socket.connect(address)
except socket.error:
self.socket.close()
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.socket.connect(address)
----------
components: Library (Lib)
messages: 172418
nosy: vitaly
priority: normal
severity: normal
status: open
title: SysLogHandler constructor ignores socktype arg when address refers to a Unix Domain Socket
versions: Python 2.7, Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16168>
_______________________________________
More information about the Python-bugs-list
mailing list