I need to implement secure (https) non-blocking communication. I want to use java.nio with JSSE. I found a paper on that subject (http://www-106.ibm.com/developerworks/java/library/j-sslnb.html?ca=dgr-lnxw16JSSE-NIO) and tried to run the example program. Unfortunately, when I run the program, the output contains many "bad characters". When I comment this line : s.setSoTimeout(25); in nbChannel.java, the output is OK. I think the SocketTimeoutException that is ...