Thanks you again justin, I have done a module for the photon framework in PHP that stream big answer. https://github.com/photon/worker-download
Cheers, William On Tue, Mar 31, 2015 at 11:05 AM, William MARTIN <[email protected]> wrote: > Thanks you > > On Mon, Mar 30, 2015 at 6:39 PM, Justin Karneges <[email protected]> wrote: > >> On Mon, Mar 30, 2015 at 7:53 AM, William MARTIN <[email protected]> wrote: >> >>> When i push a file in one-shot, i can see a variable "bytes_written" to >>> a value near the file size served + the HTTP header. But no variable are >>> moving during the download. >>> How can i get the current buffer size available for the HTTP client ? >>> Does the "bytes_read" variable is the size of the message pushed on ZMQ >>> to my handler ? >>> >> >> The bytes_written field is what you want. My guess is that the OS TCP >> send buffer is at least 480K, so mongrel2 is able to write all the data >> without any backpressure. Try sending a larger file. >> >> I have a project called m2adapter that reads the mongrel2 control port in >> order to provide a credits-based flow control. Maybe a good reference for >> you: >> https://github.com/fanout/pushpin/tree/master/m2adapter >> > > > > -- > --------------------------------------------------------- > William MARTIN > wysman @NoSpAm@ gmail @DoT@ com > -- --------------------------------------------------------- William MARTIN wysman @NoSpAm@ gmail @DoT@ com
