Commit b4f32c2f authored by Petr Špaček's avatar Petr Špaček

http: fix parallel execution of HTTP tests with SO_REUSEPORT

We have to use disjoint port ranges for individual test, otherwise
parallel test execution leads to unpredictable results.
parent d2bf5054
Pipeline #53923 canceled with stages
in 4 minutes and 55 seconds
......@@ -20,7 +20,7 @@ else
local bound
for _ = 1,1000 do
bound = net.listen('127.0.0.1', math.random(1025,65535), { kind = 'webtest'} )
bound = net.listen('127.0.0.1', math.random(20000, 29999), { kind = 'webtest'} )
if bound then
break
end
......
......@@ -88,7 +88,7 @@ else
local bound
for _ = 1,1000 do
bound = net.listen('127.0.0.1', math.random(1025,65535), { kind = 'doh'} )
bound = net.listen('127.0.0.1', math.random(30000, 39999), { kind = 'doh'} )
if bound then
break
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment