[Freeswitch-dev] SSL_read in do_dtls() question
anthony.minessale at gmail.com
Thu Jul 25 16:56:54 MSD 2013
Does it work either way?
I guess another good question is what's the difference?
If you have a problem or refactoring the code has merit. Submit a patch to
Jira and provide details.
On Jul 25, 2013 4:43 AM, "Iwan Budi Kusnanto" <ibk at labhijau.net> wrote:
> Just curious, why use SSL_read in do_dtls()  while in the same time
> Freeswitch use BIO_write.
> Just wondering why not use BIO_read.
> I replaced SSL_read with BIO_read and it is working fine with chrome
> for few calls.
> Not intensive test actually.
> So, the line become if (BIO_read(dtls->write_bio, dtls->data,
> dtls->bytes) == (int)dtls->bytes)
> Another question, still in do_dtls() about this line:
> BIO_write(dtls->read_bio, dtls->data, dtls->bytes)
> Why use dtls->read_bio in write operation?
> Why also need dtls->write_bio in my BIO_read above.
> It seems weird for me
> Iwan Budi Kusnanto
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev