0
votes

Related question: Single thread per channel model with netty OIO

I've written an OIO client-server using netty, where I send a number of messages from server to client (and vice--versa) after the connection is up.

As far as I can tell, it looks like writes to channel block reads from channel.

Is that normal behaviour for netty?

1

1 Answers

0
votes

Yes. Netty's OIO transport performs read and write in the same thread. Therefore, while you write, the read for the channel which is being written is blocked.