socket leak in FreeBSD 4.7

Han Hwei Woo hhwoo at argosy.ca
Fri Jun 20 04:45:11 PDT 2003


I find that the sockets are slow to free up if you don't explicitly close
them, but they do free up after a while.

Han Hwei Woo

----- Original Message ----- 
From: "Mike Silbersack" <silby at silby.com>
To: "Scot Loach" <sloach at sandvine.com>
Cc: <freebsd-net at freebsd.org>
Sent: Friday, June 20, 2003 5:06 AM
Subject: Re: socket leak in FreeBSD 4.7


>
> I don't see this on my 4.8 or 5.x systems.  Are you running any custom
> patches on that machine's kernel?
>
> Alternately, can anyone else with a 4.7 or earlier machine replicate this
> problem?
>
> Thanks,
>
> Mike "Silby" Silbersack
>
> On Thu, 19 Jun 2003, Scot Loach wrote:
>
> > If I execute the following program on a FreeBSD 4.7 system:
> >
> > int main()
> > {
> >     for (int i = 0; i < 70000; i++)
> >     {
> >         socket(PF_INET, SOCK_STREAM, 0);
> >     }
> >     return 0;
> > }
> > the sockets never seem to be freed.
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>



More information about the freebsd-net mailing list