Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
4af92009
Commit
4af92009
authored
Sep 29, 2017
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iter_read: also treat 0-byte read as disconnection
parent
d169b55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mitogen/master.py
mitogen/master.py
+2
-1
No files found.
mitogen/master.py
View file @
4af92009
...
...
@@ -174,7 +174,8 @@ def iter_read(fd, deadline=None):
continue
s
,
disconnected
=
mitogen
.
core
.
io_op
(
os
.
read
,
fd
,
4096
)
if
disconnected
:
IOLOG
.
debug
(
'iter_read(%r) -> %r'
,
fd
,
s
)
if
disconnected
or
not
s
:
raise
mitogen
.
core
.
StreamError
(
'EOF on stream; last 300 bytes received: %r'
%
(
''
.
join
(
bits
)[
-
300
:],)
...
...
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