Hi Oleg,

Thanks for your reply..I am facing issues when the content is chunked or
buffered. 

Below is my original issue. please provide your inputs on this 

I am using HTTPClient 3.0.1 for sending data to server. We are sending large
amount of XML datas and POST Method is used.

InputStreamRequestEntity is used with parameters as
ByteArrayInputStream[Containing streamed datas] and content length.

When Content size is around 10242048 bytes I am able to send request
successfully and getting response from server
Now content size is increased to 11150513 bytes and while executing we are
getting below exception. if  the content size  is around 10250000 there is
no issues but more than that exceptions are thrown
 
Mar 17, 2009 10:27:46 AM org.apache.commons.httpclient.HttpMethodDirector
executeWithRetry
INFO: I/O exception (java.net.SocketException) caught when processing
request: Software caused connection abort: socket write error
Mar 17, 2009 10:27:48 AM org.apache.commons.httpclient.HttpMethodDirector
executeWithRetry
INFO: Retrying request
java.lang.Exception: Unbuffered entity enclosing request can not be
repeated.

I tried by setting entity repeatable as true by implementing request entity 
but that doesnt work. How I can check that entity is repeatable?.
Changing the stream to buffered stream also no use whether this means that
entity is not repeatable?


whether this is due to increase in content size?
I checked by setting content length to CONTENT_LENGTH_AUTO but issue not
solved. 
-- 
View this message in context: 
http://www.nabble.com/IO-Exception-when-Content-size-increases-tp22637093p22657866.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to