[Dnsmasq-discuss] Fwd: Dnsmasq on high load
Анатолий Мулярский
tm1tvk at gmail.com
Wed Mar 11 07:56:47 GMT 2015
Thank you for the advice, I'll try it later.
2015-03-10 19:31 GMT+02:00, Simon Kelley <simon at thekelleys.org.uk>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/03/15 15:15, Анатолий Мулярский wrote:
>> As I know, the error message means EAGAIN error. But what the
>> reason?
>
> There's a recent change to dnsmasq, which limits it to waiting for one
> second for the EAGAIN error to go away.
>
> See retry_send() in src/util.c
>
> /* Linux kernels can return EAGAIN in perpetuity when calling
> sendmsg() and the relevant interface has gone. Here we loop
> retrying in EAGAIN for 1 second max, to avoid this hanging
> dnsmasq. */
>
> You might try tweaking the code below that to make it wait longer, or
> not have a timeout.
>
> The reason for the EAGAIN is likely that the send queue on the socket
> if full.
>
>
> Cheers,
>
> Simon.
>
--
Best regards
Anatoly Muliarski
More information about the Dnsmasq-discuss
mailing list