Commit Graph

17448 Commits

Author SHA1 Message Date
Lachlan dbe340a20e Issue #300 - Implement Deflater Pool (#2784)
Issue #300 - Implement Deflater Pool

Removed the ThreadLocal pooling of deflaters in GzipHandler in favour of a new DeflaterPool class
GzipHttpOutputInterceptor.GzipBufferCB now recycles the Deflater in onCompleteFailure()
added benchmark for the DeflaterPool

allow negative capacity to mean no limit on the pool size
added mod file and xml changes

replace setDeflaterPool with newDeflaterPool

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2018-08-21 10:32:34 +10:00
Simone Bordet bc78778f02 Issue #2836 - Sequential HTTPS requests may not reuse the same connection.
WIP.
Tentative fix to avoid that onFillable() is called after the exchange
is completed.
Now DecryptedEndPoint.fillInterest.fillable() is called before other
methods that may advance the exchange processing.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-20 23:01:43 +02:00
Joakim Erdfelt a3fe88cf1f Removing invalid (and ignored) test from Issue #1175
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-08-20 14:23:17 -05:00
Simone Bordet d8e0f8df12 Issue #2832 - Wrong initialization of HTTP/2 UnknownBodyParser.
Fixed parser initialization.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-19 18:04:47 +02:00
Simone Bordet 467bbbe1f9 Issue #2722 - Improve configurability for SETTINGS frames.
Added one more test.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-19 16:29:30 +02:00
Simone Bordet 1f785eed28 Fixes #2832 - Wrong initialization of HTTP/2 UnknownBodyParser.
Now UnknownBodyParser is correctly initialized in Parser.init().

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-19 16:28:15 +02:00
Simone Bordet d3e75c5936 Fixes #2828 - AbstractHTTP2ServerConnectionFactory concurrent connect low performance.
Now HTTP/2 sessions are not added to the Jetty component tree,
but rather just held by HTTP2SessionContainer that is added to
the Jetty container tree at startup.

HTTP2SessionContainer uses a concurrent Set to hold HTTP/2 sessions
to have good add/remove performance.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-19 14:54:14 +02:00
Greg Wilkins 04cbb13ad3 Issue #2787 BadMessage if bad query detected in dispatcher
Signed-off-by: Greg Wilkins <gregw@webtide.com>
2018-08-18 11:52:28 +10:00
Simone Bordet ddd80deeb9 Improved logging and exception handling.
Now IllegalStateExceptions are thrown with a message.
Methods needsFillInterest() and onIncompleteFlush() are now wrapped in
try/catch to make sure the connection is closed in case of exceptions.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-17 15:39:47 +02:00
olivier lamy a3451c9d6e sync jmh Jenkinsfile
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-08-17 08:06:40 +10:00
Joakim Erdfelt ce6bc23ccb Issue #2817 - Client SSL Defaults
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-08-16 14:35:39 -05:00
Joakim Erdfelt c640f4a4d5 Issue #2811 - Dump fix JreDisabled:java.security to JVM:disabled
+ ensuring SLOTH fix still works with updated testcase
+ Dump detection of JreDisabled:java.security only checked
  default SSLEngine.enabledCipherSuites
  New implementation changes meaning to be more general
  JVM:disabled (as in not selected by default), and
  only reports it as disabled in the dump if not specifically
  included from the SSLEngine.supportedCipherSuites via
  the SslContextFactory.includedCipherSuites configuration

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-08-16 13:49:28 -05:00
Simone Bordet 13792a65d2 Improved logging after unwrap().
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-16 20:49:07 +02:00
Greg Wilkins babdd5d4b7 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2018-08-16 08:44:07 +10:00
Greg Wilkins 2c0557b1ae VERSION.txt cleanups
Signed-off-by: Greg Wilkins <gregw@webtide.com>
2018-08-16 08:33:29 +10:00
Jan Bartel 23bf2504fe
Issue #2720 Ensure standard jetty properties available in jetty-env.xml (#2806)
Signed-off-by: Jan Bartel <janb@webtide.com>
2018-08-16 08:29:12 +10:00
Jan Bartel 9fcb5ef9fb
Jetty 9.4.x 2745 jdbcsessiondatastore nvarchar (#2783)
* Issue #2745 Allow string type to be explicitly set for JDBCSessionDataStore

Signed-off-by: Jan Bartel <janb@webtide.com>
2018-08-16 08:28:32 +10:00
WalkerWatch a6c071e5e9 Updating module listing. Resolves #2501 2018-08-15 10:17:38 -04:00
Greg Wilkins a315d5464f
Unwrap ServletException #2787 (#2790)
* Issue #2787 Unwrap ServletException
* Do not unwrap UnavailableException
* unwrap to specific targets
* fixes from review
* fixes after merge

Signed-off-by: Greg Wilkins <gregw@webtide.com>
2018-08-15 12:51:27 +10:00
Greg Wilkins e5f0531db0 fixes after merge
Signed-off-by: Greg Wilkins <gregw@webtide.com>
2018-08-15 11:59:15 +10:00
Greg Wilkins 9ff37122db Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2018-08-15 11:58:52 +10:00
Greg Wilkins 52de1965b6
Unwrap ServletException 9.3 #2787 (#2789)
* Issus #2787 unwrap ServletException

Signed-off-by: Greg Wilkins <gregw@webtide.com>

* Do not unwrap unavailable exception

Signed-off-by: Greg Wilkins <gregw@webtide.com>

* unwrap to specific targets

Signed-off-by: Greg Wilkins <gregw@webtide.com>

* fixes from review

Signed-off-by: Greg Wilkins <gregw@webtide.com>
2018-08-15 11:43:52 +10:00
Roland Grunberg 33228edc7d Issue #2794 - Add profile for jar signing with eclipse-jarsigner-plugin. (#2802)
Create a profile, 'eclipse-sign', that is enabled when the property by
the same name is defined, in order to handle the signing of Eclipse
bundles by the configured signing service.

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2018-08-15 09:19:00 +10:00
Simone Bordet 03af18ca82
Merge pull request #2797 from eclipse/jetty-9.4.x-2796-max_concurrent_streams_local_timeout
Fixes #2796 - Max local stream count exceeded when request fails.
2018-08-14 16:21:03 +02:00
Simone Bordet dd428b24a7 Cosmetics and removed unused code.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-14 15:22:19 +02:00
Simone Bordet 1e439535c1 Cosmetics.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-14 15:18:49 +02:00
Simone Bordet 35541d0c1e Fixes #2796 - Max local stream count exceeded when request fails.
Now releasing the connection only after the stream has been reset, so
we are sure that the stream has been closed and its count decremented.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-08-13 11:44:57 +02:00
Greg Wilkins 5ee856c0c1 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2018-08-12 16:59:33 +10:00
Greg Wilkins b3d1c240e1 fixed VERSION.txt for 9.3.18
Signed-off-by: Greg Wilkins <gregw@webtide.com>
2018-08-12 16:59:03 +10:00
Joakim Erdfelt a107ac3b8a Ensure Client ContainerProvider behavior is reset properly.
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-08-10 11:14:10 -05:00
Joakim Erdfelt 88b1a3d3d7
Merge pull request #2793 from seratch/jetty-9.4.x-typo
Fix typos detected by github.com/client9/misspell
2018-08-10 11:09:52 -05:00
Kazuhiro Sera 96218e8bc4 Fix typos detected by github.com/client9/misspell
Signed-off-by: Kazuhiro Sera <seratch@gmail.com>
2018-08-10 23:52:16 +09:00
Greg Wilkins 82264bccb1
Merge pull request #2782 from lachlan-roberts/jetty-9.4.x-321-JaspiAuthenticatorFactory-DeadCode
Issue #321 - jaspi authenticator factory dead code
2018-08-10 12:44:07 +10:00
Roland Grunberg bd38bc905b Issue #2639 - Add profile for jar signing with eclipse-jarsigner-plugin. (#2786)
Create a profile, 'eclipse-sign', that is enabled when the property by
the same name is defined, in order to handle the signing of Eclipse
bundles by the configured signing service.

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2018-08-09 22:12:03 +10:00
Lachlan a75fb6be17
Issue #321 - DeadCode JaspiAuthenticatorFactory.findServerName Server param not used
changes from review
2018-08-09 14:19:04 +10:00
Simone Bordet ee68e7fdec
Merge pull request #2769 from eclipse/jetty-9.4.x-issue-2767-websocket-client-default-policy
Issue #2767 - WebSocket Policy on JSR356 ClientContainer not represented correctly
2018-08-08 13:02:09 +02:00
WalkerWatch ab3f4832ad Merge branch 'jetty-9.4.x' into jetty-10.0.x 2018-08-07 21:47:02 -04:00
WalkerWatch e485b8d78d Fixing second typo for #2781 2018-08-07 21:45:38 -04:00
WalkerWatch b249021b6d Merge branch 'jetty-9.4.x' into jetty-10.0.x 2018-08-07 21:18:25 -04:00
WalkerWatch 997106b5d4 Resolves #2781 - Typo in javadoc 2018-08-07 21:17:29 -04:00
lachan-roberts e285bc52c4 Issue #321 - DeadCode JaspiAuthenticatorFactory.findServerName Server param not used
added back a deprecated findServerName method with the previous signature which calls the new method

Signed-off-by: lachan-roberts <lachlan@webtide.com>
2018-08-08 11:06:00 +10:00
Joakim Erdfelt d11d611542 Merge branch 'jetty-9.4.x' of github.com:eclipse/jetty.project into jetty-9.4.x 2018-08-07 15:59:55 -05:00
Joakim Erdfelt 7ad182fbcf Issue #2780 - making servlet output reliable for EOL 2018-08-07 15:59:42 -05:00
Olivier Lamy c8fe66dd3a
#2778 upgrade h2spec-maven-plugin to 0.4 (#2779)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-08-07 21:17:07 +10:00
Lachlan Roberts 3029f30d2b Issue #321 - DeadCode JaspiAuthenticatorFactory.findServerName Server param not used
removed the subject parameter and instead get the subject from findServiceSubject(server)
contextPath String was not being used

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2018-08-07 13:37:09 +10:00
Jan Bartel 88d1ead25b
Issue #2754 Only instantiate listener if it will be used (#2763)
Signed-off-by: Jan Bartel <janb@webtide.com>
2018-08-07 12:23:09 +10:00
Greg Wilkins 9dd2369a53
Merge pull request #2752 from lachlan-roberts/jetty-9.4.x-2739-AuthenticationProtocolHandler
Issue #2739 - AuthenticationProtocolHandler Multiple Challenge Pattern
2018-08-07 10:45:43 +10:00
Joakim Erdfelt 9a4b780781 Issue #2767 - WebSocket Policy on JSR356 ClientContainer not represented correctly
+ Added Client unit tests for large messages
+ Re-enabled Server unit tests for large messages
+ Added more Server unit tests for large messages
+ In case of JSR356 Server with policy (and Behavior of SERVER)
  is controlling javax.websocker.server.ServerContainer
  and a user chooses to use that ServerContainer to
  connect to a remote websocket endpoint (using ServerContainer
  as a client), then the policy is delegated down to the
  Client Container with a different behavior (only).

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-08-06 15:21:22 -05:00
Joakim Erdfelt 9390c2df3f Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-10.0.x 2018-08-06 09:04:58 -05:00
Simone Bordet 8eb11a56c8 Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'. 2018-08-06 15:00:16 +02:00