Skip to content
Myr

Make server set stop_event right after closing its socket

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Braulio Valdivielso Martínez · committed by Braulio Valdivielso Martínez · parent 11ad502 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:testserver/server.py+1 added-1 removed
34 unmodified lines
35 self.handler(sock)36 37 finally:38 self.ready_event.set() # just in case of exception39 self.stop_event.set()39 sock.close()40 self.stop_event.set()4142 def _create_socket_and_bind(self):43 sock = socket.socket()44 sock.bind((self.host, self.port))
13 unmodified lines