K 10 svn:author V 7 glebius K 8 svn:date V 27 2017-09-14T18:05:54.375615Z K 7 svn:log V 590 Fix locking in soisconnected(). When a newborn socket moves from incomplete queue to complete one, we need to obtain the listening socket lock after the child, which is a wrong order. The old code did that in potentially endless loop of mtx_trylock(). The new one does only one attempt of mtx_trylock(), and in case of failure references listening socket, unlocks child and locks everything in right order. In case if listening socket shuts down during that, just bail out. Reported & tested by: Jason Eggleston Reported & tested by: Jason Wolfe END