def sendEval(self, conn): stream = conn.getStream(self.streamID) self.headerFlagment = HPACK.encode(dict2list(stream.headers), False, False, False, conn.table) #TODO:this should be implemented in connection if self.flags&FLAG.PRIORITY == FLAG.PRIORITY: stream.weight = self.weight stream.setParentStream(self.E, conn.getStream(self.streamDependency)) if stream.state == STATE.IDLE: conn.setStreamState(self.streamID, STATE.OPEN) elif stream.state == STATE.RESERVED_L: conn.setStreamState(self.streamID, STATE.HCLOSED_R)
def sendEval(self, conn): self.headerFlagment = HPACK.encode(dict2list(conn.getStream(self.streamID).headers), False, False, False, conn.table) if conn.getStreamState(self.streamID) == STATE.IDLE: conn.setStreamState(self.streamID, STATE.RESERVED_L)