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
344541af
Commit
344541af
authored
Dec 08, 2017
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use libuv as fallback from libev cffi
parent
24e8c7fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/gevent/core.py
src/gevent/core.py
+4
-2
src/greentest/test__socket_close.py
src/greentest/test__socket_close.py
+3
-3
No files found.
src/gevent/core.py
View file @
344541af
...
...
@@ -19,8 +19,10 @@ except ImportError:
if
lib
==
'libuv'
:
from
gevent.libuv
import
loop
as
_core
else
:
try
:
from
gevent.libev
import
corecffi
as
_core
except
ImportError
:
from
gevent.libuv
import
loop
as
_core
copy_globals
(
_core
,
globals
())
...
...
src/greentest/test__socket_close.py
View file @
344541af
...
...
@@ -17,7 +17,7 @@ class Test(greentest.TestCase):
error_fatal
=
False
def
setUp
(
self
):
self
.
server
=
server
.
StreamServer
((
greentest
.
DEFAULT_BIND_ADDR
,
0
),
readall
)
self
.
server
=
server
.
StreamServer
((
'127.0.0.1'
,
0
),
readall
)
self
.
server
.
start
()
def
tearDown
(
self
):
...
...
@@ -25,7 +25,7 @@ class Test(greentest.TestCase):
def
test_recv_closed
(
self
):
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
connect
((
greentest
.
DEFAULT_LOCAL_HOST_ADDR
,
self
.
server
.
server_port
))
sock
.
connect
((
'localhost'
,
self
.
server
.
server_port
))
receiver
=
gevent
.
spawn
(
sock
.
recv
,
25
)
try
:
gevent
.
sleep
(
0.001
)
...
...
@@ -40,7 +40,7 @@ class Test(greentest.TestCase):
def
test_recv_twice
(
self
):
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
connect
((
greentest
.
DEFAULT_LOCAL_HOST_ADDR
,
self
.
server
.
server_port
))
sock
.
connect
((
'localhost'
,
self
.
server
.
server_port
))
receiver
=
gevent
.
spawn
(
sock
.
recv
,
25
)
try
:
gevent
.
sleep
(
0.001
)
...
...
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