bug: (*Conn).Handshake()
is called upon (*UConn).Read()
#291
Labels
bug
Unexpected behavior confirmed and should be fixed
This should be considered a high priority bug.
In
crypto/tls
, upon calling(*Conn).Read()
,(*Conn).Handshake()
will be called if TLS handshake is not yet performed.However,
UConn
in uTLS did not correctly inherit this behavior. By fully inheriting(*Conn).Read()
, it also calls(*Conn).Handshake()
instead of(*UConn).Handshake()
, where the latter is the function performing a uTLS handshake and the former one performs defaultcrypto/tls
handshake.The text was updated successfully, but these errors were encountered: