Skip to content

Instantly share code, notes, and snippets.

@Elizafox
Created January 9, 2013 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elizafox/4493128 to your computer and use it in GitHub Desktop.
Save Elizafox/4493128 to your computer and use it in GitHub Desktop.
Test case for problem in gevent
# This works as expected (Python docs specify it should)
import socket, ssl
# This fails
#from gevent import socket, ssl
f = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s = ssl.wrap_socket(f)
s.connect(('irc.interlinked.me', 9999))
while True:
print(s.recv(512).decode('UTF-8'))
@fantix
Copy link

fantix commented Jan 11, 2013

Would you please tweak it a little bit and add this into the greentests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment