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
b4dd21e0
Commit
b4dd21e0
authored
Mar 23, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use localhost for windows.
parent
9edbba34
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
changelog.rst
changelog.rst
+2
-2
greentest/test__pywsgi.py
greentest/test__pywsgi.py
+3
-2
greentest/test__socket_close.py
greentest/test__socket_close.py
+2
-2
No files found.
changelog.rst
View file @
b4dd21e0
...
...
@@ -51,8 +51,8 @@
attempted at every import. This could lead to scattered "gevent"
directories and undependable results.
- Servers: Default to AF_INET6 when binding to all addresses. This
supports both IPv4 and IPv6 connections
. Original change in
:pr:`495` by Felix Kaiser.
supports both IPv4 and IPv6 connections
(except perhaps on Windows).
Original change in
:pr:`495` by Felix Kaiser.
1.1.0 (Mar 5, 2016)
...
...
greentest/test__pywsgi.py
View file @
b4dd21e0
...
...
@@ -287,8 +287,9 @@ class TestCase(greentest.TestCase):
def
connect
(
self
):
# connect on ipv4, even though we bound to ipv6 too
# to prove ipv4 works
conn
=
socket
.
create_connection
((
'127.0.0.1'
,
self
.
port
))
# to prove ipv4 works...except on Windows, it apparently doesn't.
# So use the hostname.
conn
=
socket
.
create_connection
((
'localhost'
,
self
.
port
))
self
.
connected
.
append
(
weakref
.
ref
(
conn
))
result
=
conn
if
PY3
:
...
...
greentest/test__socket_close.py
View file @
b4dd21e0
...
...
@@ -24,7 +24,7 @@ class Test(greentest.TestCase):
def
test_recv_closed
(
self
):
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
connect
((
'
127.0.0.1
'
,
self
.
server
.
server_port
))
sock
.
connect
((
'
localhost
'
,
self
.
server
.
server_port
))
receiver
=
gevent
.
spawn
(
sock
.
recv
,
25
)
try
:
gevent
.
sleep
(
0.001
)
...
...
@@ -39,7 +39,7 @@ class Test(greentest.TestCase):
def
test_recv_twice
(
self
):
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
connect
((
'
127.0.0.1
'
,
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