Reduce the instruction overhead of OpenSSL calls - Mailing list pgsql-hackers

From ryanewang(王蕾)
Subject Reduce the instruction overhead of OpenSSL calls
Date
Msg-id tencent_54D63CC119DD5CF71E21FAAB@qq.com
Whole thread Raw
Responses Re: Reduce the instruction overhead of OpenSSL calls
List pgsql-hackers
Hi,
From the openssl documentation, when the value of ret is greater than 0, the SSL_get_error() function returns SSL_ERROR_NONE. 
So, it seems that when the return value of SSL_read() or SSL_write() function is greater than 0, we don't need to make an error judgment. 
The attached patch attempts to reduce unnecessary error judgments. 

I am glad for feedback and reviews!


.wecom_custom_card_mobile *,.wecom_custom_card_mail *,.wecom_custom_card_address * {color: rgba(10, 17, 26, 0.50) !important; } .qqmail_sign *{text-decoration-line: none !important; line-break: after-white-space; }

腾讯
ryanewang研发四组员工



Attachment

pgsql-hackers by date:

Previous
From: Andreas Karlsson
Date:
Subject: Add support for EXTRA_REGRESS_OPTS for meson
Next
From: Andres Freund
Date:
Subject: Re: Add support for EXTRA_REGRESS_OPTS for meson