Oleg,
There is no exception. I get a -1 on the read even the file is not finished.
(I have even removed my code that uses a BufferedReader)

Here is the log.

2006-08-06 15:51:43,191 [main] DEBUG httpclient.wire.content - << ",,_G2G
Jhook $100 Standard,06/11/2006,******0064580557,, ,,,,,"

At this point, I get a -1.

2006-08-06 15:51:50,181 [main] DEBUG
org.apache.commons.httpclient.HttpMethodBase - Resorting to protocol version
default close connection policy
2006-08-06 15:51:50,181 [main] DEBUG
org.apache.commons.httpclient.HttpMethodBase - Should NOT close connection,
using HTTP/1.1
2006-08-06 15:51:50,181 [main] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.isResponseAvailable()
2006-08-06 15:51:50,181 [main] DEBUG
org.apache.commons.httpclient.HttpConnection - enter
HttpConnection.releaseConnection()
2006-08-06 15:51:50,181 [main] DEBUG
org.apache.commons.httpclient.HttpConnection - Releasing connection back to
connection manager.


When I read the file with no actions taken, then it works, since it manages
in under 5 minutes.
When I have I/0, as in the case above where I am spitting out each line to
standard out as I read it, it dies after 7 minutes 14 seconds.
The problem is that I would rather not read such a large file in, yet I do
not see a way to process lines as I read them.

Any ideas -- some sort of connection timeout?
 

-----Original Message-----
From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 02, 2006 1:51 PM
To: HttpClient User Discussion
Subject: RE: Reading line by line using outputstream

On Wed, 2006-08-02 at 13:49 +0300, David Rosenstark wrote:
> Not sure if this matters, but I am wrapping the InputStream in a 
> bufferedReader so I can read a line at a time. Could this be the problem?
> 
> Thanks,
> David
> 

Please post the exception stack trace and a wire/context log of the
session

Oleg

> -----Original Message-----
> From: David Rosenstark [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 02, 2006 12:58 PM
> To: 'HttpClient User Discussion'
> Subject: Reading line by line using outputstream
> 
> I am trying to switch my application to be more efficient and process line
> by line rather than reading the whole buffer in first, since we are
> retrieiving very large files.
> However, at some point the connection is closing. Is there some parameter
I
> need to set to keep it open while I am reading? I do not see any long
delay
> in the reading -- the code ran for about 8 mintues and then the connection
> close. This all worked fine when read in at once.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to