-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue: 3759513 Fix blocking SSL_sendfile() #141
base: vNext
Are you sure you want to change the base?
Conversation
if (m_p_zc_owner) { | ||
/* | ||
* For zerocopy case we create 3 scatter-gather elements in this order: | ||
* [0] TLS header which includes IV for TLS 1.2 | ||
* [1] Payload | ||
* [2] Trailer which contains TAG and TLS 1.3 type if applicable | ||
*/ | ||
assert(iov_max >= 3); | ||
(void)iov_max; | ||
tx_attr.attr.sz_iov = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use TLS_IOV_SIZE here?
and in the static_assert above
@@ -186,6 +186,8 @@ enum : size_t { | |||
TLS_RECORD_MAX = 16384U, | |||
/* Block size big enough to hold TLS header/trailer for zerocopy records. */ | |||
TLS_ZC_BLOCK = 32U, | |||
/* Maximum number of scatter-gather elements for TCP send operation. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add to the comment why 3 ...
Last check introduces some degradation that should be investigated |
cfce2e8
to
51c2340
Compare
SSL_sendfile() creates 3 iov elements, however, for a blocking socket only a signle element is expected in partial write handling. Signed-off-by: Dmytro Podgornyi <[email protected]>
17d49f8
to
4584e93
Compare
Description
SSL_sendfile() creates 3 iov elements, however, for a blocking socket only a signle element is expected in partial write handling.
What
Fix partial write handling in blocking TLS offload path.
Why ?
Blocking SSL_sendfile() fix.
Change type
What kind of change does this PR introduce?
Check list