File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 \n Host: 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 \n Host: localhost\r \n Connection: 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
You can’t perform that action at this time.
0 commit comments