Ticket #35: 666-proxy.patch

File 666-proxy.patch, 0.9 kB (added by dx, 17 months ago)

Two little fixes to pass the GCF

  • Socket.py

     
    186186        the same as Socket, dont use it unleast you know what you are doing 
    187187        (and you dont know what you are doing :P) 
    188188        ''' 
     189        buffer = '' 
    189190        while len(buffer) < length: 
    190191            buffer += self.receive() 
    191192        return buffer 
  • core.py

     
    256256            raise RedirectionError, 'Too many redirections' 
    257257         
    258258        # Recieve GCF payload if any 
    259         if command == 'GCF' and self._proxy == None: 
     259        if command == 'GCF': 
    260260            self.socket.receivePayload( int( params ) ) 
    261261 
    262262        (command, tid, params) = self.socket.receiveCommand()