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

wxCurlHTTP::Get will block indefinately #1

Open
iwbnwif opened this issue Sep 13, 2017 · 0 comments
Open

wxCurlHTTP::Get will block indefinately #1

iwbnwif opened this issue Sep 13, 2017 · 0 comments

Comments

@iwbnwif
Copy link
Owner

iwbnwif commented Sep 13, 2017

A Get transfer using wxCurlHTTP will block indefinitely because it is impossible to set a timeout.

The root cause is that each ::Get call calls wxCurlBase::SetCurlHandleToDefaults(), which resets all curl options.

The solution is to call SetCurlHandleToDefaults() only on setup, but also to provide a similar public function in case a user desires to reset options between successive ::Get() calls.

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