mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 23:09:48 +00:00
Fix excessive timeout
This commit is contained in:
@ -118,7 +118,7 @@ class BufferingTestCase(cases.BaseServerTestCase):
|
|||||||
|
|
||||||
def _getLine(self, client) -> bytes:
|
def _getLine(self, client) -> bytes:
|
||||||
line = b""
|
line = b""
|
||||||
for _ in range(600):
|
for _ in range(30):
|
||||||
try:
|
try:
|
||||||
data = self.clients[client].conn.recv(4096)
|
data = self.clients[client].conn.recv(4096)
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
@ -127,4 +127,5 @@ class BufferingTestCase(cases.BaseServerTestCase):
|
|||||||
if data.endswith(b"\r\n"):
|
if data.endswith(b"\r\n"):
|
||||||
return line
|
return line
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
print(f"{client}: Waiting...")
|
||||||
return line
|
return line
|
||||||
|
Reference in New Issue
Block a user