Ensure the socket passed in is a gevent socket.

Undo my previous change to "make it work" and instead ensure the socket
is correct. This will help prevent future generations from running code
that just hangs and instead crashes.
Merge pull request #2 from iamtyler/master

Ensure the socket passed in is a gevent socket.