Re: httpc:request pipelining example and blocking problem

Yao Bao <[email protected]> Sun, 19 Dec 2021 17:51:01 +0800
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
> * One part of the issue was the server was sending a HTTP chunked response and I
> needed to switch to using `stream`.
> 
> * The other issue is I'm using a `gen_server` to drive part of the client aspect
> and I needed to restructure how I setup the receive loop.  Now I get the 1st
> chunk (more often), but still appears to block on occasion on the chunk.

What if turn the “switch to using stream” off, can you consistently get the chunk?

Cheers,
Yao