Min Zhou
Min Zhou

Reputation: 118

Is Netty4 ChannelHandlerContext.write thread safe

Looking into the code, seems it isn't thread safe. If not , how can I write data in a thread-safe way?

Upvotes: 2

Views: 1002

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

Yes it is thread-safe. Same is true for all ChannelHandlerContext, Channel and ChannelPipeline operations.

Upvotes: 2

Related Questions