process file table full?

Simon Marlow simonmar@microsoft.com
Tue, 3 Apr 2001 09:38:50 +0100


> Yesterday I asked for the posssible reasons of
>=20
> > Fail: resource exhausted
> > Action: openFile
> > Reason: process file table full connect-985988146.log
>=20
> Writing that particular file wasn't the cause, but just a symptom.
>=20
> It seems that I forgot to close filehandles obtained from=20
> Socket.accept.
> I somehow thought they were garbage collecteted, but=20
> apparently the weren't.

They should be garbage collected and closed automatically.  But it may
be some time between the handle becoming garbage and it finally being
closed, so if you're accepting connections at a fast rate, it's always a
good idea to close the handle explicitly when you finish with it.

Cheers,
	Simon