(self)
| 136 | self.queue = queue.Queue() # report connections and exceptions to client |
| 137 | |
| 138 | def run(self): |
| 139 | while self.running: |
| 140 | (sockconn, peer) = self.s.accept() |
| 141 | if self.running: |
| 142 | conn = Socks5Connection(self, sockconn, peer) |
| 143 | thread = threading.Thread(None, conn.handle) |
| 144 | thread.daemon = True |
| 145 | thread.start() |
| 146 | |
| 147 | def start(self): |
| 148 | assert(not self.running) |
nothing calls this directly
no test coverage detected