Tobias Rundström wrote: > Hello OpenSSL people. > > Here is my problem. > > I have abstrahated my net_read and net_write functions so I dont have to worry > about SSL in the main code. This works fine, but the other day I ran into a problem > where my server program didnt read the whole stream. > > I think the problem is that I call poll() and the data has been buffered into > the SSL context, any ideas? > > attached is my code... >
Use SSL_pending(SSL*) to see if you have buffered data in the SSL state before calling poll! Or make sure that chunksize is set to max size of an SSL record. /Tony ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]