>> Date: Wed, 8 Apr 2009 16:17:33 -0500 >> From: >> To: [email protected] >> Subject: Re: [iText-questions] java.net.SocketException: Broken pipe failed >> >> Broken pipe, from my experience, can likely be a timeout with your web >> server. I would look at the config for your web server to see what the >> timeout is set at. >> > > And get more memory too , and another CPU, etc... > Yes, you probably have a connection loss due to time but this really isn't the > solution any more than more memory will fix a memory leak. > If you task is not interactive you want a paradigm like they use for other > servers that take a while to respond to a query, bioinformatics servers come > to mind. The first thing anyone > wants to do with a servlet, once they realize it is a real program, > is turn it into something that lives forever. You see people try to keep > connections open for ever even in wireless environments where the problem > is worse. And for sure, persistents and pipelining have their uses > but not here. > > You can return the user a cookie or status url or something similar > but connections get lost. You can't design anything based on assumptions > to the contrary, and hanging an "interactive" browser defeats the purpose. >
I should have explained more I guess. I was suggesting to look at it to see what it was and see if it correlates with the broken pipe error, not raising it (which as I read my post could have been the first assumption.. sorry). I agree the application itself needs to be looked at and possibly make it a batch process where the PDF is created not on the fly, but in batch with some sort of notification (email?) or web page showing the status of the conversion (ie, refresh it now and then to see if it's done). Or, figure out why you need to generate, and regenerate these docs, possibly even caching them if they are the same docs periodically (I understand they all could be unique as well, but then we ask, why PDF, why not just HTML). Anyhow.. bottom line is you really need to look at your particular objective and ask some questions. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
