Commit 86179403 authored by Denis Bilenko's avatar Denis Bilenko

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

--HG--
extra : transplant_source : gf6%EDL%83%96%40U%3Frv%B7i%FD%9F/%F6%18%9C
parent 91ccae02
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