If we register OP_WRITE
on a SocketChannel
, it seems selectionKey.isWritable()
method always return TRUE.
Will there be any specific scenario that it returns FALSE for a socket channel?
Asked
Active
Viewed 111 times
1

user207421
- 305,947
- 44
- 307
- 483

Alendi
- 21
- 1
-
1It is true unless the socket send buffer is full, which only happens if the receiver's receive buffer is full. – user207421 Apr 24 '19 at 09:47
-
Can't imagine why this was downvoted. – user207421 Apr 24 '19 at 10:44