What's wrong with my last patch?
Could you, please, review it?
I don't understand why you are so against these changes?
Regards,
Alexei
Friday, October 14, 2016, 4:48:14 AM, you wrote:
Hi Alexei, We appreciate if you could test it out. We will gladly review this again if your test show any issue. Best Regards, Riza On Fri, Oct 14, 2016 at 12:01 AM, Alexei Gradinari <alex2grad@xxxxxxxxx> wrote: Hello Riza, 1. You are right... the last_err was set out of locking the write_mutex. Attached modified patch which set the last_err inside locking the write_mutex, so it eliminates the SSL object reuse. 2. The read operation (SSL_read) is protected by write_mutex. Are there other read operations which are not protected by write_mutex? I concern write_mutex as SSL mutex which should protect the SSL objects. 3. About confirmation that the crash didn't happened with your patch... If the crash hasn't happened in 2-3 days after you published this patch it doesn't mean that the crash couldn't happen again. If I see a code which could lead to the potential crash I'd like to write a code which prevent crashes. Reusing the SSL object when it has encountered a fatal error could crash on system with openssl version without the commit 189e20c68c2399782034fec9f65d6b9ee88aac3d dated Apr 23, 2015. If you insist I can setup a test system with openssl without this commit to prove that crash could happen. Regards, Alexei Thursday, October 13, 2016, 12:12:10 AM, you wrote:
|
--
Best regards,
Alexei mailto:alex2grad@xxxxxxxxx
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org