ClosedChannelException after 30 seconds

Abierto
#658 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
scala

Línea de trabajo

Comienza reproduciendo el fallo con BlazeServerBuilder, su tiempo de espera de inactividad de 45 segundos y el backend sttp cats-effect, mientras revisas los logs de ClosedChannelException. Determina si el tiempo de espera provoca las conexiones fallidas a la GitHub API; se considera terminado cuando se haya identificado la causa y se haya documentado o probado la solución adecuada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

module:async-http-client module:blaze-server

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.

Lenguaje dominante
Scala
Estrellas
371
Forks
63
Merge medio
7 h 47 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de http4s/blaze

Todos los issues de http4s/blaze

Issues similares

Más issues de Scala

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.