refs #115394, support preferred AcceptValue

* existing preferred logic is only for TE, refactor it
  to support Accept-Encoding as well

Change-Id: I2f8949b870d50226004e4fd2bb52f9e810f46fa9
Signed-off-by: Eric Wang <leiw@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/61628
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Andrew Skowronski <andrews@mozy.com>
Reviewed-by: Kevin Cai <kevinc@mozy.com>
Reviewed-by: Russ Simons <russs@mozy.com>
Reviewed-by: Pancho Avila <panchoa@mozy.com>
add config.sub* and config.guess* to .gitignore

Change-Id: I835b1c1d34b9a75bab38be9f1a9e3bdd19819521
Signed-off-by: Xiangdong Lin <xiangdongl@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/61706
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Kevin Cai <kevinc@mozy.com>
closes #115402: add idle-reconnect ability to mordor pq ConnectionPool

Change-Id: Ie235b850d48ae13d41985d8a994b65536e9ceec3
Signed-off-by: Bert Yuan <berty@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/61620
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Kevin Cai <kevinc@mozy.com>
refs #115327: support 'Allow' entity-header

Change-Id: I39a9347640bda675ce9a0d31a0f9404558536694
Signed-off-by: Bo Shen <bos@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/61755
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Kevin Cai <kevinc@mozy.com>
Reviewed-by: Bert Yuan <berty@mozy.com>
Reviewed-by: Eric Wang <leiw@mozy.com>
Reviewed-by: Kefu Chai <chaik@mozy.com>
refs #115394: tiny fix on default qvalue

* if q is not explicitly given, it should be the same as "q=1"

Change-Id: I64530df0677d32a894bbe08bafcc34eba0a21283
Signed-off-by: Eric Wang <leiw@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/61868
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Kefu Chai <chaik@mozy.com>
Reviewed-by: Andrew Skowronski <andrews@mozy.com>
Reviewed-by: Pancho Avila <panchoa@mozy.com>
Reviewed-by: Kevin Cai <kevinc@mozy.com>
fix out of source build error

* rename the one generated by autoconf from config.h to autoconfig.h
* explicitly reference Mordor::Config header by mordor/config.h
* add $(top_builddir) into include search path

Change-Id: I4af2c25241e6e128e1d1c9f38fac540e31142d4e
Signed-off-by: Kevin Cai <kevinc@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/61942
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Kefu Chai <chaik@mozy.com>
fixes #113615: support reentrant FiberMutex

* add test cases accordingly

Change-Id: I948877588898e22e6ad0d19518c7dc91d41383c4
Signed-off-by: Kefu Chai <chaik@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/62173
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Andrew Skowronski <andrews@mozy.com>
Reviewed-by: Kevin Cai <kevinc@mozy.com>
make FiberEvent more friendly to wait-and-destroy use case

Change-Id: I496b94ac163296684bdc7bf1ce882c3b42195178
Signed-off-by: Kefu Chai <chaik@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/62288
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Eric Wang <leiw@mozy.com>
Reviewed-by: Andrew Skowronski <andrews@mozy.com>
Reviewed-by: Xiangdong Lin <xiangdongl@mozy.com>
Reviewed-by: Kevin Cai <kevinc@mozy.com>
refs #115647: optional disable Buffer::invariant check

* change Buffer::invariant() with NDEBUG_PERF so that application can
  optionally disable the expensive invariant check.

Change-Id: I721f55c06a8aff5a3a941852f160abcb017cde5d
Signed-off-by: Kevin Cai <kevinc@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/63230
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Kefu Chai <chaik@mozy.com>
Reviewed-by: Andrew Skowronski <andrews@mozy.com>
refs #118200: don't panic in URI::decode

* don't panic on invalid input
* add UT to cover the scenario

Change-Id: I80c916a369d28fba32bfc52897f3902daba43723
Signed-off-by: Kevin Cai <kevinc@mozy.com>
Reviewed-on: https://gerrit.dechocorp.com/63645
Reviewed-by: Kefu Chai <chaik@mozy.com>
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Andrew Skowronski <andrews@mozy.com>