MCPcopy Create free account
hub / github.com/LUX-Core/lux / run

Method run

test/functional/test_framework/socks5.py:136–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 self.queue = queue.Queue() # report connections and exceptions to client
135
136 def run(self):
137 while self.running:
138 (sockconn, peer) = self.s.accept()
139 if self.running:
140 conn = Socks5Connection(self, sockconn, peer)
141 thread = threading.Thread(None, conn.handle)
142 thread.daemon = True
143 thread.start()
144
145 def start(self):
146 assert(not self.running)

Callers 1

run_testMethod · 0.45

Calls 4

ThreadMethod · 0.80
Socks5ConnectionClass · 0.70
acceptMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected