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
fbf0e481
Commit
fbf0e481
authored
Mar 18, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for recvmsg_into. Add changelog. Fixes #773.
parent
283b6fea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
changelog.rst
changelog.rst
+3
-0
gevent/_socket3.py
gevent/_socket3.py
+9
-0
greentest/patched_tests_setup.py
greentest/patched_tests_setup.py
+1
-0
No files found.
changelog.rst
View file @
fbf0e481
...
@@ -26,6 +26,9 @@
...
@@ -26,6 +26,9 @@
``start_response`` do not contain a carriage return or newline in
``start_response`` do not contain a carriage return or newline in
order to prevent HTTP response splitting (header injection), raising
order to prevent HTTP response splitting (header injection), raising
a :exc:`ValueError` if they do. See :issue:`775`.
a :exc:`ValueError` if they do. See :issue:`775`.
- Python 3: Add support for :meth:`socket.socket.sendmsg`,
:meth:`socket.socket.recvmsg` and :meth:`socket.socket.recvmsg_into`
on platforms where they are defined. Initial :pr:`773` by Jakub Klama.
1.1.0 (Mar 5, 2016)
1.1.0 (Mar 5, 2016)
===================
===================
...
...
gevent/_socket3.py
View file @
fbf0e481
...
@@ -334,6 +334,15 @@ class socket(object):
...
@@ -334,6 +334,15 @@ class socket(object):
raise
raise
self
.
_wait
(
self
.
_read_event
)
self
.
_wait
(
self
.
_read_event
)
def
recvmsg_into
(
self
,
*
args
):
while
True
:
try
:
return
_socket
.
socket
.
recvmsg_into
(
self
.
_sock
,
*
args
)
except
error
as
ex
:
if
ex
.
args
[
0
]
!=
EWOULDBLOCK
or
self
.
timeout
==
0.0
:
raise
self
.
_wait
(
self
.
_read_event
)
def
recvfrom
(
self
,
*
args
):
def
recvfrom
(
self
,
*
args
):
while
True
:
while
True
:
try
:
try
:
...
...
greentest/patched_tests_setup.py
View file @
fbf0e481
...
@@ -421,6 +421,7 @@ if sys.version_info[:2] >= (3, 4):
...
@@ -421,6 +421,7 @@ if sys.version_info[:2] >= (3, 4):
'test_socket.InterruptedRecvTimeoutTest.testInterruptedSendTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedSendTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedSendtoTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedSendtoTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvmsgTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvmsgTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvmsgIntoTimeout'
,
'test_socket.InterruptedSendTimeoutTest.testInterruptedSendmsgTimeout'
,
'test_socket.InterruptedSendTimeoutTest.testInterruptedSendmsgTimeout'
,
]
]
...
...
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