The first RPC message is 104 bytes length and I pass this size to ap_get_client_block() function.
-----Original Message----- From: Ben Noordhuis [mailto:i...@bnoordhuis.nl] Sent: Wednesday, October 03, 2012 2:49 PM To: modules-dev@httpd.apache.org Subject: Re: RPC over HTTP On Wed, Oct 3, 2012 at 2:06 PM, Evgeny Shvidky <evg...@skyfence.com> wrote: > Hi, > > ap_setup_client_block() returns OK. > > I think the problem is that "Content-Length" header value is 1073741824 (1 > GB) and probably apache tries to receive the whole content before it passed > to my module. > Am I right? > If yes, is there any way to tell apache to send all received data till now? ap_get_client_block() tries to read up to the number of bytes you requested. Now, if you passed in the value of the Content-Length header, then it will either stall for a long time or simply fail.