Skip to content

An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. #127

Discussion options

You must be logged in to vote

I think Surf is calling unwrap in a manner that makes this difficult. Creating a new Isahc client is not a cheap operation, and could fail with the error you are seeing if creating one more socket can't be done.

If you are making more than just a few requests, I recommend creating a surf::Client once and re-using that, instead of using the freestanding functions, which create a new client for each request.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sagebind
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #127 on December 09, 2020 04:10.