Fix for http://bitbucket.org/which_linden/eventlet/issue/2/more-issues-with-python-26. Thanks for the report, anonymous. :-)
This commit is contained in:
@@ -189,6 +189,10 @@ class GreenSocket(object):
|
|||||||
# act non-blocking
|
# act non-blocking
|
||||||
self.act_non_blocking = False
|
self.act_non_blocking = False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def _sock(self):
|
||||||
|
return self
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def family(self):
|
def family(self):
|
||||||
return self.fd.family
|
return self.fd.family
|
||||||
|
@@ -220,6 +220,15 @@ class TestGreenIo(LimitedTestCase):
|
|||||||
self.assert_(len(results1) > 0)
|
self.assert_(len(results1) > 0)
|
||||||
self.assert_(len(results2) > 0)
|
self.assert_(len(results2) > 0)
|
||||||
|
|
||||||
|
def test_wrap_socket(self):
|
||||||
|
try:
|
||||||
|
import ssl
|
||||||
|
except ImportError:
|
||||||
|
pass # pre-2.6
|
||||||
|
else:
|
||||||
|
sock = api.tcp_listener(('127.0.0.1', 0))
|
||||||
|
ssl_sock = ssl.wrap_socket(sock)
|
||||||
|
|
||||||
|
|
||||||
class SSLTest(LimitedTestCase):
|
class SSLTest(LimitedTestCase):
|
||||||
def test_duplex_response(self):
|
def test_duplex_response(self):
|
||||||
|
Reference in New Issue
Block a user