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:
parent
ff25a486a0
commit
a24d3a1d96
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue