Piotr Caban : server: Don't overflow if timeout doesn't fit into int range in get_next_timeout.