Commit Graph

3364 Commits

Author SHA1 Message Date
Jan Bartel 6ff5a3a7e9 Issue #1017 2016-10-20 12:38:05 +11:00
Jan Bartel 0a19c13570 Issue #1014 2016-10-19 14:11:16 +11:00
Simone Bordet dc5edcac74 Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-10-17 19:24:37 +02:00
Simone Bordet be93a1ff31 Fixes #292 - NPE in SslConnectionFactory newConnection.
ConnectionFactories may be added after the connector is started.
As such there is always the possibility that creating a new
connection fails because there is no available ConnectionFactory for
that protocol.

Rather than failing with an IllegalStateException instead of a
NullPointerException, we now check at connector start whether the
SslConnectionFactory is properly configured.
This should catch 99% of the cases, where the connector is
misconfigured, reporting the error earlier and explicitly
(connector does not start) rather later and hidden (connection cannot
 be created).
2016-10-17 19:14:01 +02:00
Simone Bordet ad8bdde4f3 Code cleanup. 2016-10-17 18:51:28 +02:00
Greg Wilkins 81d98407a4 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-10-17 12:01:45 +11:00
Greg Wilkins 6adfc324ad remove blockfor #1009 2016-10-17 11:43:58 +11:00
Joakim Erdfelt ade14ba34b Updating to version 9.3.14-SNAPSHOT 2016-10-14 11:33:51 -07:00
Joakim Erdfelt c3a78e70a8 Updating to version 9.3.13.v20161014 2016-10-14 10:39:37 -07:00
Greg Wilkins cb74cb8c1f fixed racew in unit test 2016-10-14 15:40:11 +11:00
Greg Wilkins f47cc6cbc9 fixed racew in unit test 2016-10-14 08:13:59 +11:00
Simone Bordet 7e2f991cc4 Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-10-13 11:59:02 +02:00
Simone Bordet 12e907d162 Fixes #999 - Create a Flight Recorder module. 2016-10-13 11:57:37 +02:00
Greg Wilkins c7b833c595 Issue #984 Improve module listing
Changed |= to ?= for optional property set
2016-10-13 16:37:24 +11:00
Greg Wilkins d5a4f0f6d4 Issue #984 Improve module listing
Simplified start.jar ini mechanism
updated logging modules to have file handlers
2016-10-13 16:37:24 +11:00
Greg Wilkins 9d475a624b Normalize tags #998 2016-10-13 10:06:17 +11:00
Jan Bartel 6e19bddc2d Issue #993 2016-10-11 17:59:38 +11:00
Greg Wilkins 0142bcde8f Issue #984 Improve module listing
renamed verbose to internal module tag
2016-10-07 20:27:38 +11:00
Simone Bordet f2061cbe60 Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-10-06 16:33:58 +02:00
Greg Wilkins 91e9e7b76a Issue #984 Improve module listing 2016-10-06 17:01:08 +11:00
Greg Wilkins afb750515e Issue #963 Location based classpath pattern (#978)
Issue #963 location based white/black classpath lists
- removed outdated annotations/ClassNameResolver
- implemented loadedFrom in TypeUtil
- created a growable Trie
- reimplemented classpathpattern
- simplified OSGi classloading
2016-10-06 10:47:09 +11:00
Simone Bordet 85f50da053 Code cleanups. 2016-10-05 09:15:33 +02:00
Greg Wilkins 4410610ef3 javadoc 2016-10-05 13:50:12 +11:00
Greg Wilkins 98bb582d45 Jetty 9.4.x http interceptor #382
* Issue #382 Request compression

Added identity HttpInput.Interceptor
Moved GZIPContentDecoder to jetty-http
Reworking interceptor and GZIPContentDecoder to avoid data copies
Completed and tested GZIPContentDecoder
Implemented GzipHttpInputInterceptor
updated GzipHandler.java
updated gzip module
use common GZIP decoder
Gzip Bomb
handle read() after empty interception
2016-10-05 13:49:20 +11:00
Jesse McConnell 863913b64e set for dev 2016-09-30 19:05:47 +00:00
Jesse McConnell b91cc8a4ea set for release 2016-09-30 18:01:20 +00:00
Simone Bordet 285f283e5b Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-30 18:09:58 +02:00
Simone Bordet 38d48395b0 Issue #918 - Support certificates hot reload.
Introduced SslContextFactory.reload(Consumer) to perform atomic
reload of SslContextFactory.
2016-09-30 17:48:09 +02:00
Simone Bordet 7e376fd9da Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-28 11:53:54 +02:00
Simone Bordet 0f97c3df5d Fixes #966 - Remove usages of ConcurrentArrayQueue. 2016-09-28 11:40:39 +02:00
Simone Bordet efe339e246 Code cleanup. 2016-09-28 11:40:39 +02:00
Jan Bartel 6c1f0a6b4a Issue #954 2016-09-28 18:30:33 +10:00
Simone Bordet 716c595cdf Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-26 12:20:22 +02:00
Simone Bordet ad00e19328 Issue #960 - Async I/O spin when reading early EOF.
Now testing the return value of onEarlyEOF() and calling the
application when the value is true.
This means that the application can now consume the early EOF and the
spin does not happen.
2016-09-26 11:48:33 +02:00
Jan Bartel 4c131561de Issue #944 2016-09-22 18:18:40 +10:00
Jan Bartel 3359bc8548 Issue #945 2016-09-22 18:05:49 +10:00
Jan Bartel 892da7b2da Issue #927
Remove debug println.
2016-09-22 17:16:40 +10:00
Jan Bartel bc4e65ebf2 Issue #941
Return scavenge to on-by-default; make value for scavenge property in session.mod same as default in id-manager.xml.
2016-09-22 17:10:30 +10:00
Jan Bartel 133d584b94 Issue #941
Make scavenger thread able to be disabled.
2016-09-22 17:10:30 +10:00
Jan Bartel a21434f289 Issue #914
Expose SessionHandler in SessionContext.
2016-09-21 15:25:01 +10:00
Greg Wilkins b164298b99 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-21 14:01:27 +10:00
Greg Wilkins 4fca2bf8af Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x 2016-09-21 14:00:49 +10:00
Greg Wilkins 534fb8c427 Reset Response buffer size #940 2016-09-21 12:37:58 +10:00
Joakim Erdfelt b0880f617a Merge branch 'release-9.3.12' into jetty-9.3.x 2016-09-20 14:39:08 -07:00
Simone Bordet ef9b887ab5 Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-16 11:35:33 +02:00
Simone Bordet 9848b33ec9 Fixes #915 - The jetty-maven-plugin:stop goal doesn't stop everything completely.
Closing the serverSocket when exiting ShutdownMonitorRunnable.
2016-09-16 11:33:21 +02:00
Simone Bordet f7816a6ea4 Improved logging. 2016-09-16 10:31:01 +02:00
Jan Bartel a825bab8ca Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-16 11:33:58 +10:00
Jan Bartel 5efb6d698a Merge pull request #928 from nevafuse/patch-1
add schema variables
2016-09-16 10:52:01 +10:00
nevafuse 0634882b7c prevent needing analyze privilege when using getIndexInfo
Signed-off-by: nevafuse <nevafuse@gmail.com>
2016-09-15 16:41:33 -04:00
nevafuse 459abd144e add schema variables
Signed-off-by: nevafuse <nevafuse@gmail.com>
2016-09-15 16:41:11 -04:00
Joakim Erdfelt 6cf10172ca Updating to version 9.3.13-SNAPSHOT 2016-09-15 07:34:52 -07:00
Joakim Erdfelt 8b35fdc5a5 Updating to version 9.3.12.v20160915 2016-09-15 06:48:16 -07:00
Simone Bordet 14e000428f Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-14 17:26:00 +02:00
Simone Bordet cb89ea8466 Fixes #131 - Improve Connector Statistic names and values.
Removed references to deprecated ConnectorStatistic in favor of
ConnectionStatistics.
2016-09-14 17:24:45 +02:00
Simone Bordet 5ec60a30ed Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-14 16:44:39 +02:00
Simone Bordet 2111775cb4 Fixes #131 - Improve Connector Statistic names and values. 2016-09-14 14:01:30 +02:00
Greg Wilkins ea08a6db72 Issue #911
Fix spec compliance, return HttpServletRequest.getContextPath as encoded.
2016-09-14 18:28:02 +10:00
Jan Bartel 79f276857c Issue #914
Regularize jdbc session property names.
2016-09-14 16:41:50 +10:00
Jan Bartel beecdd0a0d Issue #914
Regularize property names for file session store.
2016-09-14 16:05:58 +10:00
Greg Wilkins b6a39cf7d3 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-09 10:13:38 +10:00
Greg Wilkins 68340a94d0 Issue #911 encode requestURI in startAsync(req,res) 2016-09-09 10:12:08 +10:00
Greg Wilkins ab579d542b Issue #911 encode requestURI in startAsync(req,res) 2016-09-09 10:12:08 +10:00
Greg Wilkins e9613785f4 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-09 09:21:13 +10:00
Greg Wilkins 4312995d89 Issue #911 encode requestURI in startAsync(req,res) 2016-09-09 09:19:01 +10:00
Greg Wilkins ebec811427 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-09 09:10:48 +10:00
Greg Wilkins 1247380976 Issue #911 encode requestURI in startAsync(req,res) 2016-09-09 09:09:51 +10:00
Joakim Erdfelt fb7da26ad2 Updating to version 9.2.20-SNAPSHOT 2016-09-08 13:04:11 -07:00
Joakim Erdfelt 7b94bc32f4 Updating to version 9.2.19.v20160908 2016-09-08 12:11:44 -07:00
Greg Wilkins a6512c991b Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-08 15:03:10 +10:00
Greg Wilkins f7d017ca1a Issue #911 encode requestURI in startAsync(req,res) 2016-09-08 15:00:54 +10:00
Jan Bartel 3bb9fe86d3 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-08 14:26:45 +10:00
Jan Bartel 09da3248e5 Issue #909 2016-09-08 14:24:29 +10:00
Greg Wilkins f703d2ad38 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-08 10:39:27 +10:00
Greg Wilkins 28ca70378e Issue #844 Thread Limit Handler (#857)
* Issue #844 DoS Handler

First cut at implementation of Thread limiting handler for #844

* Added modules, simplified API, added IP exemptions

* fixed xml

* fixed preallocation

* simplified code
2016-09-08 08:49:03 +10:00
Simone Bordet d116385d6a Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-05 23:28:35 +02:00
Simone Bordet 9d72e0d94e Improved JMX attributes. 2016-09-05 23:28:15 +02:00
Simone Bordet beb5c52609 Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-05 23:15:26 +02:00
Simone Bordet 08bf15634a Updated copy constructor. 2016-09-05 23:14:26 +02:00
Simone Bordet e21ad09e3a Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2016-09-05 23:09:12 +02:00
Simone Bordet 89b20b4692 Merged branch 'jetty-9.3.x-845'. 2016-09-05 21:36:04 +02:00
Simone Bordet 705a68dfc4 Issue #845 - Improve blocking IO for data rate limiting.
Moved tests to run HTTP and HTTP/2 tests, and added more test cases.
2016-09-05 19:13:05 +02:00
Greg Wilkins 25574d2843 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-02 14:57:44 +10:00
Greg Wilkins 1f7c5a5b20 Issue #898
Added addCSV method to HttpFields to more efficiently add values to a CSV field without duplicates.
Improved usage of QuotedCSV and removed older parsing

Used new method in GazipHttpOutPutInterceptor to avoid duplicate Vary fields
2016-09-02 14:57:13 +10:00
Greg Wilkins 0c6c11d79d Issue #897
If a request is not handled within the scope of the GzipHandler, the gzip interceptor is removed so it cannot be used by any subsequent handlers.
If the request is handled, it is left in place to be used by any async handling.
2016-09-02 12:14:23 +10:00
Greg Wilkins 718c8e2444 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-09-01 16:44:03 +10:00
Greg Wilkins a799b21eb3 fixed merge 2016-09-01 16:41:49 +10:00
Greg Wilkins c2621bcad6 Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x 2016-09-01 16:29:00 +10:00
Greg Wilkins f7c32c5fc7 Issue #882 IPv6 map
The new IPv6 capable InetAddressSet has been added as an alternative for IPAddressMap
The IncludeExclude class has been generalized to IncludeExcludeSet that can have a different
Predicate type to the set type and this works well with InetAddressSet.

However for #881 and #883, this may not be enough and Map semantics may need to be added.

The IPAccessHandler also has path mappings supported, which could need the map semantics, so for now a new InetAccessHandler has been
added that just uses an IncludeExcludeSet<InetAddressSet>, but this has yet to be tested.

The AbstractProxyServlet uses a host:port combinations, so IncludeExcludeSet<InetAddressSet> is not directly applicable.
2016-09-01 16:12:35 +10:00
Greg Wilkins 5ab9846ac5 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2016-08-31 20:32:54 +10:00
Greg Wilkins f856107301 Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x 2016-08-31 19:05:57 +10:00
Greg Wilkins 0155ae761c Issue #880 Improve IPv6 support
For #880 added the HostPort class, which was used to fix #878, #879, #884 and #886
2016-08-31 16:46:11 +10:00
Jesse McConnell 174a3bc9be merge 9.3.x 2016-08-26 14:35:49 -05:00
Simone Bordet 0322a1640d Code cleanup. 2016-08-26 12:49:31 +02:00
Simone Bordet 2389b65578 Code cleanup. 2016-08-26 10:45:04 +02:00
Joakim Erdfelt 4c5d0319b1 Minor code cleanup
+ Changed variable from rfc7230 to rfc7239
+ Javadoc updates
2016-08-25 11:40:51 -07:00
Jan Bartel 9aa0371188 Fix javadoc comments 2016-08-18 13:23:38 +10:00
Jan Bartel 4ac821d582 Updates to session javadoc 2016-08-18 11:20:45 +10:00
Greg Wilkins 5528dc60f5 Issue #845 data rate limits
Converted to long minimum data rather than the numerically sensitive data rate.
2016-08-17 17:24:57 +10:00
Greg Wilkins 19a20a486d ssue #845 data rate limits
double
2016-08-17 07:11:36 +10:00