ninenines/cowboy

Problem connection not handling requests

sonic182 opened this issue · 3 comments

I have an API where I send a lot of fast requests sequential, after certain number of requests, one of then get stuck eternal until client timeout or cowboy timeout.

I'm using Phoenix

I have detected using a handler that the last respond had in the state IsFin flag to true so I think the http client tries to use the same acceptor or connection or whatever process that is marked for being shutdown (but shutdown also seems that is not being done)

Is http1.1 requests, I think it is the same bug that is being tried to be fixed in this pr: #1583

Have you seen any similar bug?

I have fixed my app by using {:cowboy, "< 2.8.0"}, in deps, I got the error with 2.8 and 2.9 In 2.7 works as expected

any comment here?? @essen

essen commented

I do not understand the ticket, sorry. A way to reproduce would help, a small sample project, even if it's using Phoenix.