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

Hyper client reuses closed connection #3077

Closed
maxbear1988 opened this issue Dec 8, 2022 · 1 comment
Closed

Hyper client reuses closed connection #3077

maxbear1988 opened this issue Dec 8, 2022 · 1 comment
Labels
C-bug Category: bug. Something is wrong. This is bad!

Comments

@maxbear1988
Copy link

Version
List the version(s) of hyper, and any relevant hyper dependency (such as h2 if this is related to HTTP/2).
0.14.20
Platform
The output of uname -a (UNIX), or version and 32 or 64-bit (Windows)
Linux kwephis1142986 4.18.0-147.5.2.1.h579.eulerosv2r10.x86_64 #1 SMP Sat Jul 31 09:58:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Description
Enter your issue details here.
One way to structure the description:
I write a client program using hyper. client send a request to server,server repsonse 500 and send fin to client after handle the request while connection is put back to connection pool.client immediately send another request, client borrow the last connection and send data to server,server will send a rst to client. client report err connction is reset by peer

[short summary of the bug]

I tried this code:

[code sample that causes the bug]

I expected to see this happen: [explanation]
i expected second request not to use the previous connection

Instead, this happened: [explanation]

@maxbear1988 maxbear1988 added the C-bug Category: bug. Something is wrong. This is bad! label Dec 8, 2022
@seanmonstar
Copy link
Member

Does the server send a connection: close? Otherwise, if there's some latency in the server sending its FIN packet, then these are natural race conditions that can exist.

@seanmonstar seanmonstar closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

No branches or pull requests

2 participants