reactor / reactor-netty

TCP/HTTP/UDP/QUIC client/server with Reactor over Netty

Home Page:https://projectreactor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intermittent error with connection reset by peer.

sokavidyasagar opened this issue · comments

We are using microservice architecture(Spring Boot application deployed on AWS EKS) and we are getting "connection reset by peer" when trigger API call from my service to other application.

Expected Behavior

Successful handshake with other application we tried to connect

Actual Behavior

Intermittent issue with connection reset by peer issue.
recvAddress(..) failed: Connection reset by peer; nested exception is io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer org.springframework.web.reactive.function.client.WebClientRequestException: recvAddress(..) failed: Connection reset by peer; nested exception is io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer

Steps to Reproduce

unable reproduce

@Test
public void repoCase() {

}

Properties :
connection:
maxConnections: 500
maxIdleTime: 20
maxLifeTime: 60
pendingAcquireTimeout: 45
evictInBackground: 120

Possible Solution

Validate a connection before triggering API call.

Your Environment

We are using : io.projectreactor.netty:reactor-netty-http:jar:1.0.38
Java version: 1.8

  • Reactor version(s) used:
  • Other relevant libraries versions (eg. netty, ...):
  • JVM version (java -version):
  • OS and version (eg. uname -a):

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.