Questions tagged [ranch]

Ranch is a socket acceptor pool for TCP protocols for Erlang.

Ranch is a socket acceptor pool for TCP protocols for .

Ranch aims to provide the necessary capabilities to accept TCP connections with a small code base and low latency while being easy to use directly as an application or to embed into your own.

13 questions
4
votes
1 answer

Cowboy/Ranch kills handler process when client closes connection

I have Phoenix application with complex business logic behind HTTP endpoint. This logic includes interaction with database and few external services and once request processing has been started it must not be interrupted till all operations will be…
3
votes
1 answer

What are the steps to successfully run Ranch on windows?

Please what steps do we need to take to get Ranch working successfully on windows? There is a very instructive set of examples in a great blog series which i am trying to follow here:…
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
2
votes
1 answer

How to get monitoring stats on Erlang Ranch

I'm new to Elixir. I'm getting timeouts from my Elixir app during load testing. Any idea how to find out, at any point in time, how many connections are open and how many requests are queued up waiting to be processed? I can already see that the…
enamrik
  • 2,292
  • 2
  • 27
  • 42
2
votes
1 answer

erlang socket (using ranch) close in a short time?

i use ranch to listen socket, but in a short time about five seconds, ranch closed the socket, and my setting of socket is above, so what' wrong? {ok, _} = ranch:start_listener(server,200, ranch_tcp, [{port, 5555},{active, once}, …
colin
  • 41
  • 6
2
votes
2 answers

case_clause error after successful response [cowboy rest]

my erlang server generates a case_clause error after every request for some reason. Here is my code: keychain_no_auth_handler.erl -module(keychain_no_auth_handler). -export( [ init/3, content_types_accepted/2, terminate/3, …
dnldd
  • 113
  • 1
  • 8
1
vote
1 answer

Cowboy Listeners

Trying to find detailed information about listeners and using more than one listener for application. So I am wondering what may happen if I continue to use about 15 listeners with different ports on production. Seems like everything is good for…
Eugen Dubrovin
  • 888
  • 5
  • 15
1
vote
1 answer

Implementing Long live tcp connection using ninenine ranch

I'm trying to implement a long live TCP connection with ninnenine ranch erlang library . But looking at the documentation i cannot see a way of doing that. Also i have written my own ranch protocol as shown below start_link(Ref, _Socket,…
giles
  • 85
  • 1
  • 9
1
vote
1 answer

Cowboy Webserver using HTTP2 and TLS getting ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY in Chrome

I'm using: Erlang OTP 21 and Cowboy 2.4 Code: cowboy:start_tls( my_listener, [ {port, Web_Server_Port}, {certfile, Cert_File}, {keyfile,…
casillic
  • 1,837
  • 1
  • 24
  • 29
1
vote
1 answer

My Erlang application don't see ranch module dependency

(Newbie here) I am having an error when trying to run ranch example. Via rebar I created application and node (please see on github). But when I am trying to build and run it I am getting undef ranch,start_listener. Please see full console output: $…
Dmytro Starosud
  • 397
  • 1
  • 15
0
votes
1 answer

How to handle Rabbitmq Error shortstr_size in erlang?

I am using erlang client library to connect to local rabbitmq server using default connection parameters. I am getting this issue in a span of arroung Once in 24 Hours. My Erlang Application Not Able to Handle This Issue. For My Error Logger I…
rajesh6115
  • 705
  • 9
  • 21
0
votes
0 answers

cowboy connection process terminated with enomem

I encountered an cowboy error Ranch listener api_resource had connection process started with cowboy_protocol:start_link/4 at <0.1822.0> exit with reason: enomem#012 In the request handler, I'm interacting with another vendor's tts platform, via…
jxiewei
  • 68
  • 6
0
votes
2 answers

erlang protobuf error:module could not be loaded

i'm writing a erlang ranch app with protobuffs(basho), and i include the test_pb.hrl at begin, (include("test_pb.hrl")). but when i make the app and run, it got the error: {'module could not be loaded', …
colin
  • 41
  • 6
0
votes
1 answer

Using ranch, how can I tell when a listener is terminated?

I'm writing a TCP server in Erlang, using Ranch. The clients will reconnect immediately the connection is dropped, which means that one particular failure mode is listeners being started and killed dozens of times a second. I'd like to detect this…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380