Menu

#6 Server loop far too busy...

Unstable (example)
closed
nobody
None
5
2015-03-29
2015-03-24
No

The main server loop is far too busy, since the select() timeout is only 1 ms. Thus, the main loop is executed a thousand times per second, even when the process should only wait for input and be idle.

In stun.cxx, line 1408 should read something like:

tv.tv_usec = 50000;

instead of

tc.tv_usec = 1000;

That would give 20 loop executions per second at most (which should be more than ever needed).

Discussion

  • Jan Willamowius

    Jan Willamowius - 2015-03-29
    • status: open --> closed
     
  • Jan Willamowius

    Jan Willamowius - 2015-03-29

    Patch applied

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.