Skip to content
Snippets Groups Projects

fix: don't ignore all but the first resolved socket addresses

Merged Georgy Moshkin requested to merge gmoshkin/reduce-tcp-connect-logic-dubiousness into master
+ 6
5
@@ -7,17 +7,18 @@ local log = require('log')
local tmpdir = fio.tempdir()
local cwd = fio.cwd()
log.info("cwd: %s", cwd)
for _, f in pairs(fio.listdir(cwd)) do
log.info("%s", f)
-- Change current working directory into the one this file is in
local current_file = debug.getinfo(1).source
while current_file:sub(1, 1) == '@' do
current_file = current_file:sub(2)
end
local current_dir = fio.dirname(current_file)
fio.chdir(current_dir)
box.cfg{
log_level = 'verbose',
listen = 'localhost:0',
wal_mode = 'none',
work_dir = tmpdir,
memtx_dir = tmpdir,
}
Loading