Skip to content

Commit 15b6910

Browse files
Merge pull request #488 from vim-vdebug/dont-just-timeout-when-connected
we should not just timeout when there is a debugging session
2 parents 1f3ba27 + d54b80e commit 15b6910

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python3/vdebug/connection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@ async def run_async(self):
185185
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
186186
s.bind((self.__host, self.__port))
187187
s.listen(5)
188+
s.settimeout(5)
188189
while 1:
189190
try:
190191
# using ensure_future here since before 3.7, this is not a coroutine, but returns a future
191192
self.__socket_task = asyncio.ensure_future(self.__loop.sock_accept(s))
192193
client, address = await self.__socket_task
193194
# set resulting socket to blocking
194195
client.setblocking(True)
195-
client.settimeout(5)
196196

197197
self.log("Found client, %s" % str(address))
198198
self.__output_q.put((client, address))

0 commit comments

Comments
 (0)