play-co / hookbox

HookBox is a Comet server and message queue that tightly integrates with your existing web application via web hooks and a REST interface.
http://hookbox.org
MIT License
284 stars 23 forks source link

Polling continues after channel closes #73

Open digipigeon opened 14 years ago

digipigeon commented 14 years ago

When a channel is setup with persistant or simple polling closes the address that was specified for polling continues to be polled.

Additionally: If a single channel is setup with (for example) 10 second polling interval, the polling often occours twice (within a 0.5 second seperation) every 10 seconds.

digipigeon commented 13 years ago

After more investigation it appears that two polling requests are created when the channel is setup, one of those responds to changes made through set_channel_options.

The other polling request does not respond to and changes and also continues to poll after the channel is closed.