Issue with select after SSL_get_wfd

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

 



Hi All,

I want to know the status of the SSL_WRITE for DTLS on UDP on a non-blocking socket. Only if the other end does the recvfrom I want to continue with subsequent SSL_WRITE.

Below is what I have tried.

//Making the socket blocking - if I dont do below then select call hangs

if (wfd = SSL_get_wfd(ssl))
    {
            flags = fcntl(wfd, F_GETFL);
            flags &= ~O_NONBLOCK;
            fcntl(a_wfd, F_SETFL, flags);

                FD_SET(wfd, &write_fds);
    }
len = SSL_write(          ssl,
                                     buf,
                                     elen);

i = select(wfd+1, NULL, &write_fds, 0, 0);

The other side has not yet done the SSL_read but i is "1".
Is their something wrong with this?

Thanks,
Grace

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[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