Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1883

Show
Ignore:
Timestamp:
01/27/08 23:25:20
Author:
fumanchu
Message:

Fix for incorrect use of unbound method with SSL send. Needs porting to trunk regardless of the future of this branch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/598-sendall/cherrypy/wsgiserver/__init__.py

    r1876 r1883  
    4141 
    4242import base64 
     43import os 
    4344import Queue 
    44 import os 
    4545import re 
    4646quoted_slash = re.compile("(?i)%2F") 
     
    712712    readline = _ssl_wrap_method(socket._fileobject.readline, is_reader=True) 
    713713    readlines = _ssl_wrap_method(socket._fileobject.readlines, is_reader=True) 
     714     
     715    def send(self, *args, **kwargs): 
     716        return self._sock.send(*args, **kwargs) 
     717    send = _ssl_wrap_method(send) 
    714718 
    715719 
     
    747751            self.rfile = SSL_fileobject(sock, "r", self.rbufsize) 
    748752            self.rfile.ssl_timeout = timeout 
    749             self.send = _ssl_wrap_method(sock.send) 
     753            self.send = self.rfile.send 
    750754        else: 
    751755            self.rfile = sock.makefile("rb", self.rbufsize) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets