At 11:25 Uhr +0900 03.03.1999, Lee Min Seop wrote:
>Hi.
>I am using the SSLeay for our browser.
>When I did interoperability test between SSL web servers and our browser,
>I had a problem related with non-blocking IO.
>The browser and server opened a persistent connection.
>The browser called SSL_read() function with 4k buffer.
>At first the function returned with full 4k data from the web server.
>After that our browser entered select loop for detecting socket
>readability.
>But for a long time the select call didn't return signal that socket could
>be read.
>After the SSL_read() function returned with the buffer fully filled, the
>select call don't operate well until the persistent connection closed.
>It seems like that the cause is the buffered data in the ssleay library.
>I tested this with the s_client application in ssleay package.
>I had the same result.
>Is there any good solution to handle this problem or any ideas?
>Tia.
You have also to check SSL_pending() and do a SSL_read() until it returns
false. Only then do a select.
Georg
----
Dipl.Ing. Georg Gollmann TU-Wien, Zentraler Informatikdienst
phon:(+43-1) 58801 - 42022
fax: (+43-1) 58801 - 42099
mail:[EMAIL PROTECTED]
http://macos.tuwien.ac.at/Gollmann.html
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]