Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mmzeeman opened this Issue · 1 comment

1 participant

@mmzeeman
Owner

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.

@mmzeeman
Owner

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.