wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

channels-stats show subscribers not correct #229

Closed whtc123 closed 8 years ago

whtc123 commented 8 years ago

hi , I use nginx-push-stream-module in my product,I need get statistics realtime.normally,it will show subscribers number correct. but ,while nginx tcp layer not recved tcp's FIN or RST package,channels-stats will not decrease. I have tried send_timeout keep_timeout option of nginx,but it's not works.

how can I set timeout for send message to subscriber

wandenberg commented 8 years ago

I guess that there isn't nothing that you can do and still respecting the tcp protocol, since a connection is only securely closed after receive those packages or reach a timeout. Of course you can tweak your OS to have very small timeouts but there are some alerts about this kind of changes.