On Sun, 2009-03-22 at 22:24 -0700, SaravananD wrote: > Hello all, > > Any inputs on this. Your suggestions will greatly help in resolving this. > > What will be max content can be sent through HTTpClient without buffering. >
Unlimited when using chunk coding. Oleg > Thanks > > > SaravananD wrote: > > > > Hi, > > > > 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 length? > > I checked by setting content length to CONTENT_LENGTH_AUTO but issue not > > solved. > > > > Please let me know if any other info is needed and provide your > > suggestions. > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
