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 <rep...@bugs.python.org>
<http://bugs.python.org/issue16168>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to