Skip to content

Commit

Permalink
[ISSUE #4236] TCP reconnection failed
Browse files Browse the repository at this point in the history
[ISSUE #4236] TCP reconnection failed
  • Loading branch information
mxsm authored Jul 21, 2023
2 parents 022c051 + 1ba925b commit 3499497
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import io.cloudevents.core.format.EventFormat;
import io.cloudevents.core.provider.EventFormatProvider;
import io.cloudevents.jackson.JsonFormat;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;

import com.google.common.base.Preconditions;
Expand Down Expand Up @@ -138,6 +139,7 @@ public void close() {
}
}

@Sharable
private class CloudEventTCPPubHandler extends AbstractEventMeshTCPPubHandler<CloudEvent> {

public CloudEventTCPPubHandler(ConcurrentHashMap<Object, RequestContext> contexts) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import io.cloudevents.core.format.EventFormat;
import io.cloudevents.core.provider.EventFormatProvider;
import io.cloudevents.jackson.JsonFormat;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;

import com.google.common.base.Preconditions;
Expand Down Expand Up @@ -141,6 +142,7 @@ public void close() {
}
}

@Sharable
private class CloudEventTCPSubHandler extends AbstractEventMeshTCPSubHandler<CloudEvent> {

public CloudEventTCPSubHandler(
Expand Down

0 comments on commit 3499497

Please sign in to comment.