Comparison

net/resolvers/basic.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 10441:f2c9abc71f08
child 10485:913276ba0c47
comparison
equal deleted inserted replaced
10483:c12a24f0a385 10484:b13a31cea7d9
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 6
7 local methods = {}; 7 local methods = {};
8 local resolver_mt = { __index = methods }; 8 local resolver_mt = { __index = methods };
9
10 -- TODO Respect use_ipv4, use_ipv6
11 -- FIXME #1428 Reuse DNS resolver object (from service resolver)
12 -- FIXME #1429 Close DNS resolver object when done
9 13
10 -- Find the next target to connect to, and 14 -- Find the next target to connect to, and
11 -- pass it to cb() 15 -- pass it to cb()
12 function methods:next(cb) 16 function methods:next(cb)
13 if self.targets then 17 if self.targets then