[erlang-questions] port/socket leak ?

Yoshihiro Tanaka hirotnkg@REDACTED
Thu Jul 5 10:53:58 CEST 2012


Hi, I'm using lhttpc and seeing some ports/sockets are leaking on R14B-04.

Using inet:i(), it looks like below:
1437362 inet_tcp  0         0        <0.18131.596>  *:*   CLOSED

Using erlang:port_info/1, it looks like below:
[[{name,"tcp_inet"},
   {links,[]},
   {id,1437362},
   {connected,<4283.18131.596>},
   {input,0},
   {output,0}]]

My question is, when a port does not have linked process, or connected
process is already gone, shouldn't it recycled by Erlang VM ? If not,
why ?
(These ports can be recycled using erlang:port_close/1)

Thank you
Yoshihiro



More information about the erlang-questions mailing list