Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8308db5c
Commit
8308db5c
authored
8 years ago
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.5 (asyncio)
parents
91f9def4
32dae3d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Lib/asyncio/streams.py
Lib/asyncio/streams.py
+7
-4
No files found.
Lib/asyncio/streams.py
View file @
8308db5c
...
...
@@ -242,11 +242,14 @@ class StreamReaderProtocol(FlowControlMixin, protocols.Protocol):
self
.
_loop
.
create_task
(
res
)
def
connection_lost
(
self
,
exc
):
if
self
.
_stream_reader
is
not
None
:
if
exc
is
None
:
self
.
_stream_reader
.
feed_eof
()
else
:
self
.
_stream_reader
.
set_exception
(
exc
)
super
().
connection_lost
(
exc
)
self
.
_stream_reader
=
None
self
.
_stream_writer
=
None
def
data_received
(
self
,
data
):
self
.
_stream_reader
.
feed_data
(
data
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment