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

default connectTimeout question #37

Closed
wopox1337 opened this issue Feb 5, 2021 · 1 comment
Closed

default connectTimeout question #37

wopox1337 opened this issue Feb 5, 2021 · 1 comment

Comments

@wopox1337
Copy link

Why default connectTimeout = 10 when libCurl describes this value as 300?
Set to zero to switch to the default built-in connection timeout - 300 seconds.
https://curl.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html

And also this incident is not reflected in the documentation
https://github.com/ErikMinekus/sm-ripext/blob/master/pawn/scripting/include/ripext/http.inc#L173-L177

@ErikMinekus
Copy link
Owner

Because REST in Pawn does not have a way to cancel a request once it has started, I think 10 seconds is more than reasonable to wait for the connection, especially since you can change it if needed.

I'll make sure these default values are documented.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
maxime1907 pushed a commit to srcdslab/sm-ext-ripext that referenced this issue Aug 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants