Software / code / prosody
Comparison
net/resolvers/service.lua @ 10484:b13a31cea7d9
net.connect: Add some TODOs and FIXMEs
And mention issue numbers: #1246, #1428 and #1429
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 07 Dec 2019 17:05:00 +0100 |
| parent | 10440:1ee87b4979c2 |
| child | 10650:324a0c7d1c6a |
comparison
equal
deleted
inserted
replaced
| 10483:c12a24f0a385 | 10484:b13a31cea7d9 |
|---|---|
| 1 local adns = require "net.adns"; | 1 local adns = require "net.adns"; |
| 2 local basic = require "net.resolvers.basic"; | 2 local basic = require "net.resolvers.basic"; |
| 3 local inet_pton = require "util.net".pton; | 3 local inet_pton = require "util.net".pton; |
| 4 local idna_to_ascii = require "util.encodings".idna.to_ascii; | 4 local idna_to_ascii = require "util.encodings".idna.to_ascii; |
| 5 local unpack = table.unpack or unpack; -- luacheck: ignore 113 | 5 local unpack = table.unpack or unpack; -- luacheck: ignore 113 |
| 6 | |
| 7 -- FIXME #1428 Reuse DNS resolver object (pass to basic resorver) | |
| 8 -- FIXME #1429 Close DNS resolver object when done | |
| 6 | 9 |
| 7 local methods = {}; | 10 local methods = {}; |
| 8 local resolver_mt = { __index = methods }; | 11 local resolver_mt = { __index = methods }; |
| 9 | 12 |
| 10 -- Find the next target to connect to, and | 13 -- Find the next target to connect to, and |