An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. #127
-
Running on Windows 10, I am getting this backtrace. I'm using Is backpressure something
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think Surf is calling If you are making more than just a few requests, I recommend creating a |
Beta Was this translation helpful? Give feedback.
-
That works, thanks! |
Beta Was this translation helpful? Give feedback.
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.