[issue42513] Socket.recv hangs

2021-01-07 Thread Barney Stratford
Barney Stratford added the comment: Sure. So, I'm using STOMP to connect to a messaging server. STOMP uses heartbeats to detect and close failed connections. The problem was that if the connection fails before the protocol has set up its heartbeats then there's nothing to stop the whole

[issue42513] Socket.recv hangs

2021-01-07 Thread Jakub Stasiak
Jakub Stasiak added the comment: If the edge-case is vaguely socket/file descriptor-related and not application-specific or otherwise secret do you mind sharing what is it? (I'm just curious) -- ___ Python tracker

[issue42513] Socket.recv hangs

2021-01-07 Thread Barney Stratford
Barney Stratford added the comment: Instrumented code shows that the poll is in fact working completely correctly, and I've run into a documented edge-case in an unrelated area. Hence, closing the bug report and cancelling the pull request. -- resolution: -> not a bug stage: patch

[issue42513] Socket.recv hangs

2021-01-07 Thread Barney Stratford
Barney Stratford added the comment: The instrumented code froze today, so I'm finally able to probe the bug. Despite what that website said, it's looking like checking the return fron the poll syscall isn't the problem here. I'm probably going to close this bug report as not a bug, but want

[issue42513] Socket.recv hangs

2020-12-27 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42513] Socket.recv hangs

2020-12-27 Thread Barney Stratford
Barney Stratford added the comment: Still waiting for the instrumented code to hang. It sometimes runs for a month or two before freezing. -- ___ Python tracker ___

[issue42513] Socket.recv hangs

2020-11-30 Thread Barney Stratford
Change by Barney Stratford : -- keywords: +patch pull_requests: +22448 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23567 ___ Python tracker

[issue42513] Socket.recv hangs

2020-11-30 Thread Barney Stratford
New submission from Barney Stratford : import socket self.__socket = socket.create_connection ([host, port], 1) value = self.__socket.recv (4096) This code sometimes hangs despite having a non-None timeout specified. GDB says: (gdb) bt #0 0x76d33c94 in __GI___poll (fds=0x7ea55148,