Commit 75815c15 authored by Witold Krecicki's avatar Witold Krecicki Committed by Witold Krecicki
Browse files

Fix a possible deadlock in TCP accepting

Each network thread holds an array of locks, indexed by a hash
of fd. When we accept a connection we hold a lock in accepting thread.
We then generate the thread number and lock bucket for the new
connection socket - if we hit the same thread and lock bucket as
accepting socket we get a deadlock. Avoid this by checking if we're
in the same thread/lock bucket and not locking in this case.
parent 4d498b3d
Pipeline #15020 passed with stages
in 10 minutes and 55 seconds