This repository was archived by the owner on May 4, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
proteus-client/src/main/java/io/netifi/proteus Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3232import io .netty .buffer .ByteBuf ;
3333import io .netty .buffer .ByteBufAllocator ;
3434import io .netty .buffer .Unpooled ;
35+ import io .netty .util .ReferenceCountUtil ;
3536import io .opentracing .Tracer ;
3637import io .rsocket .Payload ;
3738import io .rsocket .RSocket ;
Original file line number Diff line number Diff line change @@ -198,11 +198,13 @@ private ClientRSocketFactory getClientFactory() {
198198 if (keepalive ) {
199199 connect =
200200 connect
201+ .keepAlive ()
201202 .keepAliveTickPeriod (Duration .ofSeconds (tickPeriodSeconds ))
202203 .keepAliveAckTimeout (Duration .ofSeconds (ackTimeoutSeconds ))
203204 .keepAliveMissedAcks (missedAcks );
204205 } else {
205206 connect
207+ .keepAlive ()
206208 .keepAliveAckTimeout (Duration .ofSeconds (0 ))
207209 .keepAliveAckTimeout (Duration .ofSeconds (0 ))
208210 .keepAliveMissedAcks (missedAcks );
@@ -276,8 +278,7 @@ void connect() {
276278 })
277279 .subscribe ();
278280 setRSocket (rSocket );
279- })
280- .doFinally (signalType -> setupPayload .release ());
281+ });
281282 }))
282283 .doOnError (t -> logger .error ("error trying to broker" , t ))
283284 .retry ()
You can’t perform that action at this time.
0 commit comments