Re: [Cppcms-users] async_flush_output and multipart/x_mixed_replace
Brought to you by:
artyom-beilis
From: Tobias R. <rei...@go...> - 2012-02-08 14:54:48
|
Artyom Beilis <artyomtnk@...> writes: > Small matrix of "working/not-working" (tested just now_ > > API \ Server Lighttpd Apache Nginx > FastCGI Y N N > SCGI Y Y N > HTTP Y Y N (Can be fixed with buffering options) > > Nginx for some reason caches the response and do not try > to froward it to the client ASAP. You are right. You can turn off buffering in proxy mode but not in fastcgi mode. That's .... no words! So it's either sending packages at least as big as the buffer size (which I can't set less than 1k), or moving to lighttpd. Hm, easy question. > Also note, if you have heavy computations you can always print intermediate results. > > For example: > > response().io_mode(cppcms::http::response::nogzip); > for(int i=0;i<5;i++) { > response().out() << "Test" << std::endl; > booster::ptime::millisleep(1000); > } That's what I was up to. Thank you. Thanks again for your time and your help. I do appreciate. Best regards, Tobias |