Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: break out of reading from the association if we can't get to rel…
…ay (#245) * fix: return early on failure to upgrade * fix: add `ERR_READ` connection errors to track non-closure errors * Close the association on invalid ciphers and packets to release resources. * Break out of the association `Read()` loop on non-close read errors. * Add `nil` checks. * Simplify breaking out of the read loop for all initial packet errors. * Simplify further by just checking the `targetConn`. * Remove unnecessary `clientConn.Close()`. * Improve comment slightly.
- Loading branch information