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
f8f1f487
Commit
f8f1f487
authored
Mar 22, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync windows socketpair with Python 3.5+
parent
5f509a94
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
src/gevent/_socket3.py
src/gevent/_socket3.py
+3
-4
src/gevent/tests/test__threading_monkey_in_thread.py
src/gevent/tests/test__threading_monkey_in_thread.py
+1
-1
src/gevent/threading.py
src/gevent/threading.py
+0
-1
No files found.
src/gevent/_socket3.py
View file @
f8f1f487
...
...
@@ -678,9 +678,8 @@ if hasattr(_socket, "socketpair"):
else
:
# pragma: no cover
# Origin: https://gist.github.com/4325783, by Geert Jansen. Public domain.
# gevent: taken from 3.6 release. Expected to be used only on Win. Added to Win/3.5
# gevent: for < 3.5, pass the default value of 128 to lsock.listen()
# (3.5+ uses this as a default and the original code passed no value)
# gevent: taken from 3.6 release, confirmed unchanged in 3.7 and
# 3.8a1. Expected to be used only on Win. Added to Win/3.5
_LOCALHOST
=
'127.0.0.1'
_LOCALHOST_V6
=
'::1'
...
...
@@ -703,7 +702,7 @@ else: # pragma: no cover
lsock
=
socket
(
family
,
type
,
proto
)
try
:
lsock
.
bind
((
host
,
0
))
lsock
.
listen
(
128
)
lsock
.
listen
()
# On IPv6, ignore flow_info and scope_id
addr
,
port
=
lsock
.
getsockname
()[:
2
]
csock
=
socket
(
family
,
type
,
proto
)
...
...
src/gevent/tests/test__threading_monkey_in_thread.py
View file @
f8f1f487
# We can monkey-patch in a thread, but things don't work as expected.
from
__future__
import
print_function
import
sys
import
threading
from
gevent
import
monkey
import
gevent.testing
as
greentest
...
...
src/gevent/threading.py
View file @
f8f1f487
...
...
@@ -157,7 +157,6 @@ else:
return
main_threads
[
0
]
import
sys
if
PY3
:
# XXX: Issue 18808 breaks us on Python 3.4+.
# Thread objects now expect a callback from the interpreter itself
...
...
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