spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.52k stars 3.32k forks source link

How to resolve this NativeIoException #870

Closed wangpeng3477 closed 5 years ago

wangpeng3477 commented 5 years ago

ERROR reactor.core.publisher.Operators [319]- Operator called default onErrorDropped io.netty.channel.unix.Errors$NativeIoException: syscall:read(..) failed: Connection reset by peer at io.netty.channel.unix.FileDescriptor.readAddress(..)(Unknown Source)

spencergibb commented 5 years ago

How did you come to get this exception? What versions are you using? How to recreate it?

wangpeng3477 commented 5 years ago

I used springboot2.1.3 and springcloud G This exception occurs when the request volume is high in the production environment image

spencergibb commented 5 years ago

Images are not a good way to copy stack traces.

The exceptions say the connection was closed on the other side of the network connection (connection reset by peer).

wangpeng3477 commented 5 years ago

2019-03-05 10:48:58.706 [reactor-http-epoll-1] ERROR reactor.core.publisher.Operators [319]- Operator called default onErrorDropped io.netty.channel.unix.Errors$NativeIoException: syscall:read(..) failed: Connection reset by peer at io.netty.channel.unix.FileDescriptor.readAddress(..)(Unknown Source) 2019-03-05 10:49:00.250 [reactor-http-epoll-3] ERROR reactor.core.publisher.Operators [319]- Operator called default onErrorDropped io.netty.channel.unix.Errors$NativeIoException: syscall:read(..) failed: Connection reset by peer at io.netty.channel.unix.FileDescriptor.readAddress(..)(Unknown Source) 2019-03-05 10:49:46.883 [reactor-http-epoll-1] ERROR reactor.core.publisher.Operators [319]- Operator called default onErrorDropped io.netty.channel.unix.Errors$NativeIoException: syscall:read(..) failed: Connection reset by peer at io.netty.channel.unix.FileDescriptor.readAddress(..)(Unknown Source) 2019-03-05 10:49:52.484 [reactor-http-epoll-4] ERROR reactor.core.publisher.Operators [319]- Operator called default onErrorDropped io.netty.channel.unix.Errors$NativeIoException: syscall:read(..) failed: Connection reset by peer at io.netty.channel.unix.FileDescriptor.readAddress(..)(Unknown Source)

wangpeng3477 commented 5 years ago

Will this affect gateway performance

ryanjbaxter commented 5 years ago

As @spencergibb it is the downstream service reseting the connection not the gateway

spring-projects-issues commented 5 years ago

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.

spring-projects-issues commented 5 years ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

zonglin001 commented 5 years ago

I also encountered the same problem, but it is not clear why, the deployment environment docker?

image

proluoo commented 1 year ago

I also encountered the same problem, but it is not clear why, the deployment environment docker?

image

how did you solve the problem, gemen?