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

A slow HTTP post can block the server from processing requests #1001

Closed
mattrussell-sonocent opened this issue Mar 8, 2019 · 2 comments
Closed
Assignees
Labels

Comments

@mattrussell-sonocent
Copy link

Ktor Version

1.1.3

Ktor Engine Used(client or server and name)

Netty

JVM Version, Operating System and Relevant Context

Java 1.8.0_172, OSX / Linux

Feedback

Given the following server using Jackson content negotiation: https://gist.github.com/mattrussell-sonocent/faa63a417fd3b3f7424de93d4a5e7d1f

We're finding that slow client POSTs can block other requests from being processed. For example, if we telnet localhost 8080 and begin a request:

POST /login HTTP/1.1
Content-Length: 6500
Content-Type: application/json

{

Then attempt wget http://localhost:8080/, the server doesn't respond until the telnet POST session is completed or terminated. (On a dev Macbook, I had to send ~8 GET requests to start seeing this behaviour. In a container environment, it happened on the first request.)

@e5l e5l added the bug label Mar 12, 2019
@oleg-larshin
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@Stexxe
Copy link
Contributor

Stexxe commented Jul 20, 2021

Cannot reproduce with Ktor 1.6.1.

@Stexxe Stexxe closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants