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

ClosedChannelException after 30 seconds #658

Open
zachlefevre opened this issue Dec 16, 2021 · 0 comments
Open

ClosedChannelException after 30 seconds #658

zachlefevre opened this issue Dec 16, 2021 · 0 comments

Comments

@zachlefevre
Copy link

zachlefevre commented Dec 16, 2021

logs show:

22:29:50.969 [AsyncHttpClient-885-1] DEBUG org.asynchttpclient.netty.channel.ChannelManager - Adding key: https://api.github.com:443 for channel [id: 0xee990c27, L:/192.168.1.106:37390 - R:api.github.com/140.82.112.6:443]
22:29:50.988 [AsyncHttpClient-773-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 27 thread-local buffer(s) from thread: AsyncHttpClient-773-1
22:29:50.993 [AsyncHttpClient-903-1] DEBUG org.asynchttpclient.netty.channel.NettyConnectListener - Using new Channel '[id: 0xa764e8b8, L:/192.168.1.106:37410 - R:api.github.com/140.82.112.6:443]' for 'GET' to '/repos/github/linux/contributors?page=3'
22:29:50.993 [AsyncHttpClient-903-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0xa764e8b8, L:/192.168.1.106:37410 - R:api.github.com/140.82.112.6:443] HANDSHAKEN: protocol:TLSv1.2 cipher suite:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
22:29:50.995 [AsyncHttpClient-901-1] DEBUG org.asynchttpclient.netty.channel.NettyConnectListener - Using new Channel '[id: 0x21e59fa8, L:/192.168.1.106:37406 - R:api.github.com/140.82.112.6:443]' for 'GET' to '/repos/github/government.github.com/contributors?page=9'
22:29:50.996 [AsyncHttpClient-901-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x21e59fa8, L:/192.168.1.106:37406 - R:api.github.com/140.82.112.6:443] HANDSHAKEN: protocol:TLSv1.2 cipher suite:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
22:29:51.023 [AsyncHttpClient-923-1] DEBUG org.asynchttpclient.netty.channel.NettyConnectListener - Trying to recover from failing to connect channel [id: 0x4bd636a5, L:null ! R:api.github.com/140.82.112.6:443] with a retry value of true
22:29:51.023 [AsyncHttpClient-923-1] DEBUG org.asynchttpclient.netty.channel.NettyConnectListener - Failed to recover from connect exception: java.nio.channels.ClosedChannelException with channel [id: 0x4bd636a5, L:null ! R:api.github.com/140.82.112.6:443]
22:29:51.028 [AsyncHttpClient-927-1] DEBUG org.asynchttpclient.netty.channel.NettyConnectListener - Trying to recover from failing to connect channel [id: 0x5c1111d1, L:null ! R:api.github.com/140.82.112.6:443] with a retry value of true
22:29:51.028 [AsyncHttpClient-927-1] DEBUG org.asynchttpclient.netty.channel.NettyConnectListener - Failed to recover from connect exception: java.nio.channels.ClosedChannelException with channel [id: 0x5c1111d1, L:null ! R:api.github.com/140.82.112.6:443]

My Server is

    val builder = BlazeServerBuilder[F](global)
      .bindHttp(port, address)
      .withIdleTimeout(45.seconds)
      .withSocketKeepAlive(true)
      .withHttpApp(loggingApp).serve.drain

The idletimeout is 45 seconds.
I'm using version 0.22.8. I'm making requests to the github API via the sttp cats-effect backen if that makes a difference.

@rossabaker rossabaker transferred this issue from http4s/http4s May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants