This function was unsafe for IO to expose, so it needs to be removed from there.
This commit copies the TCP-specific logic from IO.Engine into the TCP.Engine where it belongs.
This commit also removes the now-obsolete TCP.Engine.connect_error method, as connection errors
will all now be surfaced via an IO.Action.OpenFailed action sent to the actor as a deferred IO action.
This function was unsafe for
IO
to expose, so it needs to be removed from there.This commit copies the TCP-specific logic from
IO.Engine
into theTCP.Engine
where it belongs.This commit also removes the now-obsolete
TCP.Engine.connect_error
method, as connection errors will all now be surfaced via anIO.Action.OpenFailed
action sent to the actor as a deferred IO action.