Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

trying to get configureBlocking(false); to work  RSS feed

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a message producer but the socket is never set if the serverSocketChannel.configureBlocking(false) is set.
In the code below it will never reach the block of code protected by sChannel != null
I know that it takes time to connect but this seems to loop for ever
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!