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

std::chrono::duration for timeout #890

Closed
wants to merge 3 commits into from

Conversation

MikhailFDone
Copy link

Now it is possible to use
cli.set_read_timeout(500ms);
if using c++14

@yhirose
Copy link
Owner

yhirose commented Apr 1, 2021

@ShirokovMikhail, thank you for the pull request. It looks very good. But it will break users' code, since the new API isn't compatible with the existing API... So I am not going to merge it to the master for now, but keep this pull request in mind for the future. Thank you very much for your contribution!

@yhirose yhirose closed this Apr 1, 2021
@MikhailFDone
Copy link
Author

How about keeping both API options?

@yhirose
Copy link
Owner

yhirose commented Apr 2, 2021

Honestly, I am satisfied with the existing API with no problem, even if I understand your suggestion is more elegant and modern. But, I'll ponder over your suggestion.

yhirose added a commit that referenced this pull request Apr 2, 2021
@yhirose
Copy link
Owner

yhirose commented Apr 2, 2021

@ShirokovMikhail, I actually implemented your suggestion to have both interfaces with minimal changes at #891. Does it satisfy your needs?

@MikhailFDone
Copy link
Author

@yhirose Great! Thanks a lot.

yhirose added a commit that referenced this pull request Apr 2, 2021
ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
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

Successfully merging this pull request may close these issues.

2 participants