boring
boring copied to clipboard
Revamp handshake entrypoints
trafficstars
I first introduce setup_accept and setup_connect to simplify looping over an interrupted handshake.
This led me to the realisation that removing accept and connect both simplifies the handshake error type and allows us to more easily distinguish between setup failures (caused by the user of the library) and actual errors happening on the stream while performing handshakes.