Possible leak in inets httpc.

Andrey Popp 8mayday@REDACTED
Thu Jul 8 12:12:07 CEST 2010


It seems it has been fixed with [1] in inets-5.3.2. Sorry.

[1]: http://github.com/erlang/otp/commit/91c89d54d45989a85367f10d5902b9b508754a49

On Thu, Jul 8, 2010 at 1:57 PM, Andrey Popp <8mayday@REDACTED> wrote:
> Hello,
>
> I have application that makes huge number of HTTP requests with httpc
> and I have spotted that `httpc_manager__handler_db` ETS table growing
> in size and doesn't clean up. That is the example records from this
> table (ets:i(httpc_manager__handler_db)):
>
> <1   > {handler_info,#Ref<0.0.0.18800>,undefined,<0.177.0>,undefined,operational}
> <2   > {handler_info,#Ref<0.0.0.35242>,undefined,<0.3075.0>,undefined,operational}
> <3   > {handler_info,#Ref<0.0.0.61713>,undefined,<0.5755.0>,undefined,operational}
> <4   > {handler_info,#Ref<0.0.0.68114>,undefined,<0.6943.0>,undefined,operational}
> <5   > {handler_info,#Ref<0.0.0.85303>,undefined,<0.8305.0>,undefined,operational}
>
> and processes with handler pids are no longer alive. Also, note that I
> have no timeout setting in my http:request HTTPOptions, but I think
> inets should not leak even in that case.
>
> Thanks.
>
> --
> Andrey Popp
>
> phone: +7 911 740 24 91
> e-mail: 8mayday@REDACTED
>



-- 
Andrey Popp

phone: +7 911 740 24 91
e-mail: 8mayday@REDACTED


More information about the erlang-questions mailing list