[openssl-users] SSL_read, SSL_write error handling
    Viktor Dukhovni 
    openssl-users at dukhovni.org
       
    Thu Sep 15 16:15:33 UTC 2016
    
    
  
On Thu, Sep 15, 2016 at 07:18:52AM +0200, Alex Hultman wrote:
>     io_callback(events) {
>         if (messages_to_send && (events & OS_WRITABLE)) {
>             SSL_write(.....);
>             if (error) {
>                 if (error_is_want_read) {
>                     system_poll &= OS_READABLE;
>                 } else if (error_is_want_write) {
>                     system_poll &= OS_WRITABLE;
>                 }
For what it's worth, you probably meant "|=" not "&=".
-- 
	Viktor.
    
    
More information about the openssl-users
mailing list