mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
expose TCP_FASTOPEN and MSG_FASTOPEN
This commit is contained in:
parent
b92c40ef9b
commit
57b667261c
2 changed files with 9 additions and 1 deletions
|
@ -163,6 +163,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Expose the TCP_FASTOPEN and MSG_FASTOPEN flags in socket when they're
|
||||||
|
available.
|
||||||
|
|
||||||
- Issue #15701: Add a .headers attribute to urllib.error.HTTPError. Patch
|
- Issue #15701: Add a .headers attribute to urllib.error.HTTPError. Patch
|
||||||
contributed by Berker Peksag.
|
contributed by Berker Peksag.
|
||||||
|
|
||||||
|
|
|
@ -5971,6 +5971,9 @@ PyInit__socket(void)
|
||||||
#ifdef MSG_MCAST
|
#ifdef MSG_MCAST
|
||||||
PyModule_AddIntConstant(m, "MSG_MCAST", MSG_MCAST);
|
PyModule_AddIntConstant(m, "MSG_MCAST", MSG_MCAST);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef MSG_FASTOPEN
|
||||||
|
PyModule_AddIntConstant(m, "MSG_FASTOPEN", MSG_FASTOPEN);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Protocol level and numbers, usable for [gs]etsockopt */
|
/* Protocol level and numbers, usable for [gs]etsockopt */
|
||||||
#ifdef SOL_SOCKET
|
#ifdef SOL_SOCKET
|
||||||
|
@ -6401,7 +6404,9 @@ PyInit__socket(void)
|
||||||
#ifdef TCP_QUICKACK
|
#ifdef TCP_QUICKACK
|
||||||
PyModule_AddIntConstant(m, "TCP_QUICKACK", TCP_QUICKACK);
|
PyModule_AddIntConstant(m, "TCP_QUICKACK", TCP_QUICKACK);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TCP_FASTOPEN
|
||||||
|
PyModule_AddIntConstant(m, "TCP_FASTOPEN", TCP_FASTOPEN);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* IPX options */
|
/* IPX options */
|
||||||
#ifdef IPX_TYPE
|
#ifdef IPX_TYPE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue