<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-GB" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span lang="FR">Hi,</span></p><p class="MsoNormal"><span lang="FR"> </span></p><p class="MsoNormal">Omniorb hangs on reading a big output parameter (usually a sequence of struct) from a calling method of an IDL interface with SSL connection.</p><p class="MsoNormal"> </p><p class="MsoNormal">It seems this is a regression from:</p><p class="MsoNormal"><a href="http://sourceforge.net/p/omniorb/svn/6158/">http://sourceforge.net/p/omniorb/svn/6158/</a></p><p class="MsoNormal"> </p><p class="MsoNormal">The bytes are already buffered in the SSL object but omniorb tries to read those bytes from the socket instead of using directly SSL_read().</p><p class="MsoNormal"> </p><p class="MsoNormal">I propose the following patch which resolves my issue:</p><p class="MsoNormal">Index: src/lib/omniORB/orbcore/ssl/sslConnection.cc</p><p class="MsoNormal">===================================================================</p><p class="MsoNormal">--- src/lib/omniORB/orbcore/ssl/sslConnection.cc            (revision 255787)</p><p class="MsoNormal">+++ src/lib/omniORB/orbcore/ssl/sslConnection.cc         (working copy)</p><p class="MsoNormal">@@ -197,7 +197,7 @@</p><p class="MsoNormal">       return 0;</p><p class="MsoNormal">     }</p><p class="MsoNormal"> </p><p class="MsoNormal">-    if (t.tv_sec || t.tv_usec) {</p><p class="MsoNormal">+    if ((t.tv_sec || t.tv_usec) &amp;&amp; SSL_pending(pd_ssl) &lt;= 0 ) {</p><p class="MsoNormal">       setNonBlocking();</p><p class="MsoNormal">       rx = tcpSocket::waitRead(pd_socket, t);</p><p class="MsoNormal"> </p><p class="MsoNormal">Regards,</p><p class="MsoNormal"><span lang="FR">Daniel.</span></p><p class="MsoNormal"><span lang="FR"> </span></p></div></body></html>