#660 Async DNS lookup for HTTP requests

Reporter Zash
Owner MattJ
Created
Updated
Stars (0)
Tags
  • Priority-Medium
  • Status-Fixed
  • Type-Enhancement
  • Milestone-0.11
  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.

  2. Zash on

    Fixed in https://hg.prosody.im/trunk/rev/2bd2e94a0496 Also see https://hg.prosody.im/trunk/rev/601681acea73

    Changes
    • owner MattJ
    • tags Status-Fixed Milestone-0.11

New comment

Not published. Used for spam prevention and optional update notifications.