Comments (2)
72f4cbd doesn't completely fix this (as subsequent invocations of onReadIdle
API depends on addHandler
, which went from failing on duplicate names to discarding the secondly added handler)... It makes the workaround shorter, though, with the addition of removeHandler
:
public void onReadInactivity(Runnable runnable, long inactivityDuration) {
// TODO: workaround for https://github.com/reactor/reactor-netty/issues/22
this.inbound.removeHandler(NettyPipeline.OnChannelReadIdle);
this.inbound.onReadIdle(inactivityDuration, runnable);
}
from reactor-netty.
I'm fine with suggested workaround but silently ignoring the second invocation doesn't seem fine. I would rather see an IllegalStateException pointing to the need to explicitly remove the existing handler first.
from reactor-netty.
Related Issues (20)
- Connection prematurely closed DURING response HOT 2
- isConnectionReset returns false for SocketException(Connection Reset) HOT 2
- TraceId lost in Netty custom LoggingHandler READ event HOT 11
- reactor.netty.http.client.PrematureCloseException: Connection prematurely closed DURING response HOT 2
- Customize WebSocketClientCompressionHandler HOT 4
- Channel acquisition delay for a fraction of requests HOT 8
- io.netty.resolver.dns.DnsNameResolverTimeoutException when the application is running in Kubernetes HOT 8
- Max active streams reached exception HOT 19
- Error occurred: io.netty.handler.codec.http.DefaultHttpRequest (expected: io.netty.buffer.ByteBuf) HOT 3
- Cookie handling does not conform to RFC 6265 when sending multiple cookies
- CI: Add GitHub Actions to Auto-Format Java Files according to Checkstyle configuration HOT 2
- Connection prematurely closed BEFORE response on half closed connection HOT 19
- reactor netty (1.0.33) not able to decode the packet with PRI* method [PRI* HTTP/2.0] in HTTPS connection HOT 8
- Cannot cast java AtomicLong exception and custom Concurrent connections is leaky over time and HOT 11
- org.springframework.web.reactive.function.client.WebClientRequestException: Connection prematurely closed BEFORE response HOT 2
- Tracing Context not logged in access-log when replacing ReactorNettyHttpTracing with standard HttpClient/HttpServer integration HOT 6
- HTTP client unable to specify which IP to bind to, what should I do? HOT 8
- HttpServer Underlying Downstream HttpClient Connection Getting Closed Quietly HOT 5
- Spring gateway use reactor netty switch thread spend too many time HOT 7
- TlsMetricsHandler throws NPE when used together with SniHandler HOT 2
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.