#660 Async DNS lookup for HTTP requests

Reporter Zash
Owner Nobody
Stars (0)  
  • Type-Enhancement
  • Status-New
  • Priority-Medium
  1. Zash on

    net.http.request() does not currently do any DNS requests itself, but simply hands the hostname to server.addclient(), which in turn hands it to luasocket which (maybe) does a blocking dns lookup. It would in some ways be better to do async DNS lookups ourselves using net.adns. This would also make it easier to do dualstack requests, eg happy eyeballs or at least try multiple IPs on connection errors.

New comment