[zeromq-dev] [PATCH] Scalability improvements for large amounts of connections
Dhammika Pathirana
dhammika at gmail.com
Thu Oct 14 18:06:50 CEST 2010
Hi Mato,
>
> +int zmq::zmq_connecter_t::get_reconnect_period ()
> +{
> +#if defined ZMQ_HAVE_WINDOWS
> + return (reconnect_period + (((int)GetCurrentProcessId () * 13)
> + % reconnect_period));
> +#else
> + return (reconnect_period + (((int)getpid () * 13) % reconnect_period));
> +#endif
> +}
> +
This could throw a SIGFPE (floating point exception).
Do we check for reconnect_period > 0?
Dhammika
More information about the zeromq-dev
mailing list