Hi Oleg, It seems like a problem with timeouts. When I increase the socket time out the problem did go away.
Will keep you updated if the problem arises again. Thanks, Supun.. On Sat, Mar 17, 2012 at 2:31 PM, Oleg Kalnichevski <[email protected]> wrote: > On Sat, 2012-03-17 at 12:58 -0400, Supun Kamburugamuva wrote: > > Hi, > > > > I've written a simple HTTP Server using the HTTP Core NIO > > sample NHttpServer.java. For this server I'm posting large messages and > > consume these using a ContentInputStream. > > > > But when I post a lage file part of the file is not received and HTTP > core > > thinks that the request is over. But I don't see any early termination of > > request reading as well. The request is sent to the HTTP Server > completely > > by the client. But when I read the input stream and write the file it is > > different from the original file. > > > > Any pointers will be greatly appreciated. > > > > Thanks, > > Hi Supun > > I would need to see a wire log of the session to tell anything specific. > > Is your server capable of producing wire / context log of HTTP sessions? > If not, could you please add logging support by integrating these > classes into your application? > > > https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/logging/ > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Supun Kamburugamuva Member, Apache Software Foundation; http://www.apache.org E-mail: [email protected] <[email protected]>; Mobile: +94 77 431 3585 Blog: http://supunk.blogspot.com
