joohoi / acme-dns

Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely.
MIT License
2.19k stars 233 forks source link

Odd error once in a while (wsarecvfrom) #320

Open csm10495 opened 2 years ago

csm10495 commented 2 years ago

Hey folks,

Once in a long while I get an error like this on Win10:

time="2022-11-01T22:46:15-07:00" level=fatal msg="read udp [::]:53: wsarecvfrom: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself."

Then the process exits.

Any ideas about how we can not crash in this case? I have no idea what sends what message that leads to the crash.

csm10495 commented 2 years ago

I'm not quite sure what version of acme-dns I'm using.. there isn't a --version or something like that to check as far as I can tell.

webprofusion-chrisc commented 2 years ago

You would have to had to build acme-dns yourself or get someone to build it for you (last I checked it doesn't build without minor modification), there is no prebuilt version for Windows. That error is a standard windows sockets error and is not controlled by acme-dns, that said the exception should generally be caught and logged then processing should resume as public DNS is a very hostile place. If you have acme-dns running as a service you could just configure it to auto restart on failure.

csm10495 commented 2 years ago

I must have done that then.. sorry it's been a while.

I have it setup to auto restart on crash, just figured maybe we could somehow avoid the crash to begin with.

Though if Windows isn't really supported to begin with: sorry for the trouble and feel free to close this out.