line / armeria

Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
https://armeria.dev
Apache License 2.0
4.79k stars 909 forks source link

Idle HTTP/2 streams should be timed out #1063

Open anuraaga opened 6 years ago

anuraaga commented 6 years ago

Currently, idle timeout occurs only when there is no unfinished requests in a connection.

https://github.com/line/armeria/blob/master/core/src/main/java/com/linecorp/armeria/server/HttpServerIdleTimeoutHandler.java

I think we need per-stream idle timeout for infinite streaming use cases - for long-living streams, users have to disable request/response timeout, so we need a way to timeout streams when an HTTP/2 ping hasn't been sent for some time.

trustin commented 6 years ago

Thanks for creating this issue!