That looks like a promising fix, thanks for getting on this so quickly! If I can ask, what was the workload/test that you used that reproduced it internally so quickly? On Tue, Sep 20, 2022 at 8:50 AM Maurizio Lombardi <mlombard@xxxxxxxxxx> wrote: > > st 14. 9. 2022 v 20:00 odesílatel Paul Dagnelie <pcd@xxxxxxxxxxx> napsal: > > We haven't managed to reproduce it in-house or with > > debugging statements enabled yet, but if it is the root cause it seems > > to me the best fix would be to add or use an existing flag that is set > > during reconnection (before the signal is sent), and have the rx and > > tx threads check it after enabling signals to close the window for the > > race. > > FYI, > > we are going to test this patch: > http://bsdbackstore.eu/misc/0001-target-login-should-wait-until-tx-rx-threads-have-pr.patch > > Maurizio > -- Paul Dagnelie