Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
36c29081
Commit
36c29081
authored
May 28, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for the last fix: set arg properly in wait_write and wait_readwrite. Patch by Ralf Schmitt.
parent
1e80a425
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
gevent/socket.py
gevent/socket.py
+2
-0
No files found.
gevent/socket.py
View file @
36c29081
...
...
@@ -171,6 +171,7 @@ def wait_write(fileno, timeout=-1, timeout_exc=_socket.timeout('timed out'), eve
else
:
assert
event
.
callback
==
_wait_helper
,
event
.
callback
assert
event
.
arg
is
None
,
'This event is already used by another greenlet: %r'
%
(
event
.
arg
,
)
event
.
arg
=
(
getcurrent
(),
timeout_exc
)
event
.
add
(
timeout
)
try
:
switch_result
=
get_hub
().
switch
()
...
...
@@ -192,6 +193,7 @@ def wait_readwrite(fileno, timeout=-1, timeout_exc=_socket.timeout('timed out'),
else
:
assert
event
.
callback
==
_wait_helper
,
event
.
callback
assert
event
.
arg
is
None
,
'This event is already used by another greenlet: %r'
%
(
event
.
arg
,
)
event
.
arg
=
(
getcurrent
(),
timeout_exc
)
event
.
add
(
timeout
)
try
:
switch_result
=
get_hub
().
switch
()
...
...
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