harmeetsingh-work/naga

NIOSocket.write() does not work with selectBlocking in multi-threaded environment.

Closed this issue · 2 comments

If using selectBlocking() and then using NIOSocket#write(byte[]) from a 
different thread, the selector 
would not be awakened and consequently the write would not be performed.

This does not affect selectNonBlocking or if everything is single-threaded. 

Original issue reported on code.google.com by christof...@gmail.com on 29 Aug 2008 at 11:54

Fixed in 1.2

Original comment by christof...@gmail.com on 29 Aug 2008 at 12:00

  • Changed state: Fixed

Original comment by christof...@gmail.com on 29 Aug 2008 at 12:08

  • Changed title: NIOSocket.write() does not work with selectBlocking in multi-threaded environment.