Commit Graph

30391 Commits

Author SHA1 Message Date
Joakim Erdfelt 1575b0a904
Merge remote-tracking branch 'origin/jetty-12.1.x' into fix/12.1.x/dynamic-compression-handler 2024-09-26 14:40:16 -05:00
Joakim Erdfelt b46d075ad3
Adding CompressionConfig.Builder.from(MimeTypes) 2024-09-26 12:59:57 -05:00
Joakim Erdfelt 38d501a698
Splitting mimeTypes and httpMethod into compress/decompress configs 2024-09-25 16:37:59 -05:00
Joakim Erdfelt ba3e84aae6
Fixing DecompressionRequest 2024-09-25 15:09:35 -05:00
Simone Bordet 32156caedc
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-25 17:36:53 +02:00
Simone Bordet af3ac05806
Fixes #7951 - OutputStreamContentProvider blocks forever during an HTTP2 upload after idle timeout is reached. (#12312)
Improved javadocs.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-25 17:34:42 +02:00
gregw 73d2b4ddf1 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x
# Conflicts:
#	jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletContextHandler.java
2024-09-25 15:00:08 +10:00
Jan Bartel 04fd45d94e
Issue #12309 replaced transient keyword for SessionAuthentication.session (#12310) 2024-09-25 14:31:17 +10:00
gregw 018647d873 Added test for #11298 2024-09-25 10:42:16 +10:00
Greg Wilkins 18b9782550
Avoid list copy on reverse iteration (#12297)
This reverts/modified parts of commit 115ee1cf39.

Co-authored-by: Simone Bordet <simone.bordet@gmail.com>

---------

Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-25 07:43:01 +10:00
gregw 7367bce760 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-24 14:41:17 +10:00
Niklas Keller 1d9f10871a
Issue #12047 allow disabling opening connectors before starting (#12049) 2024-09-24 14:40:16 +10:00
Joakim Erdfelt f50efbe9e1
WIP: method config testing 2024-09-23 15:47:56 -05:00
Joakim Erdfelt bc6748df42
new compressEncodings config tests 2024-09-23 14:04:49 -05:00
Joakim Erdfelt 78d6540237
Fixing comment on testMimeTypesConfig 2024-09-23 14:00:35 -05:00
Joakim Erdfelt 85320ea03e
Improve mimeTypes config tests 2024-09-23 13:30:27 -05:00
Joakim Erdfelt cee6f6c3fc
new mimeTypes config tests 2024-09-23 13:27:02 -05:00
Joakim Erdfelt 742910ab11
Rework compressPath tests 2024-09-23 13:11:51 -05:00
Ludovic Orban cbc3ac01f2 #11841 add reproducer using jetty client
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-09-23 13:27:26 +02:00
Simone Bordet 3b1f38e592
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 16:00:12 +02:00
Simone Bordet 115ee1cf39
Fixes #12289 - Improve ConcurrentPool concurrency. (#12290)
A call to `sweep()`, although protected by the lock for concurrent calls to `reserve()`, may be concurrent with `remove(Entry)`.

`remove(Entry)` in turn calls `entries.remove(Object)`, so that the concurrent iteration in `sweep()` over `entries` fails with an `ArrayIndexOutOfBoundsException`.

Now using the bulk `entries.removeIf(Predicate)` method in `sweep()`, so that sweeping is atomic with respect to `entries.remove(Object)`.

Fixed other occurrences of manual iteration over CopyOnWriteArrayList that may be concurrent with removals.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 15:50:39 +02:00
Simone Bordet 838b97d5d2
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 15:43:50 +02:00
Simone Bordet 9c342637cc Fixed #12284 - Excessive heap consumption by SSLSessionImpl by Jetty Server with TLS 1.3 and long-lived client.
Now `SslSessionData` is stored as a field, rather than in the `SSLSession` as an attribute.
This implies a little more cost to create the `SslSessionData` per connection rather than per `SSLSession`, but it should be negligible.

Now `SslSessionData` cannot be retrieved as a `SSLSession` attribute, but we have explicit APIs to retrieve it, so it should not be a problem.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 16:41:15 +03:00
Joakim Erdfelt c92e9b1eb1
Adding compressPath.exclude tests 2024-09-19 16:07:30 -05:00
gregw acb30ab98a Merge branch 'jetty-12.0.x' into jetty-12.1.x 2024-09-19 09:41:12 +10:00
Jan Bartel 6f83639d32
Issue #12279 ensure handlers added correctly for maven plugin (#12282)
* Issue #12279 ensure handlers added correctly for maven plugin
2024-09-19 09:38:08 +10:00
Jan Bartel 41333a7712
Issue #12255 Dump CookieConfig (#12257) 2024-09-18 06:57:30 -05:00
gregw a6125e40f0 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-18 07:17:52 +10:00
Greg Wilkins dc43f3d498
Optimize request buffer release #12239 (#12240)
Release request buffer before handling when there is no content

---------

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-18 07:11:32 +10:00
Olivier Lamy db1c878cbc
Merge pull request #12280 from jetty/jetty-12.1.x-test-distribution-cleanup
Jetty 12.1.x test distribution cleanup merge
2024-09-17 20:50:01 +10:00
Olivier Lamy a9513c0ae8
log to search for restart can be different depending on eexx
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 20:12:43 +10:00
Olivier Lamy 4a0ee278c1
fix logging
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 19:54:56 +10:00
Olivier Lamy fb8e237dca
need this dependency
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 19:08:41 +10:00
Olivier Lamy b89f767be6
needed dependencies
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 18:38:48 +10:00
Olivier Lamy 0c31ab7ca6
checkstyle
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 18:24:53 +10:00
Olivier Lamy efcddd330a
checkstyle
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 18:22:25 +10:00
Olivier Lamy b152630eb6
spotless
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 17:50:46 +10:00
Olivier Lamy ac18df08af
restore jetty-test-common as it is used in multiple places
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 16:55:16 +10:00
Olivier Lamy 6f69383188
fix merge
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 16:20:31 +10:00
Olivier Lamy dd172f58db
Merge branch 'jetty-12.0.x' into jetty-12.1.x 2024-09-17 16:08:57 +10:00
Olivier Lamy e52bd7a9c7
Jetty 12.0.x Simplify tests with OpenId by using an exising openid provider and avoid extra not necessary maven modules (#12274)
* use keycloak as openid provider for testing
* merge all test-distribution into a single one

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 15:08:49 +10:00
Joakim Erdfelt 381d0307cb
Fixing checkstyle 2024-09-16 12:42:02 -05:00
Simone Bordet 9eaedb04be
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-16 10:05:16 +02:00
Simone Bordet 8c943c4bfb Issue #12256 - Configuring Virtual Thread executor in Jetty Http client makes my Spring Boot app freeze
* Defaulted the number of selectors to 1 in HttpClientTransportOverHTTP, to align with ClientConnector.
* Improved virtual thread documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-16 11:01:06 +03:00
Ludovic Orban 76962e966a
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-16 09:32:11 +02:00
Ludovic Orban ceee65a7e5 #12268 do not rely on time
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-09-16 09:11:54 +02:00
Ludovic Orban 2018c439b6 #12268 reset _iterate flag when another processing is scheduled
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-09-16 09:11:54 +02:00
Jan Bartel 5105afafa4
Issue #12241 Restore SameSite config as session cookie comment. (#12263)
* Issue #12241 Restore SameSite config as session cookie comment in ee8/9.
2024-09-16 08:48:06 +10:00
Joakim Erdfelt 4bc44005a2
WIP: introducing CompressionConfig.Builder 2024-09-12 18:04:44 -05:00
Joakim Erdfelt c8ff0fba86
Cleanup code 2024-09-12 14:02:54 -05:00