Tests: fixed test_settings_header_read_timeout_update.
This commit is contained in:
@@ -32,12 +32,17 @@ Connection: close
|
||||
self.conf({'http': { 'header_read_timeout': 4 }}, '/settings')
|
||||
|
||||
(resp, sock) = self.http(b"""GET / HTTP/1.1
|
||||
""", start=True, raw=True)
|
||||
""", start=True, raw=True, no_recv=True)
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
(resp, sock) = self.http(b"""Host: localhost
|
||||
""", start=True, sock=sock, raw=True)
|
||||
""", start=True, sock=sock, raw=True, no_recv=True)
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
(resp, sock) = self.http(b"""X-Blah: blah
|
||||
""", start=True, sock=sock, raw=True, no_recv=True)
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
@@ -45,8 +50,6 @@ Connection: close
|
||||
|
||||
""", sock=sock, raw=True)
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
self.assertEqual(resp['status'], 408,
|
||||
'status header read timeout update')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user