[GitHub] trafficserver issue #568: TS-4072 Diagnostic log rolling races

2016-07-20 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/568 @zwoop clang-formatted & rebased --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this fea

[GitHub] trafficserver issue #1483: HTTP Request Debugging Feature

2017-02-23 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/issues/1483 I wonder if there's a way to roll in header logging for 4xx/5xx transactions into this idea as well. See #1210. --- If your project is set up for it, you can reply to this email

[GitHub] trafficserver issue #1484: There should be a Cache-Control immutable constan...

2017-02-23 Thread danobi
GitHub user danobi opened an issue: https://github.com/apache/trafficserver/issues/1484 There should be a Cache-Control immutable constant in the API We could call it `TS_HTTP_VALUE_IMMUTABLE`. See https://tools.ietf.org/html/draft-mcmanus-immutable-01 for the RFC draft

[GitHub] trafficserver issue #1486: esi/combo_handler plugin doesn't call TSPluginReg...

2017-02-24 Thread danobi
Github user danobi closed the issue at: https://github.com/apache/trafficserver/issues/1486 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature

[GitHub] trafficserver pull request #1487: esi/combo_handler plugin doesn't register

2017-02-24 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1487 esi/combo_handler plugin doesn't register The plugin doesn't call TSPluginRegister. The causes ATS to crash upon startup if combo_handler is enabled. See issue #1486. You can

[GitHub] trafficserver issue #1486: esi/combo_handler plugin doesn't call TSPluginReg...

2017-02-24 Thread danobi
GitHub user danobi opened an issue: https://github.com/apache/trafficserver/issues/1486 esi/combo_handler plugin doesn't call TSPluginRegister This causes ATS to crash if ATS is run with combo_handler. --- If your project is set up for it, you can reply to this email

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-02-28 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 I'm on the fence about including the `Cache-Control: private` changes in this patch. On one hand, it makes sense for that to be in this refactor. On the other, it has nothing to do

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

2017-02-28 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1516 Implement Cache-Control: immutable handling This patch makes `combo_handler` correctly handle the presence of one or more immutable flags. In short, the combo response

[GitHub] trafficserver pull request #1059: TS-4626: LogFile::close_file should not de...

2016-09-28 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1059 TS-4626: LogFile::close_file should not delete m_log handle LogFile::close_file was incorrectly deleting the m_log object. This caused potential race conditions when flushing m_log since

[GitHub] trafficserver pull request #1073: TS-4399 TS-4400 Management API messes up p...

2016-10-03 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1073 TS-4399 TS-4400 Management API messes up proxy options TS-4399: Management API breaks diagnostic log rotation TS-4400: TSProxyStateSet persist cache clearing across restart

[GitHub] trafficserver pull request #1086: Clarify logging docs

2016-10-10 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1086 Clarify logging docs You can merge this pull request into a Git repository by running: $ git pull https://github.com/danobi/trafficserver logging_doc_fix Alternatively you can review

[GitHub] trafficserver issue #1073: TS-4399 TS-4400 Management API messes up proxy op...

2016-10-28 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1073 I think the delay issue is either: 1) The `mgmt_sleep_sec(1)` loop in `ProxyStateSet` b/c the main `traffic_manager` loop needs to run for the `lmgmt->proxy_running` flag to flip

[GitHub] trafficserver issue #1210: Create log_requests plugin

2016-11-07 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1210 Created under @SolidWallOfCode 's orders. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have

[GitHub] trafficserver pull request #1210: Create log_requests plugin

2016-11-07 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1210 Create log_requests plugin This plugin records status line & headers for all 4xx/5xx response transactions. Also included is a blacklist feature to omit any specific response

[GitHub] trafficserver pull request #1210: Create log_requests plugin

2016-11-09 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1210#discussion_r87227079 --- Diff: plugins/experimental/log_requests/log_requests.c --- @@ -0,0 +1,301 @@ +/** @file + + Logs full request/response headers

[GitHub] trafficserver issue #1073: TS-4399 TS-4400 Management API messes up proxy op...

2016-10-19 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1073 How does that look? Still need to figure out that delay issue. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project

[GitHub] trafficserver issue #1073: TS-4399 TS-4400 Management API messes up proxy op...

2016-10-14 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1073 @jpeach, is this what you were thinking? Also, between commit 82037 and 3365b, `traffic_ctl` stopped working immediately after ATS starts up. There is ~30s gap between startup any

[GitHub] trafficserver pull request #1073: TS-4399 TS-4400 Management API messes up p...

2016-10-14 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1073#discussion_r83509798 --- Diff: cmd/traffic_manager/traffic_manager.cc --- @@ -835,10 +824,11 @@ main(int argc, const char **argv) } else

[GitHub] trafficserver pull request #1210: Create log_requests plugin

2016-11-28 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1210#discussion_r89883222 --- Diff: plugins/experimental/log_requests/log_requests.cc --- @@ -0,0 +1,352 @@ +/** @file + + Logs full request/response headers

[GitHub] trafficserver pull request #1210: Create log_requests plugin

2016-11-28 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1210#discussion_r89884095 --- Diff: plugins/experimental/log_requests/log_requests.cc --- @@ -0,0 +1,352 @@ +/** @file + + Logs full request/response headers

[GitHub] trafficserver pull request #1210: Create log_requests plugin

2016-11-28 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1210#discussion_r89882819 --- Diff: plugins/experimental/log_requests/log_requests.cc --- @@ -0,0 +1,352 @@ +/** @file + + Logs full request/response headers

[GitHub] trafficserver issue #1210: Create log_requests plugin

2016-11-16 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1210 I'm just going to start adding ideas of names to this comment as I come up with them. `dump_errors`, `log_bad`, `log_errors` --- If your project is set up for it, you can reply

[GitHub] trafficserver pull request #1225: Create a tool to list files changed since ...

2016-11-16 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1225 Create a tool to list files changed since a tag As requested by @dragon512 === The default (no args) is to ouput all files changed since the most recent tag (lexicographically

[GitHub] trafficserver issue #1225: Create a tool to list files changed since a tag

2016-11-16 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1225 I'm less convinced this works than when I opened the PR. Testing some more. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well

[GitHub] trafficserver pull request #1224: TS-5056 Implement nonrecoverable error mec...

2016-11-16 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1224 TS-5056 Implement nonrecoverable error mechanism Change `Emergency()` to terminate the current process with status code UNRECOVERABLE_EXIT. Also change traffic_manager to listen

[GitHub] trafficserver pull request #1165: TS-5023 Allow diags.log and traffic.out to...

2016-10-31 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1165 TS-5023 Allow diags.log and traffic.out to be rotated by size or time Create a third option for diagnostic logs: roll by time or size, whichever comes first. This is useful in certain

[GitHub] trafficserver issue #1073: TS-4399 TS-4400 Management API messes up proxy op...

2016-10-31 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1073 The actual issue was suspected issue #1, where there was a sleeping deadlock scenario. See commit message for details. Other than that most recent change, I think the patch is ready

[GitHub] trafficserver issue #1073: TS-4399 TS-4400 Management API messes up proxy op...

2016-11-04 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1073 I couldn't figure out where the dup option was so I changed TS-4400 to a subtask of TS-4399. Also, can you kick off the CI again? I think I fixed the build. --- If your project

[GitHub] trafficserver pull request #1253: TS-5084 Make logcat follow file rotation

2016-12-07 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1253 TS-5084 Make logcat follow file rotation This patch makes `traffic_logcat -f` follow squid.blog even when squid.blog is rotated. Previously, the tool did not do this at all

[GitHub] trafficserver pull request #1254: TS-5085 `posix_fadvise` is incorrectly use...

2016-12-07 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1254 TS-5085 `posix_fadvise` is incorrectly used in traffic_logcat `traffic_logcat` was not using `posix_fadvise` correctly. This patch corrects the original poor usage as well as adds some

[GitHub] trafficserver issue #1254: TS-5085 `posix_fadvise` is incorrectly used in tr...

2016-12-14 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1254 @shinrich Done. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes

[GitHub] trafficserver issue #1257: TS-5053 const char **argv passed to TSPluginInit ...

2016-12-14 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1257 That sounds like a good idea. I'll open up a separate ticket for that. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your

[GitHub] trafficserver pull request #1268: TS-5097 Validate plugin argument count

2016-12-16 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1268 TS-5097 Validate plugin argument count If we don't validate the plugin argument count, the plugin API is vulnerable to buffer overflow fun (not actually fun). You can merge this pull

[GitHub] trafficserver pull request #1257: TS-5053 const char **argv passed to TSPlug...

2016-12-12 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1257 TS-5053 const char **argv passed to TSPluginInit is not null terminated Typically **argv is null terminated in other systems. There's no good reason for ATS to be any different. You can

[GitHub] trafficserver issue #1225: Create a tool to list files changed since a tag

2016-12-12 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1225 Forget about this for now --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled

[GitHub] trafficserver pull request #1225: Create a tool to list files changed since ...

2016-12-12 Thread danobi
Github user danobi closed the pull request at: https://github.com/apache/trafficserver/pull/1225 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so

[GitHub] trafficserver pull request #1254: TS-5085 `posix_fadvise` is incorrectly use...

2016-12-07 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1254#discussion_r91414850 --- Diff: proxy/logcat.cc --- @@ -300,6 +307,9 @@ main(int /* argc ATS_UNUSED */, const char *argv

[GitHub] trafficserver pull request #1248: TS-5070 Add configuration variables to set...

2016-12-05 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1248 TS-5070 Add configuration variables to set file permissions for diags.log & traffic.out We add 2 more config variables to control file permissions for diagnostics

[GitHub] trafficserver issue #1253: TS-5084 Make logcat follow file rotation

2017-01-04 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1253 @shinrich Done --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so

[GitHub] trafficserver pull request #1623: Delete dead code

2017-03-30 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1623 Delete dead code None of this code was being called or used elsewhere. Most likely some point before git history someone migrated off the abstract base class and never bothered

[GitHub] trafficserver issue #1622: Delete proxyAbstractBuffer.{cc,h}

2017-03-30 Thread danobi
GitHub user danobi opened an issue: https://github.com/apache/trafficserver/issues/1622 Delete proxyAbstractBuffer.{cc,h} These files are never used, despite the fact that other comments seem to indicate otherwise. Just another day in the logging subsystem, I guess

[GitHub] trafficserver issue #1622: Delete proxy/AbstractBuffer.{cc,h}

2017-03-31 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/issues/1622 Sorry. I made this issue to put off the task but I never ended up putting it off. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub

[GitHub] trafficserver pull request #1623: Delete dead code

2017-03-31 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1623#discussion_r109180096 --- Diff: proxy/logging/LogBuffer.cc --- @@ -112,14 +112,6 @@ LogBufferHeader::log_filename() return addr

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-03-16 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 I didn't realize there was a doc page for that. Updating now. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project

[GitHub] trafficserver pull request #1567: [RFC] Diags scrubbing mechanism

2017-03-16 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1567#discussion_r106496765 --- Diff: lib/ts/Scrubber.h --- @@ -0,0 +1,89 @@ +/** @file + + The Scrubber class helps replace patterns of text inside a buffer

[GitHub] trafficserver pull request #1567: [RFC] Diags scrubbing mechanism

2017-03-16 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1567#discussion_r106495464 --- Diff: lib/ts/Diags.h --- @@ -226,6 +242,10 @@ class Diags mutable ink_mutex tag_table_lock; // prevents reconfig/read races DFA

[GitHub] trafficserver pull request #1567: [RFC] Diags scrubbing mechanism

2017-03-16 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1567#discussion_r106495318 --- Diff: lib/ts/Scrubber.cc --- @@ -0,0 +1,201 @@ +/** @file + + Implementation for Scrubber.h + + @section license License

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-03-16 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 I just copied over the same text from the README to the admin config docs. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well

[GitHub] trafficserver pull request #1588: Make clear the implicit relationship betwe...

2017-03-16 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1588 Make clear the implicit relationship between configs `periodic_tasks_interval` is the gatekeeper for all periodic tasks. Meaning, the implicit lower bound for all other log related

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-03-16 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 @shukitchan @SolidWallOfCode Alright I believe I've made all the requested changes. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-03-14 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 Before, all combo handler documents were marked public. In the current state of the patch, combo handler documents will be private if any of the requested documents is private. --- If your

[GitHub] trafficserver issue #1599: Remove combohandler feature gate for 8.0 release

2017-03-20 Thread danobi
GitHub user danobi opened an issue: https://github.com/apache/trafficserver/issues/1599 Remove combohandler feature gate for 8.0 release I recently noticed `combohandler` was marking all of its generated documents as `Cache-Control: Public` regardless of what the requested

[GitHub] trafficserver pull request #1567: [RFC] Diags scrubbing mechanism

2017-03-16 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1567#discussion_r106498117 --- Diff: proxy/logging/LogObject.h --- @@ -299,6 +299,10 @@ class LogObject : public RefCountObj unsigned m_buffer_manager_idx

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

2017-03-16 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1516#discussion_r106499461 --- Diff: doc/admin-guide/plugins/combo_handler.en.rst --- @@ -83,3 +83,16 @@ results in these file paths being "reconstructed"::

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-03-17 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 done --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so

[GitHub] trafficserver issue #1567: [RFC] Diags scrubbing mechanism

2017-03-16 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1567 Personally, I don't think this feature has much use in open source. If nothing else, it probably encourages poor security practices. Even with this patch, someone could still do a `fprintf

[GitHub] trafficserver issue #1589: glibc 2.25 will cause compile errors

2017-03-16 Thread danobi
GitHub user danobi opened an issue: https://github.com/apache/trafficserver/issues/1589 glibc 2.25 will cause compile errors Heads up: according to the 2.25 release document: > * The types res_sendhookact, res_send_qhook, re_send_rhook, and the qhook and rhook memb

[GitHub] trafficserver issue #1210: Create log_requests plugin

2017-03-21 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1210 Closing. I'm in the process of creating new log fields to do the same thing here. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub

[GitHub] trafficserver pull request #1210: Create log_requests plugin

2017-03-21 Thread danobi
Github user danobi closed the pull request at: https://github.com/apache/trafficserver/pull/1210 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so

[GitHub] trafficserver issue #1567: [RFC] Diags scrubbing mechanism

2017-03-14 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1567 @SolidWallOfCode This patch is done on my end and ready for review. If I find some time tonight I'll stare at the code and see if I can catch any bugs. It doesn't have any AFAICT

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-03-09 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 Ok. Does a feature gate sound good? We can flip the flag on the next release. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

2017-03-02 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1516#discussion_r103987142 --- Diff: plugins/esi/combo_handler.cc --- @@ -136,6 +138,24 @@ struct InterceptData { ~InterceptData

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

2017-03-02 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1516#discussion_r103965747 --- Diff: plugins/esi/combo_handler.cc --- @@ -136,6 +138,24 @@ struct InterceptData { ~InterceptData

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

2017-03-02 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1516#discussion_r103965565 --- Diff: plugins/esi/combo_handler.cc --- @@ -136,6 +138,24 @@ struct InterceptData { ~InterceptData

[GitHub] trafficserver issue #1516: Implement Cache-Control: immutable handling

2017-03-07 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1516 @shukitchan, I've updated the documentation. @SolidWallOfCode @shukitchan, What's the consensus on the max-age change & private change? For max age, @shukitchan is right, the

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

2017-03-07 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1516#discussion_r104771989 --- Diff: plugins/esi/combo_handler.cc --- @@ -187,6 +207,94 @@ InterceptData::~InterceptData() } } +void

[GitHub] trafficserver pull request #1567: Diags scrubbing mechanism

2017-03-10 Thread danobi
GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/1567 Diags scrubbing mechanism This should be the squashed commit message: Diagnostic log scrubbing is intended an extra security measure to prevent sensitive strings from leaking

[GitHub] trafficserver issue #1567: Diags scrubbing mechanism

2017-03-10 Thread danobi
Github user danobi commented on the issue: https://github.com/apache/trafficserver/pull/1567 The last commit gets error.log scrubbed too. I'll fix the allocation stuff on Tuesday. Nobody tell Leif. --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

2017-03-06 Thread danobi
Github user danobi commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1516#discussion_r104584519 --- Diff: plugins/esi/combo_handler.cc --- @@ -187,6 +207,94 @@ InterceptData::~InterceptData() } } +void