hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Feist <dfe...@gmail.com>
Subject Re: Implementing a simple non-blocking echo server
Date Tue, 16 Sep 2014 09:08:15 GMT
For reference, this is what I'm trying to achieve with httpcore,
implemented (and working) with the jetty and servlet api.

http://pastebin.com/1Ennis2m

Dan

On Tue, Sep 16, 2014 at 12:59 AM, Daniel Feist <dfeist@gmail.com> wrote:

> Hi,
>
> I'm struggling to implement a simple echo server using http components
> aysnc api (HttpAsyncRequestHandler, HttpAsyncResponseProducer,
> HttpAsyncRequestConsumer) without using: "response.setEntity(new
> InputStreamEntity(requestEntity.getContent(),..,..)".
>
> This is my attempt:
>
> http://pastebin.com/Tbz0rxDH
>
> It seems to work for small http bodies, but as soon as the body size is
> larger than the buffer it hangs.
>
> Anything obvious i'm doing wrong?
>
> thanks,
> Dan
>
>
>

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