[erlang-bugs] httpc memory leak with stand_alone profile and persistent HTTP connections.

Anthony Ramine n.oxyde@REDACTED
Tue Mar 25 22:05:34 CET 2014


From what I gather from the documentation, stand alone clients aren’t supposed to be registered.

Shouldn’t instead httpc_handler's #state.profile_name be renamed to #state.manager and store either the process name or the pid? Or even maybe just the pid? What is supposed to happen if the manager dies? Are the handlers supposed to live on?

-- 
Anthony Ramine

Le 24 mars 2014 à 15:04, Ruan Jonker <ruan.jonker@REDACTED> a écrit :

> Proposed patch:
> ------------------------
> 
> On file : otp_src_R16B03-1/lib/inets/src/http_client/httpc_manager.erl (didn't have the R17 src)
> 
> 82a83
> >     Server       = {local, ProfileName}, 
> 86c87
> <     gen_server:start_link(?MODULE, Args, Opts);
> ---
> >     gen_server:start_link(Server, ?MODULE, Args, Opts);




More information about the erlang-bugs mailing list