)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"95ee253f5ae5661e53b81b32a7c1f5ca108f31b7","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  - within a priority group the \"candidates\" are the responders whose RTT is"},{"line_number":17,"context_line":"    no more than a margin larger than the fastest, so the fastest is always"},{"line_number":18,"context_line":"    one; candidates rank ahead of non-candidates;"},{"line_number":19,"context_line":"  - candidates are ordered by RFC-2782 weighted-random selection by weight, so"},{"line_number":20,"context_line":"    a server is chosen first with probability proportional to its weight (load"},{"line_number":21,"context_line":"    distribution); non-candidates follow, ordered by RTT."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"706946a1_bc197678","line":19,"updated":"2026-09-09 11:43:19.000000000","message":"This is just an observation but after looking at RFC 2782 I noticed a semantic difference in the usage of 0-weight entries.\n\nRFC 2782 puts 0-weight entries first and draws from [0, sum] inclusively, giving a 0-weight entry a small nonzero chance. This implementation draws from [0, sum) and therefore gives zero-weight entries no chance until all positive-weight entries have been selected.\n\nThis behavior, however, seems perfectly reasonable, especially since the openvpn draft permits clients to choose their algorithm.","commit_id":"cce38c5f2703f7386944ddbdd8f4e962f94ffc95"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"95ee253f5ae5661e53b81b32a7c1f5ca108f31b7","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":14,"id":"69ea3cda_4b8fa5fa","updated":"2026-09-09 11:43:19.000000000","message":"just a couple of nits","commit_id":"cce38c5f2703f7386944ddbdd8f4e962f94ffc95"}],"src/openvpn/oob.c":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"44793df272620f403e82a25d76d331b63066e55e","unresolved":true,"context_lines":[{"line_number":265,"context_line":"    {"},{"line_number":266,"context_line":"        return ra-\u003eresponded ? -1 : 1;"},{"line_number":267,"context_line":"    }"},{"line_number":268,"context_line":"    if (ra-\u003eresponded)"},{"line_number":269,"context_line":"    {"},{"line_number":270,"context_line":"        if (ra-\u003epriority !\u003d rb-\u003epriority)"},{"line_number":271,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":9,"id":"9ed728f8_d40ffac7","line":268,"updated":"2026-07-26 01:25:40.000000000","message":"I think if you started with \n\nif (ra-\u003eresponsed \u0026\u0026 rb-\u003eresponded)\n\nand make the logic and intent of the sorting would be more clear instead of this double negative logic here the function would be much easier to read and understand.","commit_id":"02d01e3b98567bfaf5e65af63da53c7b8fb77c97"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"00b83a2be238c5938f32611d284dcf34cc0ccfcf","unresolved":false,"context_lines":[{"line_number":265,"context_line":"    {"},{"line_number":266,"context_line":"        return ra-\u003eresponded ? -1 : 1;"},{"line_number":267,"context_line":"    }"},{"line_number":268,"context_line":"    if (ra-\u003eresponded)"},{"line_number":269,"context_line":"    {"},{"line_number":270,"context_line":"        if (ra-\u003epriority !\u003d rb-\u003epriority)"},{"line_number":271,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":9,"id":"8b9de417_1e47a3f7","line":268,"in_reply_to":"9ed728f8_d40ffac7","updated":"2026-07-28 15:07:15.000000000","message":"Acknowledged","commit_id":"02d01e3b98567bfaf5e65af63da53c7b8fb77c97"},{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"95ee253f5ae5661e53b81b32a7c1f5ca108f31b7","unresolved":true,"context_lines":[{"line_number":250,"context_line":"    {"},{"line_number":251,"context_line":"        /* \"no more than their max_latency_diff larger than the lowest RTT\", so the"},{"line_number":252,"context_line":"         * comparison includes the margin itself. That also keeps the fastest of"},{"line_number":253,"context_line":"         * the run a candidate when it advertises 0: announcing 0 asks not to be"},{"line_number":254,"context_line":"         * compared on weight, not to be ranked behind a slower server. */"},{"line_number":255,"context_line":"        unsigned int gap \u003d run[k].rtt_ms - best_rtt;"},{"line_number":256,"context_line":"        if (gap \u003c\u003d (unsigned int)oob_effective_margin(\u0026run[k], client_margin))"},{"line_number":257,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":14,"id":"b55bcb85_9707d675","line":254,"range":{"start_line":253,"start_character":53,"end_line":254,"end_character":29},"updated":"2026-09-09 11:43:19.000000000","message":"Is this true tho? A fastest server advertising zero remains a candidate, and a slower server can join using its own larger margin; they are then compared by weight. Zero only gives that particular server a 0-width admission margin.","commit_id":"cce38c5f2703f7386944ddbdd8f4e962f94ffc95"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"049a9da64d0ff0c58543f30d31c8567ffc90def9","unresolved":true,"context_lines":[{"line_number":250,"context_line":"    {"},{"line_number":251,"context_line":"        /* \"no more than their max_latency_diff larger than the lowest RTT\", so the"},{"line_number":252,"context_line":"         * comparison includes the margin itself. That also keeps the fastest of"},{"line_number":253,"context_line":"         * the run a candidate when it advertises 0: announcing 0 asks not to be"},{"line_number":254,"context_line":"         * compared on weight, not to be ranked behind a slower server. */"},{"line_number":255,"context_line":"        unsigned int gap \u003d run[k].rtt_ms - best_rtt;"},{"line_number":256,"context_line":"        if (gap \u003c\u003d (unsigned int)oob_effective_margin(\u0026run[k], client_margin))"},{"line_number":257,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":14,"id":"87cc0443_3bb72d0a","line":254,"range":{"start_line":253,"start_character":53,"end_line":254,"end_character":29},"in_reply_to":"40eab88f_95490599","updated":"2026-09-17 11:29:44.000000000","message":"Okay we seem to have very different understanding what max_latency_diff is used. You are using the max_latency_diff of all server and ignoring the one of the fastest server while I described in the RFC that we should ignore all other max_latency_diff and only use the one of the fastest du see if there are any other servers that are similar. I am not sure which one is better/more correct but we should agree on one and either change the implementation or the RFC.","commit_id":"cce38c5f2703f7386944ddbdd8f4e962f94ffc95"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"654373bbb244790f6796956a436fd27b2dfdac6c","unresolved":false,"context_lines":[{"line_number":250,"context_line":"    {"},{"line_number":251,"context_line":"        /* \"no more than their max_latency_diff larger than the lowest RTT\", so the"},{"line_number":252,"context_line":"         * comparison includes the margin itself. That also keeps the fastest of"},{"line_number":253,"context_line":"         * the run a candidate when it advertises 0: announcing 0 asks not to be"},{"line_number":254,"context_line":"         * compared on weight, not to be ranked behind a slower server. */"},{"line_number":255,"context_line":"        unsigned int gap \u003d run[k].rtt_ms - best_rtt;"},{"line_number":256,"context_line":"        if (gap \u003c\u003d (unsigned int)oob_effective_margin(\u0026run[k], client_margin))"},{"line_number":257,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":14,"id":"66452e20_a9b4b2fa","line":254,"range":{"start_line":253,"start_character":53,"end_line":254,"end_character":29},"in_reply_to":"87cc0443_3bb72d0a","updated":"2026-09-17 12:28:45.000000000","message":"Okay, I think \"the fastest server\u0027s max_latency_diff applies to all servers in the group\" is easier to grasp, so I\u0027ve changed the implementation (changes are small anyway). Man page and tests updated. RFC text should probably say \"the fastest remote\u0027s\" instead of \"their\".","commit_id":"cce38c5f2703f7386944ddbdd8f4e962f94ffc95"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"9d47be9cba987528a5d69f4a6d1cf86cc9614b29","unresolved":false,"context_lines":[{"line_number":250,"context_line":"    {"},{"line_number":251,"context_line":"        /* \"no more than their max_latency_diff larger than the lowest RTT\", so the"},{"line_number":252,"context_line":"         * comparison includes the margin itself. That also keeps the fastest of"},{"line_number":253,"context_line":"         * the run a candidate when it advertises 0: announcing 0 asks not to be"},{"line_number":254,"context_line":"         * compared on weight, not to be ranked behind a slower server. */"},{"line_number":255,"context_line":"        unsigned int gap \u003d run[k].rtt_ms - best_rtt;"},{"line_number":256,"context_line":"        if (gap \u003c\u003d (unsigned int)oob_effective_margin(\u0026run[k], client_margin))"},{"line_number":257,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":14,"id":"40eab88f_95490599","line":254,"range":{"start_line":253,"start_character":53,"end_line":254,"end_character":29},"in_reply_to":"b55bcb85_9707d675","updated":"2026-09-17 07:58:06.000000000","message":"You are right. Advertising 0 only means \"I am a candidate only if I am the fastest\". It does not exempt that server from the weight draw: a slower server that gets in through its own margin is weighed against it. Comment fixed; the two zero-margin tests already check exactly this.","commit_id":"cce38c5f2703f7386944ddbdd8f4e962f94ffc95"}]}
