Fixed error where the RequestTimeout test wasn't actually testing the correct behaviour

Fixed error where KeepAliveTimeout wasn't being triggered in the test suite, when using uvloop
Fixed test cases when using other asyncio loops such as uvloop
Fixed Flake8 linting errors
This commit is contained in:
Ashley Sommer
2017-09-13 10:18:36 +10:00
parent 173f94216a
commit 8eb59ad4dc
4 changed files with 95 additions and 23 deletions

View File

@@ -129,7 +129,7 @@ class Config(dict):
self.KEEP_ALIVE = keep_alive
# Apache httpd server default keepalive timeout = 5 seconds
# Nginx server default keepalive timeout = 75 seconds
# Nginx performance tuning guidelines uses keepalive timeout = 15 seconds
# Nginx performance tuning guidelines uses keepalive = 15 seconds
# IE client hard keepalive limit = 60 seconds
# Firefox client hard keepalive limit = 115 seconds

View File

@@ -193,7 +193,6 @@ class HttpProtocol(asyncio.Protocol):
log.info('KeepAlive Timeout. Closing connection.')
self.transport.close()
# -------------------------------------------- #
# Parsing
# -------------------------------------------- #