Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Increase max quantum size to 5minutes (cc #226)

  • Loading branch information...
commit ef8284785292a8936bb1f3ad75dd70c5b91e4068 1 parent 6d1cdc5
@tmm1 tmm1 authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  ext/em.cpp
View
3  ext/em.cpp
@@ -198,10 +198,9 @@ EventMachine_t::SetTimerQuantum
void EventMachine_t::SetTimerQuantum (int interval)
{
/* We get a timer-quantum expressed in milliseconds.
- * Don't set a quantum smaller than 5 or larger than 2500.
*/
- if ((interval < 5) || (interval > 2500))
+ if ((interval < 5) || (interval > 5*60*1000))
throw std::runtime_error ("invalid timer-quantum");
Quantum.tv_sec = interval / 1000;
Please sign in to comment.
Something went wrong with that request. Please try again.