Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
2e0ecec
#1323 Restores the NULL string where appropriate
zwoop Jan 13, 2017
cfa2d53
TS-4887: Fixes naming of this new API in the docs
zwoop Jan 18, 2017
a16f4bc
TS-5059: Port TCP Fast Open BIO to OpenSSL 1.1
jablko Jan 2, 2017
fad0324
get_creation_time() takes *time_t, not *long
jablko Jan 13, 2017
684629f
Doc: Updates to prevent dangling references.
Vexinator Jan 2, 2017
5d1344e
Modify TSHttpTxnHookAdd to add hook only once
meeramn Nov 1, 2016
f40cbb2
[TS-5024] Ran clang-format.
meeramn Jan 18, 2017
2007425
TS-5022: nullptr check
persiaAziz Jan 19, 2017
cc7fba7
Do not reschedule the periodic inactive_event and cancel it after sig…
oknet Jan 18, 2017
3cdfac0
Change connect_attempts_rr_retries test to match warning text
randall Jan 18, 2017
fad2269
This avoids some badness around some STL implementations, where the
zwoop Jan 18, 2017
92fa98c
Issue #1359: Flaw in TS-2157 port in server address may be unset
shinrich Jan 24, 2017
09b604e
Issue #1358: Add server_connect_end milestone.
shinrich Jan 23, 2017
e319bc0
TS-5079: logging enhancements around OCSP
randall Dec 5, 2016
de42194
TS-4716: OpenBSD mandir should be ${prefix}/man
jablko Jan 23, 2017
cc98735
Debian libexecdir is a subdirectory of libdir
jablko Jan 23, 2017
85a923c
Fixes for building with LibreSSL
jablko Jan 8, 2017
a76f3c2
TS-5080: log when remap.config is successfully reloaded
randall Dec 5, 2016
ac4a369
Fix CID 1369398: Null pointer dereferences
randall Jan 25, 2017
f0a1f21
#1279 - CID 1367531: Uninitialized members (UNINIT_CTOR): proxy/main.cc
bryancall Jan 25, 2017
dcaa66e
TSStringPercentDecode null-termination clipping on overflow. Added Re…
shinrich Jan 25, 2017
a87f3f2
Fixed issue where somaxconn was being set to 0 on OSX and preventing
bryancall Jan 26, 2017
84ff9cb
Add 7.1.x to the github mirror and build triggers
zwoop Jan 12, 2017
0add325
Revert "Fix nested role (not supported)"
jablko Jan 6, 2017
9187df4
Revert "Fix documentation build for docutils 0.13.1 (2/2)"
jablko Jan 6, 2017
5b0485e
Revert "Fix documentation build for docutils 0.13.1 (1/2)"
jablko Jan 6, 2017
2dcd2d8
TS-5107: Changes to autolinking in Docutils 0.13
jablko Jan 6, 2017
3c70cfc
TS-5107: init_customizations() isn't new in Docutils 0.13
jablko Jan 25, 2017
378fd19
Use Autoconf checks vs. OPENSSL_VERSION_NUMBER
jablko Jan 9, 2017
4e6ce70
Incorrectly freeing Http1ClientSession while setting up to return a e…
shinrich Jan 25, 2017
c7806cc
TS-993: OpenBSD sbindir should be ${exec_prefix}/sbin
jablko Jan 26, 2017
eac7747
This fixes build problems when using non-standard OpenSSL
zwoop Jan 27, 2017
ab2409f
Issue #1360: REGRESSION_TEST(SDK_API_OVERRIDABLE_CONFIGS) sometimes c…
shinrich Jan 24, 2017
6e7ee24
Issue #1367: HdrHeap potential corruption
shinrich Jan 24, 2017
66b29f4
SSL_CTX_remove_session() and external cache
jablko Jan 28, 2017
e4cf4c2
check if any of client cert path or file is null
persiaAziz-zz Jan 30, 2017
7268498
traffic_via depends on the PCRE library
jablko Jan 31, 2017
e413175
TS-1768: AC_SEARCH_LIBS vs. AC_CHECK_LIB
jablko Jan 30, 2017
8d0a29c
Log crc field and psql field correctly with H2
maskit Feb 1, 2017
96b5bbd
Fix for YTSATS-983
pushkarpradhan Dec 16, 2016
9cbac37
retry safe requests
vmamidi Feb 1, 2017
26879ea
Fix indentation on previous docs update
zwoop Feb 4, 2017
2cf8c5c
Mark the new span metrics as gauges in Epic plugin
zwoop Feb 13, 2017
04958cd
BoringSSL doesn't have BIO_sock_non_fatal_error()
jablko Feb 10, 2017
f4e4efc
Add BIO_sock_non_fatal_error() attribution
jablko Feb 12, 2017
1ae54ee
Doc: Add an example of disabled HTTP/2 over TLS
masaori335 Feb 14, 2017
bfccbe1
Added the OpenSSL license
zwoop Feb 18, 2017
959c2cc
Set nullptr to ua_session after it is destoryed
masaori335 Feb 15, 2017
a04686d
Fixes the type for a few overridables
zwoop Feb 18, 2017
5676118
Cleans up ICC options, and some build issues
zwoop Feb 15, 2017
cebaa9c
esi/combo_handler plugin doesn't register
danobi Feb 24, 2017
9688447
TS-4747: make marking parent proxies down in hostdb configurable.
Feb 17, 2017
4b80695
Make sure to schedule connect event on correct thread type.
shinrich Jan 26, 2017
283a494
Logging cache code map size fix
gtenev Feb 28, 2017
cef8cc9
Don't push stack variables in lightuserdata
postwait Feb 28, 2017
1fe77fe
Ensure 'service trafficserver stop’ is synchronous under load on redhat
timbunce Feb 28, 2017
5a45349
Changes default RAM cache to the LRU + seen-filter
zwoop Mar 1, 2017
985a5d9
Ignore read and write errors if vio has been cleared
bryancall Mar 6, 2017
4ab37cc
Do not callback one SM EVENT_ERROR twice.
oknet Mar 9, 2017
dfc03e8
When SSL connect fails, we return 502 success
shinrich Mar 1, 2017
0765ca7
Issue #1443 - Fix early or duplicate 404 error handling
shinrich Feb 14, 2017
1f514da
heap-use-after-free: Access ua_session after HttpTunnel::chain_abort_…
oknet Feb 28, 2017
d78c2d7
isuue #1399 add back partial code of tcp_congestion_control erased by…
Feb 8, 2017
e821433
Fix a build issue that use of undeclared variables
maskit Feb 9, 2017
b679b3f
#1481 Makes %<cluc> work consistently, and at all
zwoop Mar 13, 2017
99fac18
Fix Assertion failure in the regex_revalidate plugin.
jrushford Feb 1, 2017
3496333
client cert should be added to netvcoptions only when needed
persiaAziz-zz Feb 27, 2017
f47c03d
Reset inactive timeout everytime H2 DATA frames are sent
maskit Mar 15, 2017
942f57a
fix , remove not used array `buf` in `rcv_data_frame()`
byronhe Mar 22, 2017
d07dbec
Fix a wrong option charactar for access_key
maskit Mar 17, 2017
f8b51e5
reconstruct to load the default value for member variables
zhilhuan Feb 27, 2017
369db08
Insure that parent health stats are updated properly on a markdown
Mar 7, 2017
712eedb
Need dedicated TS_SSL_SERVERNAME_HOOK
shinrich Feb 11, 2017
317738e
Fix ssl hook state logic.
shinrich Mar 7, 2017
c6cc1cc
Perform the config reload on ET_TASK threads
vmamidi Mar 29, 2017
0c317fb
Changed some of the HTTP/2 enums to enum classes and found a comparis…
bryancall Mar 24, 2017
25a08be
Set HttpSM::tunnel_handler_post to handle write event for outputing H…
oknet Mar 15, 2017
1f29e84
Clean up from converting Http2 enums to enum classes.
Mar 28, 2017
dcaf84e
Uses an enum class for the Mgmt OpType
zwoop Apr 3, 2017
eaeb2c6
Avoid varargs warnings when compiling LuaJIT
zwoop Apr 4, 2017
1450456
Revert "TS-4895: Initialize default_inactivity_timeout (CID 1021743 f…
zwoop Apr 12, 2017
db596a1
Revert "TS-4612: Proposal: InactivityCop Optimize"
zwoop Apr 12, 2017
2b1ad8e
Fixes padding byte being part of the POST/PUT data
zwoop Apr 18, 2017
48a0242
Fixes padding byte being part of the POST/PUT data (2nd try)
maskit Apr 19, 2017
1dedd37
Add --enable-mime-sanity-check option
maskit Apr 20, 2017
332398e
The result of TSHttpTxnParentProxySet() maybe overwrite in ParentConf…
oknet Mar 29, 2017
b70ab05
Send table size update at the beginning of header block
maskit Apr 14, 2017
fd008c3
Revert "Revert "TS-4612: Proposal: InactivityCop Optimize""
zwoop Apr 24, 2017
88c9b74
Fix inactivity_timeout canceling
masaori335 Apr 21, 2017
2eab0fc
Revert "Revert "TS-4895: Initialize default_inactivity_timeout (CID 1…
zwoop Apr 27, 2017
ce328b2
Fixed an issue where io events were based on the state of the stream
bryancall Apr 27, 2017
57d3e8d
Add new testing infra to ATS
dragon512 Apr 29, 2017
9a31255
Exclude all the AU test files from RAT
zwoop Mar 6, 2017
6ff7931
Configure option to disable CURL
bryancall Jan 31, 2017
62631ff
brotli support
myraid Mar 7, 2017
823eb7a
new config option for allow urls.
myraid Apr 6, 2017
4d3a55a
The Brotli buffer pointer is was not being set to a default value
bryancall May 3, 2017
f615955
TS-4930: Unfolds request headers that are using obs continuations
zwoop Oct 4, 2016
96cfbed
Fix double do_io_close in HttpTunnel::chain_abort_all()
oknet May 5, 2017
b989786
Update changelog.pl to use github instead of Jira
PSUdaemon May 4, 2017
7414c9f
issue #107 Fix crash using openssl 1.1
shinrich May 5, 2017
e3fffeb
X509 was made opaque in OpenSSL 1.1
jablko Jan 28, 2017
b77b288
delay DNS for origin server until it is required
vmamidi May 3, 2017
1b44d7e
Revert "Fix double do_io_close in HttpTunnel::chain_abort_all()"
zwoop May 8, 2017
ae69141
Coverity 1200018 & 1200017
May 9, 2017
625cc1b
h2spec: handling PRIORITY frame that depend on itself
May 2, 2017
38da819
Allow receiving H2 frames on server initiated streams
maskit May 11, 2017
fc22468
Fix Last-Stream-ID of GOAWAY frame
masaori335 Apr 28, 2017
70c7bce
Add half_close state in Http2ClientSession
masaori335 Apr 14, 2017
64df2f1
Rename half_close_flag to half_close_local_flag in Http2ClientSession
masaori335 May 11, 2017
7bcce91
Fix slow leak in traffic_manager caused by un-freed capabilities.
alficles May 9, 2017
096bf66
Add a simple cache for the loaded configurations from file
zwoop Apr 14, 2017
0bd3f35
Add refcounting around the S3 configuration
zwoop Apr 21, 2017
16681fc
Fixes a race condition between config reloads
zwoop Apr 25, 2017
d95ce85
Fix version and virtualhost config cache sync.
May 15, 2017
71d2261
TS-4195: double free on exit
Mar 10, 2017
5a4e071
obj_found is never be true
scw00 Apr 22, 2017
258f8d4
Plugin ts_lua - Incorrect mapping of transaction configuration parame…
pbchou May 22, 2017
06aa64e
coredump_handleEvent fix
scw00 May 22, 2017
e57ce44
Issue_1943: get rid of ticket_key_name tag from ssl_multicert
persiaAziz-zz May 19, 2017
357a18e
h2spec: The endpoint MUST ignore any flags that is undefined.
May 2, 2017
c7d48e2
This should allow for per-version binaries
zwoop May 30, 2017
024074b
Issue #1605 AWS Signature Version 4
gtenev Apr 25, 2017
5eb6e85
cid 1375841: Replace strncpy with memcpy
May 31, 2017
edd3873
Use our ATS server to proxy for Bintray
zwoop May 31, 2017
e0f4e50
Server information should be cleared when following redirect...for 7.…
vmamidi May 31, 2017
2f5792b
clang format
vmamidi May 31, 2017
cb9076f
Cleanup server_entry before do dns lookup
oknet Jun 1, 2017
2b0da1f
clang-analyzer - Called C++ object pointer is null in get_ka_info_fro…
bryancall May 1, 2017
77628a3
Protect against LRUHash x = x
zwoop Apr 18, 2017
5359a57
Ran clang-tidy with modernize-deprecated-headers
bryancall Jun 5, 2017
69a76c1
Ran clang-tidy with modernize-raw-string-literal
bryancall Jun 5, 2017
6e3f57e
Ran clang-tidy with modernize-use-nullptr
bryancall Jun 5, 2017
093decd
Ran clang-tidy with modernize-loop-convert
bryancall Jun 4, 2017
2e9a0df
Ran clang-tidy with modernize-redundant-void-arg
bryancall Jun 5, 2017
ed3736a
Ran clang-tidy with modernize-use-bool-literals
bryancall Jun 4, 2017
29bed82
Ran clang-tidy with performance-unnecessary-value-param
bryancall Jun 5, 2017
22216e3
Ran clang-tidy with performance-faster-string-find
bryancall Jun 5, 2017
59fb90c
Ran clang-tidy with modernize-use-override
bryancall Jun 5, 2017
aefd452
fix memory leak in SSLInitServerContext
unixwitch Jun 5, 2017
f669bc9
fix intermittent mac os parent selection regression test failure.
jrushford Jun 6, 2017
0e5090b
Fix SSL handshake problems.
May 18, 2017
bb77311
Add back in length check to fail H2 headers with no name.
shinrich Jun 6, 2017
dcc24f2
HTTP2 non persistent metrics sticking over system crash.
shinrich Jun 1, 2017
604c3c3
Ran clang-tidy with modernize-use-using
bryancall Jun 7, 2017
d91350f
uses AM_C*FLAGS instead of C*FLAGS
Jun 1, 2017
65a001b
Revert PR #947 - merge to 7.1.x
vmamidi Jun 8, 2017
61a02f8
fix assertion with 100-continue
scw00 Jun 9, 2017
b537933
Fix unintialized request_content_length in HttpSM::state_read_client_…
scw00 Jun 12, 2017
7f1c394
YTSATS-1127: update tls_proto to allow for override of port protoset
persiaAziz-zz Jan 25, 2017
235c9cf
Via 7.1: Add MemView.
SolidWallOfCode Jun 13, 2017
c45b6eb
Via 7.1: Change protocol stack implementation to use StringView.
SolidWallOfCode Mar 1, 2017
534f15d
Via-7.1: Add VIA logic and documentation.
SolidWallOfCode Jun 13, 2017
d6ca9b4
Add settings for autopep8
masaori335 Jun 13, 2017
ba86ac6
Ran autopep8 to python files
masaori335 Jun 13, 2017
955fe03
Explicit std:: name space, seems to make compiler happy
zwoop Mar 13, 2017
7585e79
1962: Reload keyblock from key file on every config reload
persiaAziz-zz May 23, 2017
6666ed4
Issue 2157: Configuration reload on master is crashing when built wit…
persiaAziz-zz Jun 19, 2017
053a59f
Fix Lua metrics configuration reloading.
jpeach Jun 8, 2017
3f4d7a0
Replace fmin with simple conditional (macOS is unhappy)
zwoop Jun 20, 2017
7914fbc
have autest make hardlink symlinks before doing a copy
dragon512 Jun 21, 2017
4f31f85
Add a dependency that is gone from master for these checks
zwoop Jun 21, 2017
9a70787
TS-4396: fix number_of_redirections off-by-one
mingzym Jul 2, 2016
96f5886
Update H2 priority tree node with a created stream
maskit Jun 21, 2017
6dac746
Fix handling read errors in TLS Handshake
masaori335 Jun 7, 2017
1931ba0
Prevents response body content with a 204
Jun 12, 2017
f2abdf8
Convert an ink_release_assert into logic to reset the rbio to use the…
shinrich Jun 15, 2017
6d37752
Revert "uses AM_C*FLAGS instead of C*FLAGS"
zwoop Jun 26, 2017
5231d00
Extend body factory templates to have a default per custom template set.
Aug 17, 2015
2f890bb
HTTP2 remove window between client stream shutdown and ATS stream cou…
Jun 21, 2017
87c57f9
Make proxy.config.http.parent_proxy.per_parent_connect_attempts,
jrushford May 12, 2017
8d9f90b
For #2126 - Fix for transform test crash.
SolidWallOfCode Jun 22, 2017
fce7504
Limit HPACK indexing table size correctly
maskit Jun 21, 2017
ba9e4ce
Check padding length of Huffman code strictly
maskit Jun 21, 2017
3b5617d
Check padding bits of Huffman code strictly
maskit Jun 21, 2017
aa86675
Fixes transfers for error responses without body
Jun 27, 2017
ea252d4
TS-4044: The server_vc should be established (writeable) before reque…
oknet Jun 22, 2017
0af7806
Fix StringView constructor to not fail on a nulll pointer.
SolidWallOfCode Jun 28, 2017
53d2668
use parsed_hosts_file_ptr only if it has valid value
liodot Jun 29, 2017
c482f6f
adds effective client request url var expansion
Jun 20, 2017
97801c8
handle 307 and 308 when building redirect response
Jun 29, 2017
8612cbb
omits version string when verifying test output
Jun 30, 2017
09a4f2d
Fix LIBTCL and HWLOC_LIBS linking for traffic_top for Ubuntu.
pbchou Jun 28, 2017
a4dac6b
Backport 2219 to 7.1.x: Fix protocol stack to not skip TLS tag on error.
SolidWallOfCode Jun 29, 2017
6e84fc3
Fix remap redirection with build_error_reponse
scw00 Jul 1, 2017
af6ed24
Update inactivity if total_written is more than 0
masaori335 Jul 6, 2017
6b4d1c6
set location for client CA cert file
persiaAziz Jun 30, 2017
08f242c
Return 408 response with specified header
scw00 Jul 3, 2017
f3c7936
Revert "set location for client CA cert file"
Jul 6, 2017
44029f4
Break up the ssl_read_from_net loop. Adjust UA inactivity timeout.
Jul 7, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
126 changes: 126 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,129 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

~~~

LICENSE ISSUES
==============

The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
the OpenSSL License and the original SSLeay license apply to the toolkit.
See below for the actual license texts.

OpenSSL License
---------------

/* ====================================================================
* Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/

Original SSLeay License
-----------------------

/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/

7 changes: 5 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ doxygen:
@cd doc && $(MAKE) $(AM_MAKEFLAGS) $@

changelog:
./tools/changelog.pl $(VERSION) > CHANGELOG-$(VERSION)
-git add CHANGELOG-$(VERSION) && git commit -m "Adding CHANGELOG-$(VERSION)"
./tools/changelog.pl apache trafficserver $(VERSION) > CHANGELOG-$(VERSION)

asf-dist: asf-distdir
tardir=$(distdir) && $(am__tar) --mtime=./configure.ac | bzip2 -9 -c >$(distdir).tar.bz2
Expand Down Expand Up @@ -102,6 +101,9 @@ install-data-hook:
rat:
java -jar $(top_srcdir)/ci/apache-rat-0.11-SNAPSHOT.jar -E $(top_srcdir)/ci/rat-regex.txt -d $(top_srcdir)

autopep8:
@autopep8 -i -r $(top_srcdir)

#
# These are rules to make clang-format easy and fast to run. Run it with e.g.
# make -j clang-format
Expand Down Expand Up @@ -163,3 +165,4 @@ help:
@echo 'rel-candidate recreate a signed relelease candidate source package and a signed git tag'
@echo 'release recreate a signed release source package and a signed git tag'
@echo 'tidy run clang-tidy in fix-it mode'
@echo 'autopep8 run autopep8 over python files'
6 changes: 6 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,9 @@ Copyright 2014 Google Inc. All Rights Reserved.

plugins/experimental/memcache/protocol_binary.h developed by Sun Microsystems, Inc.
Copyright (c) <2008>, Sun Microsystems, Inc. All rights reserved.

~~

Reusable Gold Testing System
https://bitbucket.org/dragon512/reusable-gold-testing-system
Copyright (c) 2015-2016 Jason Kenny All Rights Reserved.
2 changes: 1 addition & 1 deletion build/crypto.m4
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dnl
dnl TS_CHECK_CRYPTO: look for crypto libraries and headers
dnl
AC_DEFUN([TS_CHECK_CRYPTO], [
AC_SEARCH_LIBS([crypt], [crypt], [AC_SUBST([LIBCRYPT],["-lcrypt"])])
AC_CHECK_LIB([crypt], [crypt], [AC_SUBST([LIBCRYPT],["-lcrypt"])])

AX_CHECK_OPENSSL([
enable_crypto=yes
Expand Down
2 changes: 1 addition & 1 deletion build/lzma.m4
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if test "$enable_lzma" != "no"; then
TS_ADDTO(LDFLAGS, [-L${lzma_ldflags}])
TS_ADDTO_RPATH(${lzma_ldflags})
fi
AC_SEARCH_LIBS([lzma_code], [lzma], [lzma_have_libs=1])
AC_CHECK_LIB([lzma], [lzma_code], [lzma_have_libs=1])
if test "$lzma_have_libs" != "0"; then
AC_CHECK_HEADERS(lzma.h, [lzma_have_headers=1])
fi
Expand Down
2 changes: 1 addition & 1 deletion build/pcre.m4
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ if test "$enable_pcre" != "no"; then
TS_ADDTO(LDFLAGS, [-L${pcre_ldflags}])
TS_ADDTO_RPATH(${pcre_ldflags})
fi
AC_SEARCH_LIBS([pcre_exec], [pcre], [pcre_have_libs=1])
AC_CHECK_LIB([pcre], [pcre_exec], [pcre_have_libs=1])
if test "$pcre_have_libs" != "0"; then
AC_CHECK_HEADERS(pcre.h, [pcre_have_headers=1])
AC_CHECK_HEADERS(pcre/pcre.h, [pcre_have_headers=1])
Expand Down
2 changes: 1 addition & 1 deletion build/zlib.m4
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if test "$enable_zlib" != "no"; then
TS_ADDTO(LDFLAGS, [-L${zlib_ldflags}])
TS_ADDTO_RPATH(${zlib_ldflags})
fi
AC_SEARCH_LIBS([compressBound], [z], [zlib_have_libs=1])
AC_CHECK_LIB([z], [compressBound], [zlib_have_libs=1])
if test "$zlib_have_libs" != "0"; then
AC_CHECK_HEADERS(zlib.h, [zlib_have_headers=1])
fi
Expand Down
4 changes: 2 additions & 2 deletions ci/jenkins/bin/gh-mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ function checkBuild() {
}

# Save away previous ref-specs, you must save all branches
REF_4_2=$(getRef "4.2.x")
REF_6_2=$(getRef "6.2.x")
REF_7_0=$(getRef "7.0.x")
REF_7_1=$(getRef "7.1.x")
REF_master=$(getRef "master")

# Do the updates
${GIT} remote update --prune > /dev/null 2>&1
${GIT} update-server-info

# Check the branches, this makes assumptions that the Jenkins build are named after the branches
checkBuild "$REF_4_2" "4.2.x"
checkBuild "$REF_6_2" "6.2.x"
checkBuild "$REF_7_0" "7.0.x"
checkBuild "$REF_7_1" "7.1.x"
checkBuild "$REF_master" "master"
1 change: 1 addition & 0 deletions ci/rat-regex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
.*\.default$
.*\.default\.in$
.*\.config$
.*\.gold$
^\.gitignore$
^\.gitmodules$
^\.indent.pro$
Expand Down
37 changes: 19 additions & 18 deletions ci/tsqa/tests/test_body_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def setUpEnv(cls, env):
cls.configs['remap.config'].add_line(
'map / http://www.linkedin.com/ @action=deny'
)
cls.body_factory_dir = os.path.join(cls.environment.layout.prefix, cls.configs['records.config']['CONFIG']['proxy.config.body_factory.template_sets_dir'])
cls.body_factory_dir = os.path.join(cls.environment.layout.prefix,
cls.configs['records.config']['CONFIG']['proxy.config.body_factory.template_sets_dir'])
cls.domain_directory = ['www.linkedin.com', '127.0.0.1', 'www.foobar.net']
for directory_item in cls.domain_directory:
current_dir = os.path.join(cls.body_factory_dir, directory_item)
Expand All @@ -50,24 +51,24 @@ def setUpEnv(cls, env):
pass
fname = os.path.join(current_dir, "access#denied")
with open(fname, "w") as f:
f.write(directory_item)
f.write(directory_item)
fname = os.path.join(current_dir, ".body_factory_info")
with open(fname, "w") as f:
pass
pass

def test_domain_specific_body_factory(self):
times = 1000
no_dir_domain = 'www.nodir.com'
self.domain_directory.append(no_dir_domain)
self.assertEqual(4, len(self.domain_directory))
url = 'http://127.1.0.1:{0}'.format(self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
for i in xrange(times):
domain = random.choice(self.domain_directory)
headers = {'Host': domain}
r = requests.get(url, headers=headers)
domain_in_response = no_dir_domain
for domain_item in self.domain_directory:
if domain_item in r.text:
domain_in_response = domain_item
break
self.assertEqual(domain, domain_in_response)
times = 1000
no_dir_domain = 'www.nodir.com'
self.domain_directory.append(no_dir_domain)
self.assertEqual(4, len(self.domain_directory))
url = 'http://127.1.0.1:{0}'.format(self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
for i in xrange(times):
domain = random.choice(self.domain_directory)
headers = {'Host': domain}
r = requests.get(url, headers=headers)
domain_in_response = no_dir_domain
for domain_item in self.domain_directory:
if domain_item in r.text:
domain_in_response = domain_item
break
self.assertEqual(domain, domain_in_response)
12 changes: 8 additions & 4 deletions ci/tsqa/tests/test_connect_attempts.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def test_listen_origin(self):

def test_die_on_connect_origin(self):
'''Verify that we get 504s from origins that die_on_connect'''
url = 'http://127.0.0.1:{0}/die_on_connect/s'.format(self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
url = 'http://127.0.0.1:{0}/die_on_connect/s'.format(
self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
ret = requests.get(url, timeout=2)
self.assertEqual(ret.status_code, 504)

Expand All @@ -225,19 +226,22 @@ def test_partial_response_origin(self):
We want to bail out-- since the origin already got the request, we can't
gaurantee that the request is re-entrant
'''
url = 'http://127.0.0.1:{0}/partial_response/s'.format(self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
url = 'http://127.0.0.1:{0}/partial_response/s'.format(
self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
ret = requests.get(url, timeout=2)
self.assertEqual(ret.status_code, 500)

def test_reset_after_accept_origin(self):
'''Verify that we get 502s from origins that reset_after_accept, once any bytes are sent to origin we assume we cannot re-dispatch'''
url = 'http://127.0.0.1:{0}/reset_after_accept/s'.format(self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
url = 'http://127.0.0.1:{0}/reset_after_accept/s'.format(
self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
ret = requests.get(url, timeout=2)
self.assertEqual(ret.status_code, 502)

def test_slow_response(self):
'''Verify that we get 5xx from origins that take longer than acceptable, since we will not retry them'''
url = 'http://127.0.0.1:{0}/slow_response/s'.format(self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
url = 'http://127.0.0.1:{0}/slow_response/s'.format(
self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
ret = requests.get(url, timeout=2)
# make sure it worked
self.assertEqual(ret.status_code, 504)
Expand Down
32 changes: 16 additions & 16 deletions ci/tsqa/tests/test_custom_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ def setUpEnv(cls, env):
cls.configs['logging.config'].add_line('log.ascii(Format = "%<hii> %<hiih>", Filename = "test_log_field"')

def ip_to_hex(self, ipstr):
num_list = ipstr.split('.')
int_value = (int(num_list[0]) << 24) + (int(num_list[1]) << 16) + (int(num_list[2]) << 8) + (int(num_list[3]))
return hex(int_value).upper()[2:]
num_list = ipstr.split('.')
int_value = (int(num_list[0]) << 24) + (int(num_list[1]) << 16) + (int(num_list[2]) << 8) + (int(num_list[3]))
return hex(int_value).upper()[2:]

def test_log_field(self):
random.seed()
times = 10
for i in xrange(times):
request_ip = "127.%d.%d.%d" % (random.randint(1, 255), random.randint(1, 255), random.randint(1, 255))
url = 'http://%s:%s' % (request_ip, self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
requests.get(url)
# get the last line of the log file
time.sleep(10)
with open(self.log_file_path) as f:
for line in f:
pass
expected_line = "%s %s\n" % (request_ip, self.ip_to_hex(request_ip))
self.assertEqual(line, expected_line)
random.seed()
times = 10
for i in xrange(times):
request_ip = "127.%d.%d.%d" % (random.randint(1, 255), random.randint(1, 255), random.randint(1, 255))
url = 'http://%s:%s' % (request_ip, self.configs['records.config']['CONFIG']['proxy.config.http.server_ports'])
requests.get(url)
# get the last line of the log file
time.sleep(10)
with open(self.log_file_path) as f:
for line in f:
pass
expected_line = "%s %s\n" % (request_ip, self.ip_to_hex(request_ip))
self.assertEqual(line, expected_line)
Loading