Commit f457842a authored by Denis Bilenko's avatar Denis Bilenko

test__issue58.py: support python 2.5

parent 5d3f08c3
......@@ -15,5 +15,8 @@ server = wsgi.WSGIServer(('', 0), error)
server.start()
conn = socket.create_connection(('127.0.0.1', server.server_port))
conn.sendall('GET / HTTP/1.1\r\nConnection: close\r\n\r\n')
with gevent.Timeout(0.1):
timeout = gevent.Timeout.start_new(0.1)
try:
conn.makefile(bufsize=1).read()
finally:
timeout.cancel()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment