Files
darkfi/bin
draoi 69c6530a5d net: move downgrade to greylist into remove_sub_on_stop()
Previously there was a bug which happened v rarely in which:

> Outbound and Manual Session are waiting on a stop signal
> Outbound/ Manual receives a stop signal, de-registers channel (in move_host)
> Channel is selected by Slot 1 to be connected to, state is changed to Connect
> remove_sub_on_stop() receives a stop signal, de-registers channel
> Channel is selected by Slot 5 connected to, state is changed to Connect
> Slot 1 connects, state is changed to Connected
> Slot 5 connects -> panic!

To avoid this happening, we move unregister() out of move_host and perform the sequence:

recv stop signal -> move_host to greylist (if outbond/manual) -> unregister()

We do this inside the shared method remove_sub_on_stop to ensure the execution path always happens in the same way.
2024-04-01 13:33:38 +02:00
..
2024-03-05 08:47:43 +01:00
2024-03-26 15:18:08 +02:00
2024-02-09 09:39:27 +01:00
2024-03-07 14:17:17 +01:00
2024-03-07 14:17:17 +01:00
2024-03-26 15:46:01 +02:00
2024-03-26 15:02:21 +02:00
2024-03-26 15:02:21 +02:00