# Help needed - long polling module

**URL:** <https://www.ruby-forum.com/t/help-needed-long-polling-module/188562>\
**Category:** NGINX\
**Created:** [May 13, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/help-needed-long-polling-module/188562 "2010-05-13T22:37:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/91b2a8/32.png) [@dcian](https://www.ruby-forum.com/u/dcian)\
**Post date:** [May 13, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/help-needed-long-polling-module/188562/1 "2010-05-13T22:37:44Z")

</div>

Hi guys,

I have code that uses the nginx long polling module _almost_ working.

It all works fine except that, about one start in 4, the read message  
repeatedly returns the same first message.

It has never failed under a debugger! It appears to fail more often on a  
mac, and using FF under Linux than in windows.

I’m at a loss. How can I track down the problem? Any ideas appreciated.

Regards

Ian

The logs say the nginx is serving the message repeatedly when the  
trouble strikes.

When a message comes in, I am saving the LAST\_MODIFIED header and  
returning the value in the ‘If-Modified-Since’ header of the following  
request.
