From 1216f7d46d1574435f7fd9d5287597644387b043 Mon Sep 17 00:00:00 2001 From: Pablo Polvorin Date: Fri, 28 Jun 2024 14:08:59 -0300 Subject: [PATCH] chore(elixir): send tcp version header inmediately do not wait for connecting side header --- .../elixir/ockam/ockam/lib/ockam/transport/tcp/handler.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/handler.ex b/implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/handler.ex index 366a173819e..fd44d60989e 100644 --- a/implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/handler.ex +++ b/implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/handler.ex @@ -30,8 +30,8 @@ defmodule Ockam.Transport.TCP.Handler do # Header, protocol version "1" must be the first thing exchanged. # It isn't send anymore after the initial exchange. - {:ok, <<1>>} = transport.recv(socket, 1, 5000) transport.send(socket, <<1>>) + {:ok, <<1>>} = transport.recv(socket, 1, 5000) :ok = :inet.setopts(socket, [