Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-99813: Start usingSSL_sendfile
when available#99907
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
a018beb
72e7f5e
cf24d78
e9ef747
646d328
76353c7
14832de
6b41d31
8ac6ff9
5cf9483
fc8e82f
7fc9b50
1ba04ae
365e0c0
8fbc955
21ea0ca
17d9685
a92ae7e
4e8b6d8
379d242
7de3dcb
bbe21c0
7323ec0
2dc6947
6e902ad
e435b9a
ac1b2b2
7d11a59
99e89d3
dc626c8
291a5b7
3193ba4
d870f92
94e522e
25bde6f
9a6a120
eaa0b2c
05a0c6c
6b4eed6
31ed52d
5a22e6b
ada3f30
3350854
3339673
ee573ad
6795f62
6a35ac6
9dffdbd
19d5746
ef3744e
e64f329
028067a
6e099fa
f363ec3
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2277,6 +2277,42 @@ PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout) | ||
return rc == 0 ? SOCKET_HAS_TIMED_OUT : SOCKET_OPERATION_OK; | ||
} | ||
/*[clinic input] | ||
_ssl._SSLSocket.uses_ktls_for_write | ||
Check if the Kernel TLS data-path is used for sending. | ||
[clinic start generated code]*/ | ||
static PyObject * | ||
_ssl__SSLSocket_uses_ktls_for_write_impl(PySSLSocket *self) | ||
/*[clinic end generated code: output=a6c2a790ffd0587e input=156f67420e69b2f9]*/ | ||
{ | ||
#ifdef BIO_get_ktls_send | ||
int uses = BIO_get_ktls_send(SSL_get_wbio(self->ssl)); | ||
return PyBool_FromLong((long)uses); | ||
illia-v marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
#else | ||
return Py_False; | ||
illia-v marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
#endif | ||
} | ||
/*[clinic input] | ||
_ssl._SSLSocket.uses_ktls_for_read | ||
illia-v marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
Check if the Kernel TLS data-path is used for receiving. | ||
[clinic start generated code]*/ | ||
static PyObject * | ||
_ssl__SSLSocket_uses_ktls_for_read_impl(PySSLSocket *self) | ||
/*[clinic end generated code: output=140a75033c8316a6 input=0296846b94a57932]*/ | ||
{ | ||
#ifdef BIO_get_ktls_recv | ||
int uses = BIO_get_ktls_recv(SSL_get_rbio(self->ssl)); | ||
return PyBool_FromLong((long)uses); | ||
illia-v marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
#else | ||
return Py_False; | ||
illia-v marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
#endif | ||
} | ||
/*[clinic input] | ||
_ssl._SSLSocket.write | ||
b: Py_buffer | ||
@@ -2892,6 +2928,8 @@ static PyGetSetDef ssl_getsetlist[] = { | ||
static PyMethodDef PySSLMethods[] = { | ||
_SSL__SSLSOCKET_DO_HANDSHAKE_METHODDEF | ||
_SSL__SSLSOCKET_USES_KTLS_FOR_WRITE_METHODDEF | ||
_SSL__SSLSOCKET_USES_KTLS_FOR_READ_METHODDEF | ||
_SSL__SSLSOCKET_WRITE_METHODDEF | ||
_SSL__SSLSOCKET_READ_METHODDEF | ||
_SSL__SSLSOCKET_PENDING_METHODDEF | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.