Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python3/vdebug/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ async def run_async(self):
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((self.__host, self.__port))
s.listen(5)
s.settimeout(5)
while 1:
try:
# using ensure_future here since before 3.7, this is not a coroutine, but returns a future
self.__socket_task = asyncio.ensure_future(self.__loop.sock_accept(s))
client, address = await self.__socket_task
# set resulting socket to blocking
client.setblocking(True)
client.settimeout(5)

self.log("Found client, %s" % str(address))
self.__output_q.put((client, address))
Expand Down