From: | ryanewang(王蕾) <ryanewang(at)tencent(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Reduce the instruction overhead of OpenSSL calls |
Date: | 2025-02-27 13:16:11 |
Message-ID: | tencent_54D63CC119DD5CF71E21FAAB@qq.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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!
腾讯
ryanewang 研发四组员工
Attachment | Content-Type | Size |
---|---|---|
0001-Patch-Remove-unnecessary-OpenSSL-error-judgment.patch | application/octet-stream | 2.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2025-02-27 13:21:22 | Re: Add support for EXTRA_REGRESS_OPTS for meson |
Previous Message | Andreas Karlsson | 2025-02-27 12:53:17 | Add support for EXTRA_REGRESS_OPTS for meson |