1
0
Files
electrum/lib
Neil Booth 97b5f6d6a3 Fix two races in interface.py.
First, close the socket from the thread itself rather than from
the stop() function.  This prevents another thread closing the
socket that the interface thread is simultaneously using.

Second, it occasionally would happen that the parent thread such as
network.py start() an interface, do a send_request() and timeout
waiting for a response (timeouts are 0.1s).  It would check
is_connected(), get False, and assume the connection has failed.
In fact the thread hadn't even been scheduled or gotten around to
completing the socket connection.  Fix by having self.connected
start out True.  If the connection fails or times out, we set
connected to False soon enough.

Finally for correctness we need to deepcopy a send_request() rather
than take a reference to it.
2015-05-08 07:32:31 +09:00
..
2015-02-17 15:01:06 +01:00
2015-04-11 11:41:02 -04:00
2015-02-24 19:32:59 +01:00
2015-05-08 07:32:31 +09:00
2015-04-30 17:33:29 +02:00
2015-05-05 21:00:35 +02:00
2015-05-02 15:12:00 +02:00
2015-04-24 21:26:08 +02:00
2015-05-02 16:26:27 +02:00