Commit 234ee214 authored by Denis Bilenko's avatar Denis Bilenko

greentest: add xtest__issue91.py

parent ceb9ec58
from gevent.select import select
from gevent.server import StreamServer
from gevent import socket
def handler(socket, address):
while True:
if not socket.recv(1000):
break
server = StreamServer(('127.0.0.1', 0), handler)
server.start()
s = socket.create_connection(('127.0.0.1', server.server_port))
while True:
select([], [s.fileno()] * 10, [])
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