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

Method _serve

test/functional/feature_torcontrol.py:48–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 self.thread.join(timeout=5)
47
48 def _serve(self):
49 while self.running:
50 try:
51 self.conn, _ = self.sock.accept()
52 self.conn.settimeout(1.0)
53 self.conn_ready.set()
54 self._handle_connection(self.conn)
55 except socket.timeout:
56 continue
57 except OSError:
58 break
59
60 def _handle_connection(self, conn):
61 try:

Callers

nothing calls this directly

Calls 3

_handle_connectionMethod · 0.95
acceptMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected