Open hoangdangduy opened 4 weeks ago
I run your code,it works well.one request log like
2024-09-24T18:58:29.388+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Increasing pending responses count: 1
2024-09-24T18:58:29.388+08:00 DEBUG 34560 --- [ctor-http-nio-3] reactor.netty.http.server.HttpServer : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Handler is being applied: org.springframework.http.server.reactive.ReactorHttpHandlerAdapter@65e218b7
2024-09-24T18:58:29.389+08:00 TRACE 34560 --- [ctor-http-nio-3] o.s.c.g.f.WeightCalculatorWebFilter : Weights attr: {}
2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Decreasing pending responses count: 0
2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Last HTTP packet was sent, terminating the channel
2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.netty.channel.ChannelOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] [HttpServer] Channel inbound receiver cancelled (operation cancelled).
2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Last HTTP response frame
2024-09-24T18:58:29.391+08:00 TRACE 34560 --- [ctor-http-nio-3] r.netty.channel.ChannelOperations : [43d3365d, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Disposing ChannelOperation from a channel
java.lang.Exception: ChannelOperation terminal stack
at reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:492) ~[reactor-netty-core-1.1.19.jar:1.1.19]
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173) ~[netty-common-4.1.110.Final.jar:4.1.110.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166) ~[netty-common-4.1.110.Final.jar:4.1.110.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) ~[netty-common-4.1.110.Final.jar:4.1.110.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566) ~[netty-transport-4.1.110.Final.jar:4.1.110.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) ~[netty-common-4.1.110.Final.jar:4.1.110.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.110.Final.jar:4.1.110.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.110.Final.jar:4.1.110.Final]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
@ctlove0523 it can run but why have error log? how to prevent log error appear? Could you describle that error?
I run your code,it works well.one request log like
2024-09-24T18:58:29.388+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Increasing pending responses count: 1 2024-09-24T18:58:29.388+08:00 DEBUG 34560 --- [ctor-http-nio-3] reactor.netty.http.server.HttpServer : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Handler is being applied: org.springframework.http.server.reactive.ReactorHttpHandlerAdapter@65e218b7 2024-09-24T18:58:29.389+08:00 TRACE 34560 --- [ctor-http-nio-3] o.s.c.g.f.WeightCalculatorWebFilter : Weights attr: {} 2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Decreasing pending responses count: 0 2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Last HTTP packet was sent, terminating the channel 2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.netty.channel.ChannelOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] [HttpServer] Channel inbound receiver cancelled (operation cancelled). 2024-09-24T18:58:29.390+08:00 DEBUG 34560 --- [ctor-http-nio-3] r.n.http.server.HttpServerOperations : [43d3365d-3, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Last HTTP response frame 2024-09-24T18:58:29.391+08:00 TRACE 34560 --- [ctor-http-nio-3] r.netty.channel.ChannelOperations : [43d3365d, L:/[0:0:0:0:0:0:0:1]:9968 - R:/[0:0:0:0:0:0:0:1]:54109] Disposing ChannelOperation from a channel java.lang.Exception: ChannelOperation terminal stack at reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:492) ~[reactor-netty-core-1.1.19.jar:1.1.19] at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173) ~[netty-common-4.1.110.Final.jar:4.1.110.Final] at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166) ~[netty-common-4.1.110.Final.jar:4.1.110.Final] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) ~[netty-common-4.1.110.Final.jar:4.1.110.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566) ~[netty-transport-4.1.110.Final.jar:4.1.110.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) ~[netty-common-4.1.110.Final.jar:4.1.110.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.110.Final.jar:4.1.110.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.110.Final.jar:4.1.110.Final] at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
It is because client close connection two fast,you can write one http client then make a call and not close connection
I just created a spring cloud gateway project. I enable http2 + SSL together, then call health check it throws a log error:
Suppressed: io.netty.handler.ssl.StacklessSSLHandshakeException: Connection closed while SSL/TLS handshake was in progress
my version of project:
url call health check: https://localhost:9968/healthcheck/readiness
this is my project to reproduce error: https://github.com/hoangdangduy/spring-cloud-gateway
thanks in advance for your help.
file application.yaml:
This detail log in console: