Skip to content

Commit 9509fd2

Browse files
Artem Yushkovskiyasvetlov
authored andcommitted
[3.5] [3.5] Fix issue #3644: PY38: web_protocol.RequestHandler mismatch _keepalive field with __slots__ (#3727) (#3731)
(cherry picked from commit bfb99eb) Co-authored-by: Artem Yushkovskiy <[email protected]> (cherry picked from commit ff1c9de) Co-authored-by: Artem Yushkovskiy <[email protected]>
1 parent 167fe9f commit 9509fd2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES/3644.bugfix

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)