mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-19 14:36:34 -05:00
Fixed EC TX stall state deadlock on BackboneInterface initiator instances
This commit is contained in:
parent
49ae71e06c
commit
f0875ac44e
1 changed files with 9 additions and 0 deletions
|
|
@ -408,6 +408,14 @@ class BackboneInterface(Interface):
|
|||
RNS.log(f"Available ingress budget {RNS.prettyspeed(avail*8)}, hard-allocated {round(alloc*100.0, 2)}% ({RNS.prettyspeed(avail*alloc*8)}), handled in {RNS.prettyshorttime(taken, compact=True, tight=True)}", RNS.LOG_DEBUG)
|
||||
RNS.log(f"Holding for {RNS.prettyshorttime(hold, compact=True, tight=True)}, throttling handled in {RNS.prettyshorttime(taken, compact=True, tight=True)} at depth {q_depth}", RNS.LOG_DEBUG)
|
||||
|
||||
@staticmethod
|
||||
def _dp_ec_reset(interface):
|
||||
interface._dp_ec_prev_sent = 0
|
||||
interface._dp_ec_zero_ticks = 0
|
||||
interface._dp_ec_last_drain = time.time()
|
||||
interface.transmit_buffer = TransmitBuffer()
|
||||
interface.tx_stalled = False
|
||||
|
||||
@staticmethod
|
||||
def _dp_ec_evaluate(interface, now):
|
||||
tb = interface.transmit_buffer
|
||||
|
|
@ -434,6 +442,7 @@ class BackboneInterface(Interface):
|
|||
except Exception as e: RNS.log(f"Egress control could not close socket for {interface}: {e}", RNS.LOG_ERROR)
|
||||
except Exception as e: RNS.log(f"Egress control cleanup error for {interface}: {e}", RNS.LOG_ERROR)
|
||||
|
||||
BackboneInterface._dp_ec_reset(interface)
|
||||
interface.receive(b"")
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue