]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
net_slist: reduce worst-case time until any given server first appears
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 12 Dec 2023 10:13:26 +0000 (20:13 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 12 Dec 2023 10:42:24 +0000 (20:42 +1000)
commita2bd5617e8017d15aad71e6e27060b7624601124
tree83f3950b87a02cac06472f5ff7d234fc9c80de36
parent8c17b7b5808fee06d82952f8481146844ba7f023
net_slist: reduce worst-case time until any given server first appears

Fixes sending multiple queries to servers that happen to be early in the
list before sending any to servers late in the list, when
net_slist_maxtries > 1, which was a side-effect of making
net_slist_maxtries work as described in
fe2b222e32752c408fbe5ccf4ac3fb546f8ff41a.

Slightly reduces the total real time and CPU time to query all servers.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
netconn.c
netconn.h