Comments (6)
@AbhiramDwivedi Have you checked https://projectreactor.io/docs/netty/release/reference/index.html#faq.connection-closed, especially the part where a Network Component drops a connection silently.
If you have checked that, please provide the TCP dump.
You might be interested in checking this https://medium.com/tenable-techblog/lessons-from-aws-nlb-timeouts-5028a8f65dda (in case you use AWS NLB) and this https://youtu.be/O4oZS-SAq14?t=526
from reactor-netty.
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.
from reactor-netty.
Hi @violetagg : Those links were quite useful in understanding the TCP settings. We tried with pretty aggressive settings and that did not help. This is almost solved with TCP changes on target cluster, with following changes:
- keep-alive reduced from 3000 to 300
- keep-alive-requests increased from 100 to 1000
- upstream-keepalive-timeout increased from 60 to 300
However, we still run into it some times, and there is no real consistent way of reproducing or solving this.
A hundreds of million project was delayed due to this, and is now live with known intermittent issues. All network and dev teams have exhausted their capacities. Sometimes, its OK to move on than staying stuck to solve.
For a case like this, or other future cases, I would expect project developers to create an option to kill the pool and act as resttemplate. We are probably going to make that code change anyway at our end, and use two different ways of invoking endpoints.
This bug is not about "my" issue, but rather a permanent solution
from reactor-netty.
@AbhiramDwivedi You changed the timeouts on the target but did you add any configuration on your client e.g. maxIdleTime
as it is suggested in our FAQ?
from reactor-netty.
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.
from reactor-netty.
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.
from reactor-netty.
Related Issues (20)
- Metrics not disposed for `GracefulShutdownInstrumentedPool` HOT 1
- non-blocking call delayed accasionally. HOT 2
- Webclient timeout with Httpclient HOT 10
- Support SocketAddress for proxies HOT 2
- Support for changing the default compression level when enabling server response compression HOT 3
- Added configuration to disable dns using TransportConnector HOT 5
- The premature closure of a TCP connection, resulting in the error "Connection prematurely closed BEFORE response," affects another connection. HOT 3
- Need proper documentation for Default ConnectionPool and LoopResource usage with different hosts and/or port HOT 1
- Webclient active connection is struck - Direct buffer memory increase HOT 16
- MonoSend MAX_SIZE and REFILL_SIZE are not configurable HOT 6
- Netty does not provide errorLog just accesLog HOT 1
- http3 Error: connect ECONNREFUSED HOT 3
- Connection prematurely closed BEFORE response Internal timeout HOT 2
- HttpClient.reactorNettyVersion() throws NullPointException when loaded through -javaagent, under jdk 1.8
- The connection observed an error reactor.netty.channel.AbortedException: Connection has been closed HOT 12
- Memory Leak Detected in Netty 4.1.100.Final HOT 7
- io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer HOT 2
- ReadTimeoutException with WebClient During Low Traffic Periods Despite Configuring maxIdleTime HOT 5
- Internal state of HttpObjectDecoder is not reset when connection pooling is used HOT 3
- Content-Length set for GET/HEAD requests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactor-netty.