Commit Graph

1808 Commits

Author SHA1 Message Date
Greg Wilkins b947b48446
Use lowercase for charsets #11741 (#12347)
Fix #11741 as per the WhatTFWG recommendations, use lower case for charset names.
Took the opportunity for some minor optimizations:
 + use the already made HttpField instance in MimeTypes.Type rather than create a new one in the HttpParser.CACHE
 + keep the MimeType.Type associated with the pre encoded Content-Type fields
2024-10-16 15:53:59 +11:00
gregw ad25193c61 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x
Signed-off-by: gregw <gregw@webtide.com>
2024-10-16 07:45:49 +11:00
Greg Wilkins 50bced4c35
Fix #12356 Do not send keep-alive when not persistent (#12375)
Fix #12356 Do not send keep-alive when not persistent

---------

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2024-10-16 07:39:27 +11:00
Lachlan d43241ba3e
Merge pull request #12359 from jetty/jetty-12.1.x-11358-websocketTimeouts
Issue #11358 - Add API to handle timeouts in WebSocket
2024-10-15 22:52:30 +11:00
Lachlan Roberts a3b6004e9c
PR #12359 - changes from review
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-10-15 14:52:43 +11:00
Simone Bordet 93569eee0d
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-10-14 17:28:02 +02:00
Simone Bordet 9c7d1fdb67 Fixes #12350 - LdapLoginModule support for Jetty Password obfuscation.
Now using Credential.getCredential() to mangle the bind password provided in the options.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-10-14 18:27:05 +03:00
Simone Bordet e4e0bbfd66
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-10-10 17:06:02 +02:00
Simone Bordet f2c70fb8f3
Fixes #12348 - HttpClientTransportDynamic does not initialize low-level clients. (#12349)
Fixed initialization for HTTP/2 and HTTP/3.
Fixed test that was relying on default configuration, rather than explicit.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-10-10 17:03:39 +02:00
Lachlan Roberts 9c6eba368e
PR #12359 - fix checkstyle error
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-10-10 08:33:34 +11:00
Lachlan Roberts cb1a880dc4
Issue #11358 - Add API to handle timeouts in WebSocket
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-10-09 23:41:28 +11:00
Greg Wilkins ea258a3621
Improve handling of idle timeouts when the handling itself is idle (#12301)
Always execute (without queuing) the task to call error listeners
2024-10-09 21:15:48 +11:00
Ludovic Orban f71e344766 #12330 make sure the delegate callback has been failed before SendCallback's iteration returns
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-10-08 10:21:02 +02:00
Jan Bartel f8ff191872
Issue #12339 change SessionCache default flushOnResponseCommit=true (#12344)
* Issue #12339 change SessionCache default flushOnResponseCommit=true
2024-10-08 16:56:34 +11:00
Lachlan Roberts cbfd6b3c2c
Issue #12341 - only send QpackEncoder instructions if change in capacity
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-10-03 13:54:39 +10:00
Ludovic Orban f5b24946ab
Fix flaky assertions in `ConnectionPoolTest` (#12328)
* #12327 Fix flaky assertions

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-10-02 20:19:02 +02:00
Joakim Erdfelt e9d61a1686
Updating to version 12.0.15-SNAPSHOT 2024-09-30 09:42:49 -05:00
Joakim Erdfelt e77516598a
Updating to version 12.0.14 2024-09-30 09:22:20 -05:00
Joakim Erdfelt 82e6bace2f
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-30 07:09:43 -05:00
Joakim Erdfelt e376b1a951
HttpURI.Mutable path changes should clear out any existing path violations before parsing the new path. (#12306)
* HttpURI.Mutable path changes should clear out any existing path violations before parsing the new path.

Fixes: #11298
2024-09-30 07:09:21 -05:00
Jan Bartel 2f20d1f289 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-30 17:26:31 +10:00
Jan Bartel 97ff5486ff
Jetty 12.0.x 12191 alt debug listener (#12254)
* Issue #12191 reinstate debug listener modules

---------

Co-authored-by: Greg Wilkins <gregw@webtide.com>
2024-09-30 17:15:20 +10:00
Simone Bordet ce5518e257
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 18:13:33 +02:00
Simone Bordet 11476a9f1c Fixes #7515 - Connection limit problem for "onAccepting" connections.
* Fixed `ManagedSelector.Accept` to emit the event "accept failed" when closed.
* Fixed `ConnectionLimit` to close connections that exceed the maximum (may happen when the connector is configured with acceptors=0).
* Added test cases.
* Added documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 19:12:52 +03:00
Simone Bordet 269af78a3a
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 18:12:15 +02:00
Simone Bordet bcadd0a515 Fixes #12265 - Jetty 12.0.13 fails to start when the threadpool-all-virtual module is enabled.
Added missing constructor and test case.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 19:11:28 +03:00
Simone Bordet 29aa1541b6
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 17:55:34 +02:00
Simone Bordet b371002594
Issue #929 - Implement a utility class to save large downloads to a file.
* PathResponseListener now yields a PathResponse record with Path and Response.
* Code cleanups.
* Simplified test cases.
* Added documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 17:16:20 +02:00
Oleksandr Krutko 03af351b14
Fixes #929 - Implement a utility class to save large downloads to a file.
Introduced `PathResponseListener`, and related test cases.

Signed-off-by: Oleksandr Krutko <alexander.krutko@gmail.com>
2024-09-27 17:14:25 +02:00
Joakim Erdfelt f4c38c433e
Issue #11092 - Allow MetaInfConfiguration parsing of `java.class.path` to support globs (#12287)
* Issue #11092 - Allow MetaInfConfiguration parsing of java.class.path to support globs
* Work with unwrapped URIs for uriPredicate (and test assertion)
2024-09-26 06:40:29 -05:00
Robbie 8aa9c8b011
Use sessionRequest for wrapping HTTP stream instead of original Request. (#12303)
Add SessionHandlerTest case to ensure that flushOnResponseCommit is not broken
in the future.

Signed-off-by: Robert B. Langer <robertlanger03@gmail.com>
2024-09-26 13:36:10 +10: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
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
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
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
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
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