[RFC][Icedtea-web]: Close streams after opening them.

Andrew Su asu at redhat.com
Mon Mar 7 13:01:12 PST 2011



----- Original Message -----
> From: "Denis Lila" <dlila at redhat.com>
> To: "Andrew Su" <asu at redhat.com>
> Cc: "IcedTea" <distro-pkg-dev at openjdk.java.net>
> Sent: Monday, March 7, 2011 3:53:14 PM
> Subject: Re: [RFC][Icedtea-web]: Close streams after opening them.
> > Questions, comments, concerns?
> 
> Maybe it would be better to put the close() in a "finally" block
> after the catch?

I don't think that'd be necessary, since if an exception was thrown. The stream won't be open.

Cheers,
  Andrew

> 
> ----- Original Message -----
> > Hello,
> >
> > This patch will fix a potential problem where we open too many
> > streams
> > but not closing them while trying to write the info file for cached
> > items. (IOException when too many files are opened).
> >
> 
> >
> > Cheers,
> > Andrew



More information about the distro-pkg-dev mailing list