Hi Peter, "Peter" <[EMAIL PROTECTED]> wrote on 07/11/2007 08:12:11 AM:
> > So the real fix here is a bit more complex than just adding 'close' > > at the end of those readers (however they should do that). > > I see (more or less). Oth, keeping the stream open for ever is also (in some > environments like servlets) a bit of nuisance no? What would be the options? Well the streams won't stay open forever eventually the Garbage Collector will collect those objects and the streams will be closed. However to make it happen as soon as possible, I would suggest a mechanism for the ProtectedStream to be notified that it should respect any close calls (including retrospectively). So if the ProtectedStream is 'tied' to it's user then a call to close would actually close it. And when you set it to tied it would check if 'close' had been called since the last retry and if so it would close the stream. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
