(self)
| 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: |
nothing calls this directly
no test coverage detected