On Wed Aug 16 13:14:42 2023 +0000, Francois Gouget wrote:
Well, I did say in bug 54866 that it looks like the extra net session is not created after the first SESSION_INCREMENT call so I guess this patch could work. But I as far as I can tell that's just how the timing of the race condition works and I don't think we should rely on that.
One way or another, tests of a global state like that will always be theoretically a subject to race. In essence, my patch reduces problem probability, just like your solution.