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

Changeset 649

Show
Ignore:
Timestamp:
09/14/05 14:26:56
Author:
lawouach
Message:

next() in SizeCheckWrapper? now raises MaxSizeExceeded? instead of StopIteration? for consistency when the max length is reached

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cpwsgiserver.py

    r648 r649  
    8989        data = self.rfile.next() 
    9090        self.bytes_read += len(data) 
    91         try: 
    92             self._check_length() 
    93         except: 
    94             raise StopIteration() 
     91        self._check_length() 
     92##      Normally the next method must raise StopIteration when it 
     93##      fails but CP expects MaxSizeExceeded  
     94##        try: 
     95##            self._check_length() 
     96##        except: 
     97##            raise StopIteration() 
    9598        return data 
    9699 

Hosted by WebFaction

Log in as guest/cpguest to create tickets