Did you try to adjust the size of buffers you write/read on both sides ?
For example to 4096 bytes.
I had such sort of problem in some of my C/S applications.

If i remember correctly, for example, i was sending 5k, and reading by 4k, first read 
was done ok, then select say there are data to read that are ready, and the next read 
was kinda hanged ...
That was something weird, like if the select on one side, was blocking the other side.
I neved investigated any further...

Francis

-----Original Message-----
From: cau.m [mailto:[EMAIL PROTECTED]
Sent: vendredi 7 novembre 2003 21:16
To: openssl-users
Subject: SSL_write() must be done twice to work properly



Hi everyone,
 
I'm developing a communication between sockets and i'm having some
problems with the openssl and the select() function. The problem is
that i have to call the SSL_write() function twice to make the other
side read the buffer. Anyone has any idea of how can i overcome this
problem?
 
thanks in advance,
 
Claudio     

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to