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
00dfd5ba
Commit
00dfd5ba
authored
Jan 14, 2017
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one more place to use localhost for appveyor clarity in tests
parent
a197ce4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
examples/wsgiserver_ssl.py
examples/wsgiserver_ssl.py
+2
-2
src/greentest/test___example_servers.py
src/greentest/test___example_servers.py
+3
-3
No files found.
examples/wsgiserver_ssl.py
View file @
00dfd5ba
...
...
@@ -13,8 +13,8 @@ def hello_world(env, start_response):
start_response
(
'404 Not Found'
,
[(
'Content-Type'
,
'text/html'
)])
return
[
b'<h1>Not Found</h1>'
]
print
(
'Serving on https://
127.0.0.1
:8443'
)
server
=
pywsgi
.
WSGIServer
((
'
0.0.0.0
'
,
8443
),
hello_world
,
keyfile
=
'server.key'
,
certfile
=
'server.crt'
)
print
(
'Serving on https://:8443'
)
server
=
pywsgi
.
WSGIServer
((
''
,
8443
),
hello_world
,
keyfile
=
'server.key'
,
certfile
=
'server.crt'
)
# to start the server asynchronously, call server.start()
# we use blocking serve_forever() here because we have no other jobs
server
.
serve_forever
()
src/greentest/test___example_servers.py
View file @
00dfd5ba
...
...
@@ -13,7 +13,7 @@ import ssl
class
Test_wsgiserver
(
util
.
TestServer
):
server
=
'wsgiserver.py'
URL
=
'http://
127.0.0.1
:8088'
URL
=
'http://
localhost
:8088'
PORT
=
8088
not_found_message
=
b'<h1>Not Found</h1>'
ssl_ctx
=
None
...
...
@@ -53,7 +53,7 @@ class Test_wsgiserver(util.TestServer):
self
.
_test_hello
()
# Now create a connection and only partway finish
# the transaction
sock
=
socket
.
create_connection
((
'
127.0.0.1
'
,
self
.
PORT
))
sock
=
socket
.
create_connection
((
'
localhost
'
,
self
.
PORT
))
ssl_sock
=
None
if
self
.
_use_ssl
:
ssl_sock
=
ssl
.
wrap_socket
(
sock
)
...
...
@@ -86,7 +86,7 @@ class Test_wsgiserver(util.TestServer):
class
Test_wsgiserver_ssl
(
Test_wsgiserver
):
server
=
'wsgiserver_ssl.py'
URL
=
'https://
127.0.0.1
:8443'
URL
=
'https://
localhost
:8443'
PORT
=
8443
_use_ssl
=
True
...
...
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