SSL_read, SSL_write error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux