Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurement for fastestmirror is incorrect when using proxy server #170

Open
doug1 opened this issue Sep 23, 2019 · 0 comments
Open

Measurement for fastestmirror is incorrect when using proxy server #170

doug1 opened this issue Sep 23, 2019 · 0 comments

Comments

@doug1
Copy link

doug1 commented Sep 23, 2019

Currently, librepo use libcurl's CURLINFO_CONNECT_TIME to determine the time to connect to remote mirrors. According to https://curl.haxx.se/libcurl/c/curl_easy_getinfo.html this measures "Time from start until remote host or proxy completed". When a proxy server is used, all of my measurements are about 1 millisecond, the time to connect to the proxy server, and not the actual mirror host. Maybe one of the other methods, such as CURLINFO_STARTTRANSFER_TIME would be a better metric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant