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
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
stag
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
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
<https://bugs.python.org/issue42
Change by Barney Stratford :
--
keywords: +patch
pull_requests: +22448
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23567
___
Python tracker
<https://bugs.python.org/issu
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, nfds=1
New submission from Barney Stratford :
>>> import threading
>>> class foo (object):
... def __bool__ (self):
... return False
... def __call__ (self):
... print ("Running")
...
>>> threading.Thread (target = foo ()).start ()
The ex
New submission from Barney Stratford :
>>> class Eggs (object):
... def __init__ (self, number):
... self.__number = number
... def __repr__ (self):
... return "{} eggs".format (self.__number)
...
>>> Eggs (4)
4 eggs
>>> del Eggs.__new__
Traceback (mo
Barney Stratford added the comment:
You're absolutely right. I had elided the details of the locking from my
original use case, but now I look at it again, I see that even what I did have
wasn't enough.
I've made a new patch that takes a lock properly. A non-blocking acquisiti
Changes by Barney Stratford :
--
components: +Extension Modules -Library (Lib)
___
Python tracker
<http://bugs.python.org/issue24727>
___
___
Python-bugs-list m
New submission from Barney Stratford:
I have a use case where a daemon thread needs to write periodic updates to
sys.stdout. I'd prefer it not to print in the middle of a command being typed.
In order to achieve this, I have added to the readline module. There is now a
function to dete
11 matches
Mail list logo