-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Client exit" service test sometimes fails #411
Labels
Comments
Similar test failure from a Travis build: 1) test clients exit if the server dies handling a message (Thrift.Generator.ServiceTest)
test/thrift/generator/service_test.exs:396
No message matching {:EXIT, ^client, {:error, :closed}} after 100ms.
The following variables were pinned:
client = #PID<0.1744.0>
Process mailbox:
{:EXIT, #PID<0.1739.0>, :killed}
{:EXIT, #PID<0.1744.0>, {:error, :econnreset}}
code: assert_receive {:EXIT, ^client, {:error, :closed}}
stacktrace:
test/thrift/generator/service_test.exs:423: (test)
The following output was logged:
05:50:48.207 [error] Failed to connect to 127.0.0.1:36840 due to connection reset by peer
05:50:48.226 [error] GenServer #PID<0.1740.0> terminating
** (stop) killed
Last message: {:EXIT, #PID<0.1739.0>, :killed}
State: {:state, {#PID<0.1740.0>, :ranch_listener_sup}, :rest_for_one, [{:child, #PID<0.1742.0>, :ranch_acceptors_sup, {:ranch_acceptors_sup, :start_link, [Thrift.Generator.ServiceTest.ServerSpy, :ranch_tcp]}, :permanent, :infinity, :supervisor, [:ranch_acceptors_sup]}, {:child, #PID<0.1741.0>, :ranch_conns_sup, {:ranch_conns_sup, :start_link, [Thrift.Generator.ServiceTest.ServerSpy, :ranch_tcp, Thrift.Binary.Framed.ProtocolHandler]}, :permanent, :infinity, :supervisor, [:ranch_conns_sup]}], :undefined, 1, 5, [], 0, :ranch_listener_sup, {Thrift.Generator.ServiceTest.ServerSpy, :ranch_tcp, Thrift.Binary.Framed.ProtocolHandler}}
05:50:48.230 [error] GenServer #PID<0.1744.0> terminating
** (stop) {:error, :econnreset}
Last message: nil
State: %Thrift.Binary.Framed.Client.State{host: '127.0.0.1', port: 36840, seq_id: 0, sock: nil, ssl_enabled: false, ssl_opts: [], tcp_opts: [], timeout: 5000} |
I observed similar when using interactive shell
Seems like the connection get closed after sometime like 30 sec ~ 1 min. Anyone knows why? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I occasionally get the following error locally:
The text was updated successfully, but these errors were encountered: