[trafficserver] branch quic-latest updated (10805ba -> eb40923)

2019-07-08 Thread maskit
This is an automated email from the ASF dual-hosted git repository.

maskit pushed a change to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.


from 10805ba  QUIC: remove useless params in padder
 add eb40923  Fix QUICPath::operator==

No new revisions were added by this update.

Summary of changes:
 iocore/net/quic/QUICTypes.h   | 12 +++
 iocore/net/quic/test/test_QUICType.cc | 68 +++
 2 files changed, 74 insertions(+), 6 deletions(-)



[trafficserver] 01/01: options to roll empty logs and log trimming

2019-07-08 Thread gancho
This is an automated email from the ASF dual-hosted git repository.

gancho pushed a commit to branch max-life-logs
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 74840f9ecbcfcac659cef0729faf1766f39a3652
Author: Gancho Tenev 
AuthorDate: Fri Jul 5 17:09:15 2019 -0700

options to roll empty logs and log trimming

Added 2 options:
- proxy.config.log.rolling_allow_empty - ability to roll empty logs
(i.e. rolling logs without traffic)
- proxy.config.log.rolling_max_count - trimming logs to a certain
number of rolled files on each rolling
More info in records.config.en.rst and rotation.en.rst.
---
 doc/admin-guide/files/records.config.en.rst | 25 
 doc/admin-guide/logging/rotation.en.rst | 23 
 mgmt/RecordsConfig.cc   |  4 ++
 proxy/logging/LogConfig.cc  | 14 -
 proxy/logging/LogConfig.h   |  2 +
 proxy/logging/LogFile.cc| 89 -
 proxy/logging/LogFile.h |  3 +-
 proxy/logging/LogObject.cc  | 27 +++--
 proxy/logging/LogObject.h   | 16 +++---
 proxy/logging/YamlLogConfig.cc  | 19 --
 src/traffic_server/InkAPI.cc|  3 +-
 11 files changed, 202 insertions(+), 23 deletions(-)

diff --git a/doc/admin-guide/files/records.config.en.rst 
b/doc/admin-guide/files/records.config.en.rst
index 11107d1..833802b 100644
--- a/doc/admin-guide/files/records.config.en.rst
+++ b/doc/admin-guide/files/records.config.en.rst
@@ -273,6 +273,31 @@ System Variables
order of auto-deletion (if enabled). A default value of 0 means 
auto-deletion will try to keep
output logs as much as possible. See :doc:`../logging/rotation.en` for 
guidance.
 
+.. ts:cv:: CONFIG proxy.config.output.logfile.rolling_max_count INT 0
+   :reloadable:
+
+   Specifies the maximum count of rolled output logs to keep. This value will 
be used by the
+   auto-deletion (if enabled) to trim the number of rolled log files every 
time the log is rolled.
+   A default value of 0 means auto-deletion will not try to limit the number 
of output logs.
+   See :doc:`../logging/rotation.en` for an use-case for this option.
+
+.. ts:cv:: CONFIG proxy.config.output.logfile.rolling_allow_empty INT 0
+   :reloadable:
+
+   While rolling default behaviour is to rename, close and re-open the log 
file *only* when/if there is
+   something to log to the log file. This option opens a new log file right 
after rolling even if there
+   is nothing to log (i.e. nothing to be logged due to lack of requests to the 
server)
+   which may lead to 0-sized log files while rollong. See 
:doc:`../logging/rotation.en` for an use-case 
+   for this option.
+
+   = ==
+   Value Description
+   = ==
+   ``0`` No empty log files created and rolloed if there was nothing to log
+   ``1`` Allow empty log files to be created and  rolled even if there was 
nothing to log
+   = ==
+
+
 Thread Variables
 
 
diff --git a/doc/admin-guide/logging/rotation.en.rst 
b/doc/admin-guide/logging/rotation.en.rst
index eaed409..a4861d5 100644
--- a/doc/admin-guide/logging/rotation.en.rst
+++ b/doc/admin-guide/logging/rotation.en.rst
@@ -245,3 +245,26 @@ To set log management options, follow the steps below:
 #. Run the command :option:`traffic_ctl config reload` to apply the 
configuration
changes.
 
+
+Retaining Logs For No More Than a Specified Period
+--
+
+If for security reasons logs need to be purged to make sure no log entry 
remains on the box
+for more then a specified period of time, we could achieve this by setting the 
following variables.
+
+Let us say we wanted the oldest log entry to be kept on the box to be no older 
than 2-hour old.
+
+Set :ts:cv:`proxy.config.output.logfile.rolling_interval_sec` (yaml: 
`rolling_interval_sec`) to 3600 (1h)
+which will lead to rolling every 1h.
+
+Set :ts:cv:`proxy.config.output.logfile.rolling_max_count` (yaml: 
`rolling_max_count`) to 1
+which will lead to keeping only one rolled log file at any moment (rolled will 
be trimmed on every roll).
+
+Set :ts:cv:`proxy.config.output.logfile.rolling_allow_empty` (yaml: 
`rolling_allow_empty`)  to 1 (default: 0)
+which will allow logs to be open and rolled even if there was nothing to be 
logged during the previous period 
+(i.e. no requests to the traffic server).
+
+The above will ensure logs are rolled every 1h hour, only 1 rolled log file to 
be kept
+(rest will be trimmed/removed) and logs will be rolling ("moving") even if 
nothing is logged
+(i.e. no traffic to the traffic server).
+
diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc
index 9d4a2ad..8b0f500 

[trafficserver] branch max-life-logs created (now 74840f9)

2019-07-08 Thread gancho
This is an automated email from the ASF dual-hosted git repository.

gancho pushed a change to branch max-life-logs
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.


  at 74840f9  options to roll empty logs and log trimming

This branch includes the following new commits:

 new 74840f9  options to roll empty logs and log trimming

The 1 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.




[trafficserver] branch 0-rtt updated (cf6ddb3 -> 206384e)

2019-07-08 Thread duke8253
This is an automated email from the ASF dual-hosted git repository.

duke8253 pushed a change to branch 0-rtt
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.


from cf6ddb3  New APIs: Server/ClientCertUpdate Structure changes for 
SSLCertContext using share pointer and mutex
 add 6127cd2  Re-enable the disjoint-wait-for-cache Au test, as it seems to 
be working now (for unknown reasons).
 add c18c745  This RSB is no longer used at all, so remove
 add ee23b6f  Removes the remaining code and configurations for SSL3
 add a9ec130  Drop config bits of tsconfig
 add 5051e29  Moves Errata to tscore, removes tsconfig library
 add 6fd0fc3  Renames ssl_server_name.yaml to sni.yaml
 add 25ec31c  Move logging config under toplevel YAML tag 'logging'
 add f26825b  Fix up remaining references to ssl_server_name.yaml
 add 07ca9b0  Add Pipfile for building docs
 add 532fa0d  Doc: Add documentation for HTTP/2 statistics
 add e18bb8b  Separate stubs for libinknet from test_I_UDPNet.cc
 add d765d1a  Do not change stream state from HALF_CLOSED_REMOTE with 
CONTINUATION frame
 add d710c82  Updates README to reflect current source tree layout
 add 3d8c450  Removes checks for curl that snuck back into the tests
 add 4eadecd  Elevate privs to load TLS Session Ticket Key file
 add a8d0c5a  Move sni config (formerly ssl_server_name) under toplevel 
YAML tag 'sni'
 add d34c192  Removes the explicit Vary configurations and code
 add ba978b6  Step 1: Removes proxy.config.admin.number_config_bak and code
 add bc04279  Step 2: Rempve findVersions(), findVersions_ml() and 
versionCmp()
 add d367d36  Step 3: Remove revertToVersion() and revertToVersion_ml()
 add a880a3d  Step 4: Remove forceUpdate() and forceUpdate_ml()
 add 1e938dd  Step 5: Remove removeVersion() and removeVersion_ml()
 add 6d03c33  Step 6: Simplifies checkForUserUpdate(), moving critical code 
here
 add 1c2a39e  Step 7: Removes updateVersion() and updateVersion_ml()
 add 589dc20  Step 8: Removes internalUpdate(), functionality was moved in 6
 add ea3859d  Step 9: Removes getVersion() and getVersion_ml()
 add d1189c2  Step 10: Removes versionTimeStamp() and versionTimeStamp_ml()
 add 33cc9e2  Step 11: Removes statVersion()
 add a28aee0  Step 12: Removes extractVersionInfo()
 add af5c885  Step 13: Removes openFile() and closeFile()
 add 1692000  Step 14: Removes numberOfVersions() and getCurrentVersion()
 add cfa1dd9  Step 15: Removes getBaseName() and various unused members
 add 3a3f286  Step 16: Removes createPathStr() and cleans up statFile()
 add 36f5925  Step 17: Removes versionInfo, as well as currentVersion and 
highestSeen
 add e336562  Step 18: Removes setLastModifiedTime, and simplifies code
 add e41c667  Step 19: Removes the now unused Rollback member variables
 add de76e1e  Step 20: Removes incVersion/inc_version from Filemanager etc.
 add 3ea91a0  Step 21: Removes the UNVERSIONED option flag completely
 add 8458750  Step 22: Renames Rollback.cc/.h -> ConfigManager.cc/.h
 add e5e9074  Step 23: Renames Rollback object -> FileManager consistently
 add 9d90a51  TextView: Fix bug in rtrim_if when entire view is cleared.
 add 188879f  Update lua.en.rst
 add 397bfb9  Fix default logging.yaml with new format.
 add e51b6ef  Cleanup debug log in mime_hdr_describe
 add d3639e0  HTTP/2: increment write_vio.ndone by consumed size
 add 2047495  HTTP/2: cancel reading buffer when ATS received GOAWAY
 add 74d6588  HTTP/2: ignore unknown settings
 add e209bb1  use type info to assign an affinity thread
 add 06a8bc4  Replaces Emergency() with Error() when parsing these 
records.config values
 add de1ed04  cookie_remap plugin Au test case changes for compatability 
with PR 4964.
 add aa70b43  TS autest extension now auto selects both ssl and nonssl port
 add ef24634  Fix and reenable url_sig Au test.
 add b460616  Fix the number of net_connections_currently_open_stat error 
increase
 add 75e7fc3  Reenable redirect_actions Au test as it is working now.
 add 130dcd0  Auto port selection for more autests
 add 59b02ba  Add metrics to track SSLv3 and TLS versions
 add cac7766  Use SSL_version() directly instead of SSL_get_version() which 
returns a string (Thanks @maskit for the pointer).
 add 42b7694  Fix build error for pre openssl-1.1.1
 add 0c947f1  update example directory structure and add examples for lua 
plugin
 add 5a8beee  emergency shutdown
 add cee653e  Doc: Improve TSHttpTxnUrlEffectiveStringGet docs, cleanup 
other doc build errors.
 add f95d7be  Program to test if multiple URLs can be cached and generates 
a report on the cache headers.
 add cba8b22  Allows for resizing librecords via command line option
 add 9d859ea  Update MT_Hashtable interface to use smart pointer
 add 545a7a9  Fix o