[issue34466] socket.settimeout working incorrectly for connect() method of AF_UNIX socket

2018-08-23 Thread Fedor Korotkiy
Fedor Korotkiy added the comment: Hello Benjamin. That would be appropriate workaround. Maybe we should update docs to mention it? -- ___ Python tracker ___

[issue34466] socket.settimeout working incorrectly for connect() method of AF_UNIX socket

2018-08-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think what you want to do is not use the timeout feature of Python sockets and instead use mysock.setsockopt(SO_SNDTIMEO, 5). -- nosy: +benjamin.peterson ___ Python tracker

[issue34466] socket.settimeout working incorrectly for connect() method of AF_UNIX socket

2018-08-22 Thread Fedor Korotkiy
New submission from Fedor Korotkiy : Attached program creates listening server socket, fills backlog queue with 2 client socket and performs third connect attempt after setting socket timeout to 5 second. I expect third connect() attempt to fail after specified timeout of 5 second. That is