Skip to content

Commit 37da0d7

Browse files
committed
fix: improve scan stability
1 parent e13cdd5 commit 37da0d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def _test_one(self, sem, session, ip):
3737
self.foundUnavailable.emit(ip, result[0])
3838
return
3939
total += result
40-
await asyncio.sleep(0.1)
40+
await asyncio.sleep(1.0)
4141
latency = total / self.repeat
4242
self.foundAvailable.emit(ip, latency)
4343

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def test_ip(session, ip, host, request_format):
4343
headers={'Host': host},
4444
allow_redirects=False,
4545
trace_request_ctx=ctx) as response:
46-
await response.read()
46+
await response.release()
4747
return ctx.duration
4848
except Exception as e:
4949
return (type(e).__name__, str(e))

0 commit comments

Comments
 (0)