http4s / blaze

Blazing fast NIO microframework and Http Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ClosedChannelException after 30 seconds

zachlefevre opened this issue · comments

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.