Hi, I am trying to use the control port of mongrel2 to create an application which can stream large file (1 to 10Gb) over mongrel2 without filling the RAM. To test, i use a small file (500K) and download it with wget with the limite rate option. Files are generated on demand and can not be served by mongrel2 directly.
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 ? Cheers, William $ wget --limit-rate=1k http://127.0.0.1/vendors/openlayers/ol3.js --2015-03-30 16:17:23-- http://127.0.0.1/vendors/openlayers/ol3.js Connexion vers 127.0.0.1:80... connecté. requête HTTP transmise, en attente de la réponse... 200 OK Taille : 479998 (469K) [application/javascript] Enregistre : «ol3.js» 74% [================> ] 357 983 1,00KB/s eta 1m 59s ^ $ php control-m2.php array(2) { 'headers' => array(8) { [0] => string(2) "id" [1] => string(2) "fd" [2] => string(4) "type" [3] => string(9) "last_ping" [4] => string(9) "last_read" [5] => string(10) "last_write" [6] => string(10) "bytes_read" [7] => string(13) "bytes_written" } 'rows' => array(8) { [0] => int(25) [1] => int(26) [2] => int(1) [3] => int(11) [4] => int(11) [5] => int(11) [6] => int(132) [7] => int(480159) } } -- --------------------------------------------------------- William MARTIN wysman @NoSpAm@ gmail @DoT@ com
