forked from Hay1tsme/artemis
adb: fix timeout issue
This commit is contained in:
parent
14fa0f5e8e
commit
cc68b7f6c6
@ -74,7 +74,7 @@ class AimedbServlette():
|
|||||||
self.logger.debug(f"Connection made from {writer.get_extra_info('peername')[0]}")
|
self.logger.debug(f"Connection made from {writer.get_extra_info('peername')[0]}")
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
data: bytes = await reader.read()
|
data: bytes = await reader.read(4096)
|
||||||
if len(data) == 0:
|
if len(data) == 0:
|
||||||
self.logger.debug("Connection closed")
|
self.logger.debug("Connection closed")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user