Commit b855435a authored by Denis Bilenko's avatar Denis Bilenko

Added test case for issue #58. Provided by Jon Aslund.

parent 17468451
import sys
import gevent
from gevent import wsgi
from gevent import socket
def error(env, start_response):
try:
raise ValueError('hello')
except Exception:
exc = sys.exc_info()
raise
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):
conn.makefile(bufsize=1).read()
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