Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Use erlang:send_after instead of timer:send_interval in controller_comet. #538

mmzeeman opened this Issue · 1 comment

1 participant


Usage of timer:send_interval can lead a very large number of timers being created in controller_comet.

When this hapens the timer server will become a bottleneck. Use erlang:send_after is much cheaper for dynamically generated timers.


During changing the code I also spotted a subtle bug which can lead to missed updates when multiple scripts are pushed to the page within 50 ms. Resetting the timer will cause the comet process to crash.

@mmzeeman mmzeeman closed this in 26c15b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.