Revert "_seq does not appear to be an integer for peers"
This reverts commit ad1906f5e23cc96700268d2690a6e16ec432c2d5.
This commit is contained in:
parent
6e970c28b4
commit
1da0b97314
@ -1795,26 +1795,25 @@ class routerHBP(HBSYSTEM):
|
|||||||
self.STATUS[_slot]['_bcsq'] = True
|
self.STATUS[_slot]['_bcsq'] = True
|
||||||
return
|
return
|
||||||
|
|
||||||
_int_seq == int(_seq.decode())
|
|
||||||
#Duplicate handling#
|
#Duplicate handling#
|
||||||
#Duplicate complete packet
|
#Duplicate complete packet
|
||||||
if self.STATUS[_slot]['lastData'] and self.STATUS[_slot]['lastData'] == _data and _int_seq > 1:
|
if self.STATUS[_slot]['lastData'] and self.STATUS[_slot]['lastData'] == _data and _seq > 1:
|
||||||
logger.warning("(%s) *PacketControl* last packet is a complete duplicate of the previous one, disgarding. Stream ID:, %s TGID: %s",self._system,int_id(_stream_id),int_id(_dst_id))
|
logger.warning("(%s) *PacketControl* last packet is a complete duplicate of the previous one, disgarding. Stream ID:, %s TGID: %s",self._system,int_id(_stream_id),int_id(_dst_id))
|
||||||
return
|
return
|
||||||
#Handle inbound duplicates
|
#Handle inbound duplicates
|
||||||
if _int_seq and _int_seq == self.STATUS[_slot]['lastSeq']:
|
if _seq and _seq == self.STATUS[_slot]['lastSeq']:
|
||||||
logger.warning("(%s) *PacketControl* Duplicate sequence number %s, disgarding. Stream ID:, %s TGID: %s",self._system,_int_seq,int_id(_stream_id),int_id(_dst_id))
|
logger.warning("(%s) *PacketControl* Duplicate sequence number %s, disgarding. Stream ID:, %s TGID: %s",self._system,_seq,int_id(_stream_id),int_id(_dst_id))
|
||||||
return
|
return
|
||||||
#Inbound out-of-order packets
|
#Inbound out-of-order packets
|
||||||
if _int_seq and self.STATUS[_slot]['lastSeq'] and (_int_seq != 1) and (_int_seq < self.STATUS[_slot]['lastSeq']):
|
if _seq and self.STATUS[_slot]['lastSeq'] and (_seq != 1) and (_seq < self.STATUS[_slot]['lastSeq']):
|
||||||
logger.warning("%s) *PacketControl* Out of order packet - last SEQ: %s, this SEQ: %s, disgarding. Stream ID:, %s TGID: %s ",self._system,self.STATUS[_slot]['lastSeq'],_int_seq,int_id(_stream_id),int_id(_dst_id))
|
logger.warning("%s) *PacketControl* Out of order packet - last SEQ: %s, this SEQ: %s, disgarding. Stream ID:, %s TGID: %s ",self._system,self.STATUS[_slot]['lastSeq'],_seq,int_id(_stream_id),int_id(_dst_id))
|
||||||
return
|
return
|
||||||
#Inbound missed packets
|
#Inbound missed packets
|
||||||
if _int_seq and self.STATUS[_slot]['lastSeq'] and _int_seq > (self.STATUS[_slot]['lastSeq']+1):
|
if _seq and self.STATUS[_slot]['lastSeq'] and _seq > (self.STATUS[_slot]['lastSeq']+1):
|
||||||
logger.warning("(%s) *PacketControl* Missed packet(s) - last SEQ: %s, this SEQ: %s. Stream ID:, %s TGID: %s ",self._system,self.STATUS[_slot]['lastSeq'],_int_seq,int_id(_stream_id),int_id(_dst_id))
|
logger.warning("(%s) *PacketControl* Missed packet(s) - last SEQ: %s, this SEQ: %s. Stream ID:, %s TGID: %s ",self._system,self.STATUS[_slot]['lastSeq'],_seq,int_id(_stream_id),int_id(_dst_id))
|
||||||
|
|
||||||
#Save this sequence number
|
#Save this sequence number
|
||||||
self.STATUS[_slot]['lastSeq'] = _int_seq
|
self.STATUS[_slot]['lastSeq'] = _seq
|
||||||
#Save this packet
|
#Save this packet
|
||||||
self.STATUS[_slot]['lastData'] = _data
|
self.STATUS[_slot]['lastData'] = _data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user