Skip to content

(Question) Does Reqwest support **Not** waiting for a response when sending an http request? #1447

Answered by seanmonstar
liamwarfield asked this question in Q&A
Discussion options

You must be logged in to vote

No, reqwest does not support that.

You'll have a hard time testing in that case. If you don't read from the socket before it's closed, you may see socket errors on either end. If you keep the socket alive and just pump requests through it, but never read, TCP will apply backpressure to the server trying to write responses. If you write a request and then drop the connection immediately, the server may notice and decide to ignore the request completely, thus not load testing your application.

Replies: 1 comment

Comment options

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

This discussion was converted from issue #1446 on January 21, 2022 22:51.