0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

ircd::net: Prevent any handshake on finished socket out of handle_connect.

This commit is contained in:
Jason Volk 2019-04-16 19:23:30 -07:00
parent ff25a486a0
commit a24d3a1d96

View file

@ -3107,6 +3107,9 @@ noexcept try
if(timedout && is(ec, errc::operation_canceled))
ec = make_error_code(errc::timed_out);
if(!ec && opts.handshake && fini)
ec = make_error_code(errc::operation_canceled);
// A connect error; abort here by calling the user back with error.
if(ec)
return call_user(callback, ec);