Skip to content

Commit

Permalink
chore(elixir): send tcp version header inmediately
Browse files Browse the repository at this point in the history
do not wait for connecting side header
  • Loading branch information
polvorin committed Jun 28, 2024
1 parent 7422441 commit 1216f7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down

0 comments on commit 1216f7d

Please sign in to comment.