hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Supun Kamburugamuva <supu...@gmail.com>
Subject Re: Truncating the input for large messages
Date Sun, 18 Mar 2012 22:16:04 GMT
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 <olegk@apache.org> 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: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>


-- 
Supun Kamburugamuva
Member, Apache Software Foundation; http://www.apache.org
E-mail: supun06@gmail.com <supun@wso2.com>;  Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message