Fixed SSL too long errors in CherryPy.

The fix is suggested by https://bitbucket.org/cherrypy/cherrypy/issue/1298/ssl-not-working
This commit is contained in:
Bas Stottelaar
2014-11-12 22:29:04 +01:00
parent 4aacbd2731
commit f495fc01bc

View File

@@ -1324,8 +1324,8 @@ class HTTPConnection(object):
def __init__(self, server, sock, makefile=CP_fileobject):
self.server = server
self.socket = sock
self.rfile = makefile(sock._sock, "rb", self.rbufsize)
self.wfile = makefile(sock._sock, "wb", self.wbufsize)
self.rfile = makefile(sock, "rb", self.rbufsize)
self.wfile = makefile(sock, "wb", self.wbufsize)
self.requests_seen = 0
def communicate(self):