Skip to content

Commit d522636

Browse files
committed
chore(elixir): send tcp version header inmediately
do not wait for connecting side header
1 parent e9219e4 commit d522636

File tree

1 file changed

+1
-1
lines changed
  • implementations/elixir/ockam/ockam/lib/ockam/transport/tcp

1 file changed

+1
-1
lines changed

implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/handler.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ defmodule Ockam.Transport.TCP.Handler do
3030

3131
# Header, protocol version "1" must be the first thing exchanged.
3232
# It isn't send anymore after the initial exchange.
33-
{:ok, <<1>>} = transport.recv(socket, 1, 5000)
3433
transport.send(socket, <<1>>)
34+
{:ok, <<1>>} = transport.recv(socket, 1, 5000)
3535

3636
:ok =
3737
:inet.setopts(socket, [

0 commit comments

Comments
 (0)