Skip to content

Commit 775c00b

Browse files
committed
increased socket timeout in keepalive tests
1 parent 4d29125 commit 775c00b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_keepalive_simple.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_keep_alive_http11(self):
5858
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
5959
try:
6060
sock.connect(('localhost', self.PORT))
61-
sock.settimeout(0.5)
61+
sock.settimeout(2.0)
6262

6363
responses = []
6464

@@ -119,7 +119,7 @@ def test_connection_header_keep_alive(self):
119119
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
120120
try:
121121
sock.connect(('localhost', self.PORT))
122-
sock.settimeout(0.5)
122+
sock.settimeout(2.0)
123123

124124
request = b"GET /test HTTP/1.1\r\nHost: localhost\r\n\r\n"
125125
sock.send(request)
@@ -167,7 +167,7 @@ def test_protocol_version(self):
167167
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
168168
try:
169169
sock.connect(('localhost', self.PORT))
170-
sock.settimeout(0.5)
170+
sock.settimeout(2.0)
171171

172172
request = b"GET /test HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n"
173173
sock.send(request)
@@ -197,7 +197,7 @@ def test_multiple_requests_increment_counter(self):
197197
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
198198
try:
199199
sock.connect(('localhost', self.PORT))
200-
sock.settimeout(0.5)
200+
sock.settimeout(2.0)
201201

202202
request_numbers = []
203203

0 commit comments

Comments
 (0)