Changeset 536

Show
Ignore:
Timestamp:
09/02/08 09:07:46 (4 months ago)
Author:
p3sho
Message:

The OPEN frame is now sent with a separate id (and not taking the one of the last packet) so that it works in Opera

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/daemon/orbited/cometsession.py

    r494 r536  
    320320        if not self.open: 
    321321            self.open = True 
     322            self.packetId += 1 
    322323            self.cometTransport.sendPacket("open", self.packetId) 
    323324        self.cometTransport.flush() 
     
    372373        if ackId <= self.lastAckId: 
    373374            return 
    374         for i in range(ackId - self.lastAckId): 
     375        for i in range(ackId - self.lastAckId - 1): # -1 as the OPEN packet need not be ack'ed 
    375376            self.unackQueue.pop(0) 
    376377        self.lastAckId = ackId