2 parents 1f3ba27 + d54b80e commit 15b6910Copy full SHA for 15b6910
1 file changed
python3/vdebug/connection.py
@@ -185,14 +185,14 @@ async def run_async(self):
185
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
186
s.bind((self.__host, self.__port))
187
s.listen(5)
188
+ s.settimeout(5)
189
while 1:
190
try:
191
# using ensure_future here since before 3.7, this is not a coroutine, but returns a future
192
self.__socket_task = asyncio.ensure_future(self.__loop.sock_accept(s))
193
client, address = await self.__socket_task
194
# set resulting socket to blocking
195
client.setblocking(True)
- client.settimeout(5)
196
197
self.log("Found client, %s" % str(address))
198
self.__output_q.put((client, address))
0 commit comments