TT#14008 skip free list when allocating requested port

Reported in #1503

Change-Id: Ida64c4462c832dd97bcbc95901fd5c49344447bc
pull/1525/head
Richard Fuchs 3 years ago
parent 40ba01980e
commit 5df21de306

@ -896,7 +896,6 @@ int __get_consecutive_ports(GQueue *out, unsigned int num_ports, unsigned int wa
port += PORT_RANDOM_MIN + (ssl_random() % (PORT_RANDOM_MAX - PORT_RANDOM_MIN));
#endif
__C_DBG("after randomization port=%d", port);
}
// debug msg if port is in the given interval
if (bit_array_isset(pp->ports_used, port)) {
@ -913,6 +912,7 @@ int __get_consecutive_ports(GQueue *out, unsigned int num_ports, unsigned int wa
} else {
__C_DBG("port %d is NOT USED in port pool", port);
}
}
while (1) {
__C_DBG("cycle=%d, port=%d", cycle, port);

Loading…
Cancel
Save