Fix excessive timeout

This commit is contained in:
2021-08-13 08:46:17 +02:00
parent 57a08a0a57
commit de66606b4f

View File

@ -118,7 +118,7 @@ class BufferingTestCase(cases.BaseServerTestCase):
def _getLine(self, client) -> bytes:
line = b""
for _ in range(600):
for _ in range(30):
try:
data = self.clients[client].conn.recv(4096)
except socket.timeout:
@ -127,4 +127,5 @@ class BufferingTestCase(cases.BaseServerTestCase):
if data.endswith(b"\r\n"):
return line
time.sleep(0.1)
print(f"{client}: Waiting...")
return line