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
13f09271
Commit
13f09271
authored
Apr 26, 2014
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #420 from fantix/socket_send
fix _socket3 send/sendall
parents
dd798290
8534dced
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
gevent/_socket3.py
gevent/_socket3.py
+1
-4
No files found.
gevent/_socket3.py
View file @
13f09271
...
...
@@ -3,7 +3,6 @@
import
io
import
time
from
gevent
import
_socketcommon
from
gevent.hub
import
text_type
import
_socket
from
io
import
BlockingIOError
...
...
@@ -288,15 +287,13 @@ class socket(_socket.socket):
raise
self
.
_wait
(
self
.
_write_event
)
try
:
return
sock
.
send
(
data
,
flags
)
return
_socket
.
socket
.
send
(
self
,
data
,
flags
)
except
error
as
ex2
:
if
ex2
.
args
[
0
]
==
EWOULDBLOCK
:
return
0
raise
def
sendall
(
self
,
data
,
flags
=
0
):
if
isinstance
(
data
,
text_type
):
data
=
data
.
encode
()
if
self
.
timeout
is
None
:
data_sent
=
0
while
data_sent
<
len
(
data
):
...
...
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