mirror of
https://github.com/go-gost/x.git
synced 2026-10-21 03:35:11 +00:00
A session Dialed but not yet Handshaken has session.session == nil; a concurrent Dial treated it as dead (IsClosed() is true for nil sessions), deleted it and closed the base conn under the first caller's Handshake. Re-initializing on the nil-session case self-heals instead of failing the identity check.