MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / close

Method close

test/functional/test_framework/p2p.py:753–760  ·  view source on GitHub ↗

Close the connections and network event loop.

(self, *, timeout)

Source from the content-addressed store, hash-verified

751 self.network_event_loop.run_forever()
752
753 def close(self, *, timeout):
754 """Close the connections and network event loop."""
755 self.network_event_loop.call_soon_threadsafe(self.network_event_loop.stop)
756 wait_until_helper_internal(lambda: not self.network_event_loop.is_running(), timeout=timeout)
757 self.network_event_loop.close()
758 self.join(timeout)
759 # Safe to remove event loop.
760 NetworkThread.network_event_loop = None
761
762 @classmethod
763 def listen(cls, p2p, callback, port=None, addr=None, idx=1):

Callers 15

get_node_outputMethod · 0.45
call_with_authFunction · 0.45
rpccallFunction · 0.45
get_node_outputFunction · 0.45
run_testMethod · 0.45
close_sockMethod · 0.45
test_initMethod · 0.45
run_testMethod · 0.45
stopMethod · 0.45
_handle_connectionMethod · 0.45

Calls 3

is_runningMethod · 0.80
joinMethod · 0.80

Tested by 6

test_initMethod · 0.36
get_nextMethod · 0.36
shutdownMethod · 0.36
inspect_sqlite_dbMethod · 0.36
is_node_stoppedMethod · 0.36