Open lucas-nelson opened 1 year ago
Running in Elixir 1.14.5 and Erlang 26.0, I was experiencing the call to increment hanging, and then other calls in other processes erroring with lost value 1 due to port closure.
increment
lost value 1 due to port closure
Trying to work out what was going on, I got down to:
iex(1)> init_conn = Statix.Conn.new(System.get_env("STATSD_HOST"), String.to_integer(System.get_env("STATSD_PORT"))) %Statix.Conn{sock: nil, header: [1, 31, 189, 172, 16, 138, 8, 0, 0, 0, 0]} iex(2)> open_conn = Statix.Conn.open(init_conn) %Statix.Conn{ sock: #Port<0.27>, header: [1, 31, 189, 172, 16, 138, 8, 0, 0, 0, 0] } iex(3)> Statix.Conn.transmit(open_conn, :counter, "counter.testing", "1", []) ** (EXIT from #PID<0.857.0>) shell process exited with reason: :einval
This seems related to https://github.com/erlang/otp/issues/7130 which won't be fixed.
After downgrading to Erlang 25, that sequence above works with an :ok result.
:ok
Is this project still maintained? Could the call to Port.command be changed / fixed?
Port.command
We're seeing the same thing
same
@lexmag I have the same problem.
Same thing here
Running in Elixir 1.14.5 and Erlang 26.0, I was experiencing the call to
increment
hanging, and then other calls in other processes erroring withlost value 1 due to port closure
.Trying to work out what was going on, I got down to:
This seems related to https://github.com/erlang/otp/issues/7130 which won't be fixed.
After downgrading to Erlang 25, that sequence above works with an
:ok
result.Is this project still maintained? Could the call to
Port.command
be changed / fixed?