{"id":236,"date":"2009-11-19T16:03:04","date_gmt":"2009-11-19T16:03:04","guid":{"rendered":"https:\/\/kari.world.ikari.fi\/2009\/11\/19\/nio-ssl-serversocket-wtf\/"},"modified":"2009-11-19T16:03:04","modified_gmt":"2009-11-19T16:03:04","slug":"nio-ssl-serversocket-wtf","status":"publish","type":"post","link":"https:\/\/kari.world.ikari.fi\/?p=236","title":{"rendered":"NIO + SSL + ServerSocket == wtf?!?"},"content":{"rendered":"<p>Okey,<\/p>\n<p>This (<a href=\"http:\/\/www.koders.com\/java\/fid822B5F539011FE517BF0E829C3C411CCDDF6E09A.aspx?s=SSLEngineImpl\">SSLServerSocketChannel<\/a>) actually looks promising starting point&#8230; Appears to be part of larger API\/framework called <a href=\"http:\/\/sourceforge.net\/projects\/tammi\/\">Tammi<\/a>.<\/p>\n<p><strong>However<\/strong>, I&#8217;m not so sure that all points mentioned on this <a href=\"http:\/\/www.telekinesis.com.au\/wipv3_6\/page2\/show.jsp?id=246379&amp;db=Entries\">FAQ<\/a> are really covered.<\/p>\n<p>As summary: Making NIO to work with SSL (in server side sockets) is big-pain-in-the-ass.<\/p>\n<p>Some references:<br \/>\n<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/javax\/net\/ssl\/SSLEngine.html\">SSLEngine<\/a><br \/>\n<a href=\"http:\/\/onjava.com\/pub\/a\/onjava\/2004\/11\/03\/ssl-nio.html\">Using SSL with Non-Blocking IO<\/a><br \/>\n<a href=\"http:\/\/weblogs.java.net\/blog\/jfarcand\/archive\/2006\/09\/tricks_and_tips_2.html\">Tricks and Tips with NIO part V: SSL and NIO, friend or foe?<\/a><br \/>\n<a href=\"http:\/\/bugs.sun.com\/bugdatabase\/view_bug.do;jsessionid=d337251106cb355625429cb58991?bug_id=4495742\">Bug ID: 4495742 &#8211; Add non-blocking SSL\/TLS functionality, usable with any I\/O abstraction<\/a><br \/>\n<a href=\"http:\/\/www.telekinesis.com.au\/wipv3_6\/page2\/show.jsp?id=246379&amp;db=Entries\">Scalable SSL for Java FAQ<\/a><\/p>\n<p>Misc:<br \/>\n<a href=\"http:\/\/weblogs.java.net\/blog\/2006\/07\/07\/tricks-and-tips-nio-part-iii-thread-or-not-thread\">Tricks and Tips with NIO part III: To Thread or Not to Thread<\/a><br \/>\n<a href=\"http:\/\/www.informit.com\/articles\/printerfriendly.aspx?p=167821\">Concurrent Programming in Java: Creating Threads<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okey, This (SSLServerSocketChannel) actually looks promising starting point&#8230; Appears to be part of larger API\/framework called Tammi. However, I&#8217;m not so sure that all points mentioned on this FAQ are really covered. As summary: Making NIO to work with SSL (in server side sockets) is big-pain-in-the-ass. Some references: SSLEngine Using SSL with Non-Blocking IO Tricks&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-236","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=236"}],"version-history":[{"count":0,"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=\/wp\/v2\/posts\/236\/revisions"}],"wp:attachment":[{"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kari.world.ikari.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}