[erlang-questions] Re: http or httpc?

Per Melin per.melin@REDACTED
Sat May 1 01:35:55 CEST 2010


On Thu, Apr 29, 2010 at 1:55 PM, zabrane Mikael <zabrane3@REDACTED> wrote:
> I'll give httpc a try.

Be warned that in R13B4 there seems to be a potentially serious bug in httpc.

For each request you make the ETS table httpc_manager__handler_db will
grow with one entry, indefinitely. With enough requests over time that
can of course consume all memory and crash the node.

1> inets:start().
ok
2> [ http:request("http://127.0.0.1/") || _ <- lists:seq(1,10000) ], ok.
ok
3> ets:info(httpc_manager__handler_db, size).
10000

And R13B4 is not the first OTP version where the http client has
serious issues. I've learned to stay away from it when I can.


More information about the erlang-questions mailing list