---- Original message ---- >Date: Tue, 22 Aug 2006 15:00:46 +0200 >From: Marek Marcola <[EMAIL PROTECTED]> >Subject: Re: Wrapping SSL_read/SSL_write so they behave like read/write.] >To: openssl-users@openssl.org >You may use select() but with some care. >Simplest way is to: > 1) wait on select() > 2) read hit from SSL descriptor occur > 3) read incrementally with SSL_read() from that descriptor until >WANT_READ > (or in other words - get all data from SSL read buffer) > 4) go to select() > >In 3) you may get WANT_WRITE too, in this case you should go to select() >and wait for write hit on SSL descriptor and perform 3) as you >do when you get read hit in select() on this SSL descriptor.
Are you suggesting that the write hit from select is an indication that the descriptor is writable and hence the data that SSL required to write before it could serve our read request must have been written. And so we would expect a successful SSL_read after this write hit from select? Moreover, should we not wait again for a read hit from select before we SSL_read()? > >Best regards, >-- >Marek Marcola <[EMAIL PROTECTED]> > >______________________________________________________________________ >OpenSSL Project http://www.openssl.org >User Support Mailing List openssl-users@openssl.org >Automated List Manager [EMAIL PROTECTED] DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]