Closed wyingda closed 10 months ago
Hi there,
1) It's not sharable you will need to create a new instance for each Channel. You can do so by using a ChannelInitializer
and create the codec in the initChannel
method.
2) its not sharable
3) you will need to do this via something like ebpf if you want to support migrations
I want to use multiple threads to process the connections on the server side, so I try to use SO_REUSEPORT and bind multiple times like this: