Andy, Just curious ... are you using the ServletOutputStream or PrintWriter to pump data out to the client?
Conrad "Andrew C. Oliver" wrote: > Hi, > > I have a servlet question. I'm shocked I've never run into this before, > but I'm writing a servlet which will serve binary files while limiting > them to 5 connections. As each user comes in he's given a lock, and as > the file finished, his lock is released. (I also have a "wait" timer in > between writes but that is another story). > > The problem is that if the user breaks his connection, the lock isn't > released for a really long time. The reason being is that the servlet > is blocked on writing to the Response output stream. Is there any way > to program or configure around this such that there is a timeout perhaps > or some way to fail out of writing to the output stream in a reasonable > amount of time (a couple of minutes maybe)? > > -Andy > > _______________________________________________ > Juglist mailing list > [EMAIL PROTECTED] > http://trijug.org/mailman/listinfo/juglist_trijug.org _______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
