IIS Long Survey

I designed the progress bar widget in CF and it works fine on my local machine running on the CF8 embedded development server. However, Win2k3 and IIS work in our product and intermediate boxes, which I cannot respect with the CFFLUSH tag. Even filling the buffer with answers does not work too well, since it is rather unpredictable, regardless of whether IIS actually drops the buffer when it is prompted to do so. Does anyone know how to get IIS to flush its buffer or any other way to solve this problem without changing the architecture to use a short poll?

+3
source share
2 answers

A quick google shows several other people with similar problems. I found one post that suggests that IIS has a minimal buffer that could produce it. The solution posted there is mainly for filling the buffer, but this, as you said, will not be reliable.

Could you go to some poller / status ajax panel like here jsprogressbarhandler (google for "jsprogressbarhandler ajax")

+2
source

Just like FYI, if you decide that at some point you need to return to a long poll solution, IIS has a full-blown comet server - check it out:

www.frozenmountain.com/websync

+1
source

Source: https://habr.com/ru/post/1711949/


All Articles