pulsar-rs icon indicating copy to clipboard operation
pulsar-rs copied to clipboard

connection: try all IPs addresses when connecting, instead of a random one

Open Keruspe opened this issue 3 years ago • 3 comments

Keruspe avatar Feb 05 '21 16:02 Keruspe

I looked a bit more at this and I'm not convinced it will solve the connections issues we've seen: in my tests the list of IP addresses is always returned in the same order, so the first server would get all of the traffic from all clients, until it cannot accept new traffic and then we go onto the second one. Randomizing is still balancing the traffic better

Geal avatar Feb 15 '21 10:02 Geal

Rebased + shuffled the order

Keruspe avatar Feb 15 '21 10:02 Keruspe

@FlorentinDUBOIS given it's quite a long time since the patch was made, I'm going to rebase this patch while keeping @Keruspe as the coauthor.

tisonkun avatar Oct 11 '22 15:10 tisonkun