Skip to content

Commit ff1c9de

Browse files
Artem Yushkovskiyasvetlov
Artem Yushkovskiy
authored andcommitted
[3.5] Fix issue #3644: PY38: web_protocol.RequestHandler mismatch _keepalive field with __slots__ (#3727)
(cherry picked from commit bfb99eb) Co-authored-by: Artem Yushkovskiy <artem.yushkovskiy@neuromation.io>
1 parent 61825e7 commit ff1c9de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES/3644.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix _keepalive field in __slots__ of web_protocol.RequestHandler.

aiohttp/web_protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class RequestHandler(BaseProtocol):
107107
"""
108108
KEEPALIVE_RESCHEDULE_DELAY = 1
109109

110-
__slots__ = ('_request_count', '_keep_alive', '_manager',
110+
__slots__ = ('_request_count', '_keepalive', '_manager',
111111
'_request_handler', '_request_factory', '_tcp_keepalive',
112112
'_keepalive_time', '_keepalive_handle', '_keepalive_timeout',
113113
'_lingering_time', '_messages', '_message_tail',

0 commit comments

Comments
 (0)