You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by cm...@apache.org on 2024/08/20 14:58:53 UTC

(trafficserver) branch 10.0.x updated (78b930e7fe -> a28abefc25)

This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a change to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


    from 78b930e7fe Revert "Reuse prepared cache write on redirected request (#11542)" (#11706)
     new a48fd33e4e Document records.yaml changes (#11702)
     new 0f3fea471b Reduce the default size for http.header_field_max_size (#11695)
     new d608fb321a add max_open_write_retry_timeout to recordsconfig (#11685)
     new de18692587 Update release docs (#11682)
     new 570c736622 Disable mptcp if proper header files are not available (#11651)
     new a28abefc25 NetHandler - Use the right type to hold additional_accepts config value. (#11659)

The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CMakeLists.txt                                     | 67 ++++++++++++++++++++++
 doc/admin-guide/files/records.yaml.en.rst          | 28 ++++-----
 doc/admin-guide/files/sni.yaml.en.rst              |  8 +--
 doc/admin-guide/performance/index.en.rst           |  2 +-
 .../api/functions/TSSslSession.en.rst              |  2 +-
 .../hooks-and-transactions/ssl-session-api.en.rst  |  2 +-
 doc/developer-guide/release-process/index.en.rst   | 31 +++-------
 doc/release-notes/upgrading.en.rst                 | 48 +++++++++++++++-
 include/iocore/net/NetHandler.h                    |  2 +-
 src/iocore/net/NetHandler.cc                       | 19 +++---
 src/records/RecHttp.cc                             |  5 +-
 src/records/RecordsConfig.cc                       |  6 +-
 12 files changed, 161 insertions(+), 59 deletions(-)


(trafficserver) 04/06: Update release docs (#11682)

Posted by cm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit de186925871d5f4b43f8e3216eab5512f6388c46
Author: Chris McFarlen <ch...@mcfarlen.us>
AuthorDate: Thu Aug 15 16:37:45 2024 -0500

    Update release docs (#11682)
    
    * Update release docs for cmake. Make release targets more portable
    
    * adjust for new branch policy
    
    * Fix syntax error
    
    ---------
    
    Co-authored-by: Chris McFarlen <cm...@apple.com>
    (cherry picked from commit 652ad71469c3b2e18f3362fa5b6b7f242c0b74f6)
---
 CMakeLists.txt                                   | 67 ++++++++++++++++++++++++
 doc/developer-guide/release-process/index.en.rst | 31 +++--------
 2 files changed, 75 insertions(+), 23 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 48a3e00a0c..10208e5862 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -821,6 +821,73 @@ configure_file(Findtsapi.cmake.in Findtsapi.cmake @ONLY)
 install(FILES "${PROJECT_BINARY_DIR}/ts.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
 install(FILES "${PROJECT_BINARY_DIR}/Findtsapi.cmake" DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
 
+# Release Targets
+set(DISTTMP /tmp/asf-dist)
+set(DISTFILENAME trafficserver-${TS_VERSION_STRING})
+
+add_custom_target(
+  asf-distdir
+  COMMENT "Create distribution tarball for ASF"
+  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+  COMMAND rm -rf ${DISTTMP} && mkdir /tmp/asf-dist
+  COMMAND git archive --format=tar HEAD | tar -C ${DISTTMP} -xf -
+  COMMAND rm -rf ${DISTTMP}/ci
+  COMMAND grep -v img.shields.io ${DISTTMP}/README.md > ${DISTTMP}/README.md.clean
+  COMMAND mv ${DISTTMP}/README.md.clean ${DISTTMP}/README.md
+)
+
+add_custom_target(
+  asf-dist
+  COMMENT "Create distribution tarball for ASF release"
+  DEPENDS asf-distdir
+  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+  COMMAND tar -C ${DISTTMP} -c . | bzip2 -9 -c > ${DISTFILENAME}.tar.bz2
+  COMMAND rm -rf ${DISTTMP}
+)
+
+add_custom_target(
+  asf-dist-rc
+  COMMENT "Create distribution tarball for ASF release candidate"
+  DEPENDS asf-distdir
+  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+  COMMAND tar -C ${DISTTMP} -c . | bzip2 -9 -c > ${DISTFILENAME}-rc$ENV{RC}.tar.bz2
+  COMMAND rm -rf ${DISTTMP}
+)
+
+add_custom_target(
+  asf-dist-sign
+  COMMENT "Create and sign distribution tarball for ASF release"
+  DEPENDS asf-dist
+  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+  COMMAND shasum -a512 -b ${DISTFILENAME}.tar.bz2 > ${DISTFILENAME}.tar.bz2.sha512
+  COMMAND gpg --armor --output ${DISTFILENAME}.tar.bz2.asc --detach-sig ${DISTFILENAME}.tar.bz2
+)
+
+add_custom_target(
+  asf-dist-sign-rc
+  COMMENT "Create and sign distribution tarball for ASF release candidate"
+  DEPENDS asf-dist-rc
+  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+  COMMAND shasum -a512 -b ${DISTFILENAME}-rc$ENV{RC}.tar.bz2 > ${DISTFILENAME}-rc$ENV{RC}.tar.bz2.sha512
+  COMMAND gpg --armor --output ${DISTFILENAME}-rc$ENV{RC}.tar.bz2.asc --detach-sig ${DISTFILENAME}-rc$ENV{RC}.tar.bz2
+)
+
+add_custom_target(
+  release
+  COMMENT "Create release"
+  DEPENDS asf-dist-sign
+  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+  COMMAND git tag -fs -m "Release ${TS_VERSION_STRING}" ${TS_VERSION_STRING}
+)
+
+add_custom_target(
+  rel-candidate
+  COMMENT "Create release candidate"
+  DEPENDS asf-dist-sign-rc
+  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+  COMMAND git tag -fs -m "Release Candidate ${TS_VERSION_STRING}-rc$ENV{RC}" ${TS_VERSION_STRING}-rc$ENV{RC}
+)
+
 # Display build summary
 include(CMakePrintHelpers)
 message(STATUS "Build Summary:")
diff --git a/doc/developer-guide/release-process/index.en.rst b/doc/developer-guide/release-process/index.en.rst
index 83eb950d29..50b9694f04 100644
--- a/doc/developer-guide/release-process/index.en.rst
+++ b/doc/developer-guide/release-process/index.en.rst
@@ -66,19 +66,14 @@ Build
 
 #. Go to the top level source directory.
 
-#. Check the version in ``configure.ac``. There are two values near the top that
-   need to be set, ``TS_VERSION_S`` and ``TS_VERSION_N``. These are the release
-   version number in different encodings.
+#. Check the version in ``CMakeLists.txt``. There is a ``project`` line near the
+   top with the version number.  Make sure that is correct for the release.
 
-#. Check the variable ``RC`` in the top level ``Makefile.am``. This should be
-   the point release value. This needs to be changed for every release
-   candidate. The first release candidate is ``0`` (zero).
+#. Execute the following commands to make the distribution files where A is the
+   next release candidate number (start with 0). ::
 
-#. Execute the following commands to make the distribution files. ::
-
-      autoreconf -i
-      ./configure
-      make rel-candidate
+      cmake --preset release
+      RC=A cmake --build build-release -t rel-candidate
 
 These steps will create the distribution files and sign them using your key.
 Expect to be prompted twice for your passphrase unless you use an ssh key agent.
@@ -112,17 +107,11 @@ Official Release
 
 Build the distribution files with the command ::
 
-   make release
+   cmake --build build-release -t release
 
 Be sure to not have changed anything since the release candidate was built so
 the checksums are identical. This will create a signed git tag of the form
-``X.Y.Z`` and produce the distribution files. Push the tag to the ASF repository
-with the command ::
-
-   git push origin X.Y.Z
-
-This presumes ``origin`` is the name for the ASF remote repository which is
-correct if you originally clone from the ASF repository.
+``X.Y.Z`` and produce the distribution files.
 
 The distribution files must be added to an SVN repository. This can be accessed
 with the command::
@@ -168,7 +157,3 @@ Finally, update various files after the release:
 
 * The ``CHANGES`` file to have a header for the next version.
 
-* ``configure.ac`` to be set to the next version.
-
-* In the top level ``Makefile.am`` change ``RC`` to have the value ``0``.
-


(trafficserver) 01/06: Document records.yaml changes (#11702)

Posted by cm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit a48fd33e4e8ed63d11f2745b70d361136e2be7c6
Author: Damian Meden <dm...@apache.org>
AuthorDate: Sat Aug 17 00:47:07 2024 +0200

    Document records.yaml changes (#11702)
    
    * Document records.yaml changes
    
    * Update links
    
    ---------
    
    Co-authored-by: Chris McFarlen <ch...@mcfarlen.us>
    (cherry picked from commit 0b8a88cdce15ab63ee7903cc5a629b62677c8532)
---
 doc/admin-guide/files/records.yaml.en.rst          | 26 ++++++------
 doc/admin-guide/files/sni.yaml.en.rst              |  8 ++--
 doc/admin-guide/performance/index.en.rst           |  2 +-
 .../api/functions/TSSslSession.en.rst              |  2 +-
 .../hooks-and-transactions/ssl-session-api.en.rst  |  2 +-
 doc/release-notes/upgrading.en.rst                 | 48 +++++++++++++++++++++-
 6 files changed, 66 insertions(+), 22 deletions(-)

diff --git a/doc/admin-guide/files/records.yaml.en.rst b/doc/admin-guide/files/records.yaml.en.rst
index 7f9d1ab148..c1a1e85a01 100644
--- a/doc/admin-guide/files/records.yaml.en.rst
+++ b/doc/admin-guide/files/records.yaml.en.rst
@@ -281,14 +281,14 @@ System Variables
    of the contents and interpretations of log files.
 
 
-.. ts:cv:: CONFIG proxy.config.output.logfile  STRING traffic.out
+.. ts:cv:: CONFIG proxy.config.output.logfile.name  STRING traffic.out
 
    This is used for log rolling configuration so |TS| knows the path of the
    output file that should be rolled. This configuration takes the name of the
    file receiving :program:`traffic_server`
    process output that is set via the ``--bind_stdout`` and ``--bind_stderr``
    :ref:`command-line options <traffic_server>`.
-   :ts:cv:`proxy.config.output.logfile` is used only to identify the name of
+   :ts:cv:`proxy.config.output.logfile.name` is used only to identify the name of
    the output file for log rolling purposes and does not override the values
    set via ``--bind_stdout`` and ``--bind_stderr``.
 
@@ -3289,7 +3289,7 @@ Logging Configuration
 
    If set to a non-zero value :arg:`N` then any connection that takes longer than :arg:`N` milliseconds from accept to
    completion will cause its timing stats to be written to the :ts:cv:`debugging log file
-   <proxy.config.output.logfile>`. This is identifying data about the transaction and all of the :cpp:type:`transaction milestones <TSMilestonesType>`.
+   <proxy.config.output.logfile.name>`. This is identifying data about the transaction and all of the :cpp:type:`transaction milestones <TSMilestonesType>`.
 
 .. ts:cv:: CONFIG proxy.config.http2.connection.slow.log.threshold INT 0
    :reloadable:
@@ -3298,7 +3298,7 @@ Logging Configuration
    If set to a non-zero value :arg:`N` then any HTTP/2 connection
    that takes longer than :arg:`N` milliseconds from open to close will cause
    its timing stats to be written to the :ts:cv:`debugging log file
-   <proxy.config.output.logfile>`. This is identifying data about the
+   <proxy.config.output.logfile.name>`. This is identifying data about the
    transaction and all of the :cpp:type:`transaction milestones <TSMilestonesType>`.
 
 .. ts:cv:: CONFIG proxy.config.http2.stream.slow.log.threshold INT 0
@@ -3308,7 +3308,7 @@ Logging Configuration
    If set to a non-zero value :arg:`N` then any HTTP/2 stream
    that takes longer than :arg:`N` milliseconds from open to close will cause
    its timing stats to be written to the :ts:cv:`debugging log file
-   <proxy.config.output.logfile>`. This is identifying data about the
+   <proxy.config.output.logfile.name>`. This is identifying data about the
    transaction and all of the :cpp:type:`transaction milestones <TSMilestonesType>`.
 
 .. ts:cv:: CONFIG proxy.config.log.config.filename STRING logging.yaml
@@ -3722,7 +3722,7 @@ SSL Termination
 
    Enables (``1``) or disables (``0``) TLS v1.2.  If not specified, enabled by default.  [Requires OpenSSL v1.0.1 and higher]
 
-.. ts:cv:: CONFIG proxy.config.ssl.TLSv1_3 INT 1
+.. ts:cv:: CONFIG proxy.config.ssl.TLSv1_3.enabled INT 1
    :deprecated:
 
    This setting is deprecated in favor of :ts:cv:`proxy.config.ssl.server.version.min` and
@@ -3843,7 +3843,7 @@ SSL Termination
   a single segment after ~1 second of inactivity and the record size ramping
   mechanism is repeated again.
 
-.. ts:cv:: CONFIG proxy.config.ssl.origin_session_cache INT 1
+.. ts:cv:: CONFIG proxy.config.ssl.origin_session_cache.enabled INT 1
 
    This configuration enables the SSL session cache for the origin server
    when set to ``1``.
@@ -3858,7 +3858,7 @@ SSL Termination
   Setting a value less than or equal to ``0`` effectively disables
   SSL session cache for the origin server.
 
-.. ts:cv:: CONFIG proxy.config.ssl.session_cache INT 2
+.. ts:cv:: CONFIG proxy.config.ssl.session_cache.enabled INT 2
 
    Enables the SSL session cache:
 
@@ -3878,7 +3878,7 @@ SSL Termination
   entries in seconds. If it is ``0``, then the SSL library will use
   a default value, typically 300 seconds. Note: This option has no affect
   when using the |TS| session cache (option ``2`` in
-  ``proxy.config.ssl.session_cache``)
+  ``proxy.config.ssl.session_cache.enabled``)
 
    See :ref:`admin-performance-timeouts` for more discussion on |TS| timeouts.
 
@@ -3920,9 +3920,9 @@ SSL Termination
   Take into account that setting the value to 0 will disable session caching for TLSv1.3
   connections.
 
-  Lowering this setting to ``1`` can be interesting when ``proxy.config.ssl.session_cache`` is enabled because
+  Lowering this setting to ``1`` can be interesting when ``proxy.config.ssl.session_cache.enabled`` is enabled because
   otherwise for every new TLSv1.3 connection two session IDs will be inserted in the session cache.
-  On the other hand, if ``proxy.config.ssl.session_cache``  is disabled, using the default value is recommended.
+  On the other hand, if ``proxy.config.ssl.session_cache.enabled``  is disabled, using the default value is recommended.
   In those scenarios, increasing the number of tickets could be potentially beneficial for clients performing
   multiple requests over concurrent TLS connections as per RFC 8446 clients SHOULDN'T reuse TLS Tickets.
 
@@ -4182,7 +4182,7 @@ Client-Related Configuration
 
    Enables (``1``) or disables (``0``) TLSv1_2 in the ATS client context. If not specified, enabled by default
 
-.. ts:cv:: CONFIG proxy.config.ssl.client.TLSv1_3 INT 1
+.. ts:cv:: CONFIG proxy.config.ssl.client.TLSv1_3.enabled INT 1
    :deprecated:
 
    This setting is deprecated in favor of :ts:cv:`proxy.config.ssl.client.version.min` and
@@ -4288,7 +4288,7 @@ SNI Routing
    Frequency of checking the activity of SNI Routing Tunnel. Set to ``0`` to disable monitoring of the activity of the SNI tunnels.
    The feature is disabled by default.
 
-.. ts:cv:: CONFIG proxy.config.tunnel.prewarm INT 0
+.. ts:cv:: CONFIG proxy.config.tunnel.prewarm.enabled INT 0
 
    Enable :ref:`pre-warming-tls-tunnel`. The feature is disabled by default.
 
diff --git a/doc/admin-guide/files/sni.yaml.en.rst b/doc/admin-guide/files/sni.yaml.en.rst
index 191fefb010..569d176f9c 100644
--- a/doc/admin-guide/files/sni.yaml.en.rst
+++ b/doc/admin-guide/files/sni.yaml.en.rst
@@ -155,7 +155,7 @@ valid_tls_version_min_in                 Inbound   This specifies the minimum TL
                                                    the TLS negotiation.  This replaces the global settings in
                                                    :ts:cv:`proxy.config.ssl.server.version.min`,
                                                    :ts:cv:`proxy.config.ssl.TLSv1`, :ts:cv:`proxy.config.ssl.TLSv1_1`,
-                                                   :ts:cv:`proxy.config.ssl.TLSv1_2`, and :ts:cv:`proxy.config.ssl.TLSv1_3`. The potential
+                                                   :ts:cv:`proxy.config.ssl.TLSv1_2`, and :ts:cv:`proxy.config.ssl.TLSv1_3.enabled`. The potential
                                                    values are TLSv1, TLSv1_1, TLSv1_2, and TLSv1_3. This key is only valid for OpenSSL
                                                    1.1.0 and later and BoringSSL. Older versions of OpenSSL do not provide a hook early enough to update
                                                    the SSL object.  It is a syntax error for |TS| built against earlier versions.
@@ -164,7 +164,7 @@ valid_tls_version_max_in                 Inbound   This specifies the minimum TL
                                                    the TLS negotiation.  This replaces the global settings in
                                                    :ts:cv:`proxy.config.ssl.server.version.max`,
                                                    :ts:cv:`proxy.config.ssl.TLSv1`, :ts:cv:`proxy.config.ssl.TLSv1_1`,
-                                                   :ts:cv:`proxy.config.ssl.TLSv1_2`, and :ts:cv:`proxy.config.ssl.TLSv1_3`. The potential
+                                                   :ts:cv:`proxy.config.ssl.TLSv1_2`, and :ts:cv:`proxy.config.ssl.TLSv1_3.enabled`. The potential
                                                    values are TLSv1, TLSv1_1, TLSv1_2, and TLSv1_3. This key is only valid for OpenSSL
                                                    1.1.0 and later and BoringSSL. Older versions of OpenSSL do not provide a hook early enough to update
                                                    the SSL object.  It is a syntax error for |TS| built against earlier versions.
@@ -172,7 +172,7 @@ valid_tls_version_max_in                 Inbound   This specifies the minimum TL
 valid_tls_versions_in                    Inbound   Deprecated. This specifies the list of TLS protocols that will be offered to user agents during
                                                    the TLS negotiation.  This replaces the global settings in
                                                    :ts:cv:`proxy.config.ssl.TLSv1`, :ts:cv:`proxy.config.ssl.TLSv1_1`,
-                                                   :ts:cv:`proxy.config.ssl.TLSv1_2`, and :ts:cv:`proxy.config.ssl.TLSv1_3`. The potential
+                                                   :ts:cv:`proxy.config.ssl.TLSv1_2`, and :ts:cv:`proxy.config.ssl.TLSv1_3.enabled`. The potential
                                                    values are TLSv1, TLSv1_1, TLSv1_2, and TLSv1_3.  You must list all protocols that |TS|
                                                    should offer to the client when using this key.  This key is only valid for OpenSSL
                                                    1.1.0 and later and BoringSSL. Older versions of OpenSSL do not provide a hook early enough to update
@@ -295,7 +295,7 @@ Pre-warming TLS Tunnel
 =============================== ========================================================================================
 Key                             Meaning
 =============================== ========================================================================================
-tunnel_prewarm                  Override :ts:cv:`proxy.config.tunnel.prewarm` in records.yaml.
+tunnel_prewarm                  Override :ts:cv:`proxy.config.tunnel.prewarm.enabled` in records.yaml.
 
 tunnel_prewarm_srv              Enable SRV record lookup on pre-warming. Default is ``false``.
 
diff --git a/doc/admin-guide/performance/index.en.rst b/doc/admin-guide/performance/index.en.rst
index 797d543965..689ef41ea4 100644
--- a/doc/admin-guide/performance/index.en.rst
+++ b/doc/admin-guide/performance/index.en.rst
@@ -528,7 +528,7 @@ SSL-Specific Options
 ~~~~~~~~~~~~~~~~~~~~
 
 :ts:cv:`proxy.config.ssl.max_record_size`
-:ts:cv:`proxy.config.ssl.session_cache`
+:ts:cv:`proxy.config.ssl.session_cache.enabled`
 :ts:cv:`proxy.config.ssl.session_cache.size`
 
 Thread Types
diff --git a/doc/developer-guide/api/functions/TSSslSession.en.rst b/doc/developer-guide/api/functions/TSSslSession.en.rst
index 0c43b6faac..2e0ab9230b 100644
--- a/doc/developer-guide/api/functions/TSSslSession.en.rst
+++ b/doc/developer-guide/api/functions/TSSslSession.en.rst
@@ -38,7 +38,7 @@ Description
 ===========
 
 These functions work with the internal ATS session cache.  These functions are only useful if the ATS internal
-session cache is enabled by setting :ts:cv:`proxy.config.ssl.session_cache` has been set to 2.
+session cache is enabled by setting :ts:cv:`proxy.config.ssl.session_cache.enabled` has been set to 2.
 
 These functions tend to be used with the :enumerator:`TS_SSL_SESSION_HOOK`.
 
diff --git a/doc/developer-guide/plugins/hooks-and-transactions/ssl-session-api.en.rst b/doc/developer-guide/plugins/hooks-and-transactions/ssl-session-api.en.rst
index 32b89a570a..d6f050872d 100644
--- a/doc/developer-guide/plugins/hooks-and-transactions/ssl-session-api.en.rst
+++ b/doc/developer-guide/plugins/hooks-and-transactions/ssl-session-api.en.rst
@@ -31,7 +31,7 @@ to enable the plugin to update the session cache based on outside information, e
 
 This hook is invoked when a change has been made to the ATS session cache or a session has been accessed
 from ATS via OpenSSL.  These hooks are only activated if the ATS implementation of the session cache is in
-use.  This means :ts:cv:`proxy.config.ssl.session_cache` has been set to 2.
+use.  This means :ts:cv:`proxy.config.ssl.session_cache.enabled` has been set to 2.
 
 The hook callback has the following signature
 
diff --git a/doc/release-notes/upgrading.en.rst b/doc/release-notes/upgrading.en.rst
index 9ea3fcffa5..cba3b3d419 100644
--- a/doc/release-notes/upgrading.en.rst
+++ b/doc/release-notes/upgrading.en.rst
@@ -64,11 +64,55 @@ Configuration changes
 ---------------------
 The following incompatible changes to the configurations have been made in this version of ATS.
 
-The records.yaml entry proxy.config.http.down_server.abort_threshold has been removed.
+The ``records.config`` file has been renamed to :file:`records.yaml` and now it is structured in YAML format.
+Check :ref:`rec-config-to-yaml` and :file:`records.yaml`  for more details.
 
 The records.yaml entry proxy.config.http.connect_attempts_max_retries_dead_server has been renamed to proxy.config.http.connect_attempts_max_retries_down_server.
 
-The records.yaml entry proxy.config.http.connect.dead.policy has been renamed to proxy.config.http.connect.down.policy.
+- The records.yaml entry ``proxy.config.http.down_server.abort_threshold`` has been removed.
+- The records.yaml entry ``proxy.config.http.connect_attempts_max_retries_dead_server`` has been renamed to :ts:cv:`proxy.config.http.connect_attempts_max_retries_down_server`.
+- The entry ``proxy.config.http.connect.dead.policy`` has been renamed to :ts:cv:`proxy.config.http.connect.down.policy`.
+- The records.yaml entry ``proxy.config.http.parent_proxy.connect_attempts_timeout`` and
+  ``proxy.config.http.post_connect_attempts_timeout`` have been removed. Instead use
+  :ts:cv:`proxy.config.http.connect_attempts_timeout` to control all connection to origin timeouts.
+- The per server origin connection feature had a few configurations that were not used removed.
+  ``proxy.config.http.per_server.connection.queue_size`` and ``proxy.config.http.per_server.connection.queue_delay``
+  have been removed.
+- The default value for records.yaml entry ``proxy.config.ssl.client.verify.server.policy`` has been changed
+  from ``PERMISSIVE`` to ``STRICT``.
+- The records.yaml entry ``proxy.config.http.keepalive_internal_vc`` has been removed.  This entry
+  was previously undocumented.
+- The records.yaml entries ``proxy.config.http.parent_proxy.connect_attempts_timeout`` and
+  ``proxy.config.http.post_connect_attempts_timeout`` were previously referenced in default config
+  files, but they did not have any effect.  These have been removed from default configs files.
+- The default values for :ts:cv:`proxy.config.http.request_header_max_size`, :ts:cv:`proxy.config.http.response_header_max_size`, and
+  :ts:cv:`proxy.config.http.header_field_max_size` have been changed to 32KB.
+- The records.yaml entry :ts:cv:`proxy.config.http.server_ports` now also accepts the
+  ``allow-plain`` option
+- The records.yaml entry :ts:cv:`proxy.config.http.cache.max_open_write_retry_timeout` has been added to specify a timeout for starting a write to cache
+- The records.yaml entry :ts:cv:`proxy.config.net.per_client.max_connections_in` has
+  been added to limit the number of connections from a client IP. This works the
+  same as :ts:cv:`proxy.config.http.per_server.connection.max`
+- The records.yaml entry :ts:cv:`proxy.config.http.no_dns_just_forward_to_parent` is
+  not overridable
+- The records.yaml entry ``proxy.config.output.logfile`` has been renamed to :ts:cv:`proxy.config.output.logfile.name`.
+- The records.yaml entry ``proxy.config.exec_thread.autoconfig`` has been renamed to :ts:cv:`proxy.config.exec_thread.autoconfig.enabled`.
+- The records.yaml entry ``proxy.config.tunnel.prewarm`` has been renamed to :ts:cv:`proxy.config.tunnel.prewarm.enabled`.
+- The records.yaml entry ``proxy.config.ssl.origin_session_cache`` has been renamed to :ts:cv:`proxy.config.ssl.origin_session_cache.enabled`.
+- The records.yaml entry ``proxy.config.ssl.session_cache`` has been renamed to :ts:cv:`proxy.config.ssl.session_cache.enabled`.
+- The records.yaml entry ``proxy.config.ssl.TLSv1_3`` has been renamed to :ts:cv:`proxy.config.ssl.TLSv1_3.enabled`.
+- The records.yaml entry ``proxy.config.ssl.client.TLSv1_3`` has been renamed to :ts:cv:`proxy.config.ssl.client.TLSv1_3.enabled`.
+- The records.yaml entry :ts:cv:`proxy.config.allocator.iobuf_chunk_sizes` has been added
+  to enable more control of iobuffer allocation.
+- The records.yaml entry :ts:cv:`proxy.config.allocator.hugepages` will enable
+  allocating iobuffers and cache volumes from hugepages if configured in the
+  system.
+
+The following changes have been made to the :file:`sni.yaml` file:
+
+- ``disable_h2`` has been removed. Use ``http2`` with :code:`off` instead.
+- The ``ip_allow`` key can now take a reference to a file containing the ip
+  allow rules
 
 The records.yaml entry proxy.config.http.parent_proxy.connect_attempts_timeout and proxy.config.http.post_connect_attempts_timeout
 have been removed. Instead use proxy.config.http.connect_attempts_timeout to control all connection to origin timeouts.


(trafficserver) 03/06: add max_open_write_retry_timeout to recordsconfig (#11685)

Posted by cm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit d608fb321a39d2dfaa8c268d4b53959f8dcf8605
Author: Brian Olsen <br...@comcast.com>
AuthorDate: Fri Aug 16 06:11:18 2024 -0600

    add max_open_write_retry_timeout to recordsconfig (#11685)
    
    Co-authored-by: Brian Olsen <bo...@comcast.com>
    (cherry picked from commit 721b6f5f4f9cae08e230b4c6dbc5613a0c2f2905)
---
 src/records/RecordsConfig.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/records/RecordsConfig.cc b/src/records/RecordsConfig.cc
index b9dd16681f..f36f0c0e55 100644
--- a/src/records/RecordsConfig.cc
+++ b/src/records/RecordsConfig.cc
@@ -580,6 +580,8 @@ static const RecordElement RecordsConfig[] =
   ,
   {RECT_CONFIG, "proxy.config.http.cache.max_open_write_retries", RECD_INT, "1", RECU_DYNAMIC, RR_NULL, RECC_NULL, nullptr, RECA_NULL}
   ,
+  {RECT_CONFIG, "proxy.config.http.cache.max_open_write_retry_timeout", RECD_INT, "0", RECU_DYNAMIC, RR_NULL, RECC_NULL, nullptr, RECA_NULL}
+  ,
   //       #  open_write_fail_action has 3 options:
   //       #
   //       #  0 - default. disable cache and goto origin


(trafficserver) 02/06: Reduce the default size for http.header_field_max_size (#11695)

Posted by cm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 0f3fea471b64af6caeca456cfbd8cddec3641a65
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Thu Aug 15 17:12:57 2024 -0600

    Reduce the default size for http.header_field_max_size (#11695)
    
    * Reduce the default size for http.header_field_max_size
    
    * Update upgrading documentation
    
    (cherry picked from commit ec4785028ff6434ebd392a04da9c953da092b12c)
---
 doc/admin-guide/files/records.yaml.en.rst | 2 +-
 src/records/RecordsConfig.cc              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/admin-guide/files/records.yaml.en.rst b/doc/admin-guide/files/records.yaml.en.rst
index c1a1e85a01..86177b2f70 100644
--- a/doc/admin-guide/files/records.yaml.en.rst
+++ b/doc/admin-guide/files/records.yaml.en.rst
@@ -1317,7 +1317,7 @@ allow-plain
    request target and HTTP version string except when the request is made using absolute
    URI in which case the request line may also include the request scheme and domain name.
 
-.. ts:cv:: CONFIG proxy.config.http.header_field_max_size INT 131070
+.. ts:cv:: CONFIG proxy.config.http.header_field_max_size INT 32768
    :reloadable:
 
    Controls the maximum size, in bytes, of an HTTP header field in requests. Headers
diff --git a/src/records/RecordsConfig.cc b/src/records/RecordsConfig.cc
index 8fe22b8876..b9dd16681f 100644
--- a/src/records/RecordsConfig.cc
+++ b/src/records/RecordsConfig.cc
@@ -530,7 +530,7 @@ static const RecordElement RecordsConfig[] =
 
   {RECT_CONFIG, "proxy.config.http.request_line_max_size", RECD_INT, "65535", RECU_DYNAMIC, RR_NULL, RECC_NULL, nullptr, RECA_NULL}
   ,
-  {RECT_CONFIG, "proxy.config.http.header_field_max_size", RECD_INT, "131070", RECU_DYNAMIC, RR_NULL, RECC_NULL, nullptr, RECA_NULL}
+  {RECT_CONFIG, "proxy.config.http.header_field_max_size", RECD_INT, "32768", RECU_DYNAMIC, RR_NULL, RECC_NULL, nullptr, RECA_NULL}
   ,
   //        ############
   //        # security #


(trafficserver) 05/06: Disable mptcp if proper header files are not available (#11651)

Posted by cm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 570c73662215835e7995c250b206dd7e245f3075
Author: Serris Lew <se...@gmail.com>
AuthorDate: Mon Aug 19 14:55:35 2024 -0700

    Disable mptcp if proper header files are not available (#11651)
    
    * Disable mptcp if logging is disabled
    
    * open file after cond
    
    ---------
    
    Co-authored-by: Serris Lew <ls...@apple.com>
    (cherry picked from commit e922e19268453f1a7ac414adaa18f9cbb0fa638b)
---
 src/records/RecHttp.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/records/RecHttp.cc b/src/records/RecHttp.cc
index 15a0573a44..af632de729 100644
--- a/src/records/RecHttp.cc
+++ b/src/records/RecHttp.cc
@@ -94,14 +94,15 @@ SessionProtocolSet DEFAULT_QUIC_SESSION_PROTOCOL_SET;
 static bool
 mptcp_supported()
 {
+  int value = 0;
+#if defined(HAVE_STRUCT_MPTCP_INFO_SUBFLOWS) && defined(MPTCP_INFO) && MPTCP_INFO == 1
   ats_scoped_fd fd(::open("/proc/sys/net/mptcp/enabled", O_RDONLY));
-  int           value = 0;
-
   if (fd > 0) {
     TextBuffer buffer(16);
     buffer.slurp(fd.get());
     value = atoi(buffer.bufPtr());
   }
+#endif
 
   return value != 0;
 }


(trafficserver) 06/06: NetHandler - Use the right type to hold additional_accepts config value. (#11659)

Posted by cm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit a28abefc2565b0112f8d4a2bb2f9dbef5659539c
Author: Damian Meden <dm...@apache.org>
AuthorDate: Tue Aug 20 10:53:51 2024 +0200

    NetHandler - Use the right type to hold additional_accepts config value. (#11659)
    
    Changed from unsigned to signed as this is what's expected. This PR also
    makes sure the records validity check passes.
    
    (cherry picked from commit 3a2177a09748c62b63098979cdd822d3e7eb765e)
---
 include/iocore/net/NetHandler.h |  2 +-
 src/iocore/net/NetHandler.cc    | 19 +++++++++++--------
 src/records/RecordsConfig.cc    |  2 +-
 3 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/include/iocore/net/NetHandler.h b/include/iocore/net/NetHandler.h
index a78f029c6f..2c84f4e865 100644
--- a/include/iocore/net/NetHandler.h
+++ b/include/iocore/net/NetHandler.h
@@ -236,7 +236,7 @@ private:
   // TS_EVENT_MGMT_UPDATE event like with the Config settings above because
   // accept threads are not always on a standard NET thread with a NetHandler
   // that has TS_EVENT_MGMT_UPDATE handling logic.
-  static std::atomic<uint32_t> additional_accepts;
+  static std::atomic<int32_t>  additional_accepts;
   static std::atomic<uint32_t> per_client_max_connections_in;
 
   void _close_ne(NetEvent *ne, ink_hrtime now, int &handle_event, int &closed, int &total_idle_time, int &total_idle_count);
diff --git a/src/iocore/net/NetHandler.cc b/src/iocore/net/NetHandler.cc
index f83f09ad48..1b36780051 100644
--- a/src/iocore/net/NetHandler.cc
+++ b/src/iocore/net/NetHandler.cc
@@ -42,7 +42,7 @@ DbgCtl dbg_ctl_v_net_queue{"v_net_queue"};
 
 } // end anonymous namespace
 
-std::atomic<uint32_t> NetHandler::additional_accepts{0};
+std::atomic<int32_t>  NetHandler::additional_accepts{0};
 std::atomic<uint32_t> NetHandler::per_client_max_connections_in{0};
 
 // NetHandler method definitions
@@ -185,13 +185,16 @@ NetHandler::init_for_process()
   REC_ReadConfigInt32(global_config.default_inactivity_timeout, "proxy.config.net.default_inactivity_timeout");
 
   // Atomic configurations.
-  uint32_t val = 0;
-
-  REC_ReadConfigInt32(val, "proxy.config.net.additional_accepts");
-  additional_accepts.store(val, std::memory_order_relaxed);
-
-  REC_ReadConfigInt32(val, "proxy.config.net.per_client.max_connections_in");
-  per_client_max_connections_in.store(val, std::memory_order_relaxed);
+  {
+    int32_t val = 0;
+    REC_ReadConfigInt32(val, "proxy.config.net.additional_accepts");
+    additional_accepts.store(val, std::memory_order_relaxed);
+  }
+  {
+    uint32_t val = 0;
+    REC_ReadConfigInt32(val, "proxy.config.net.per_client.max_connections_in");
+    per_client_max_connections_in.store(val, std::memory_order_relaxed);
+  }
 
   RecRegisterConfigUpdateCb("proxy.config.net.max_connections_in", update_nethandler_config, nullptr);
   RecRegisterConfigUpdateCb("proxy.config.net.max_requests_in", update_nethandler_config, nullptr);
diff --git a/src/records/RecordsConfig.cc b/src/records/RecordsConfig.cc
index f36f0c0e55..8902515b8f 100644
--- a/src/records/RecordsConfig.cc
+++ b/src/records/RecordsConfig.cc
@@ -722,7 +722,7 @@ static const RecordElement RecordsConfig[] =
   //#
   //##############################################################################
 
-  {RECT_CONFIG, "proxy.config.net.additional_accepts", RECD_INT, "-1", RECU_DYNAMIC, RR_NULL, RECC_INT, "^-1|[0-9]+$", RECA_NULL}
+  {RECT_CONFIG, "proxy.config.net.additional_accepts", RECD_INT, "-1", RECU_DYNAMIC, RR_NULL, RECC_STR, "^-1|[0-9]+$", RECA_NULL}
   ,
   {RECT_CONFIG, "proxy.config.net.connections_throttle", RECD_INT, "30000", RECU_RESTART_TS, RR_REQUIRED, RECC_STR, "^[0-9]+$", RECA_NULL}
   ,