TuxInvader / nginx-dns

Sample Configuration for DNS over HTTPS (DoH/DoT gateway) and GSLB with NGINX
BSD 2-Clause "Simplified" License
194 stars 47 forks source link

DOH POST frequently aborts with TCP connection closed #26

Open honigpferd opened 8 months ago

honigpferd commented 8 months ago

DOH POST requests frequently leads to TCP connection closed

How to reproduce

  1. start DNS over HTTPS service from examples
  2. dig +https example.org +tries=1

observed result error log containing: TCP connection closed

reason Buffer.toString('utf8', ...) containing non-UTF8 characters leads to error

gboudreau commented 3 weeks ago

I had intermittent 502 errors when using DoH and your PR fixed it. Thanks!