Commit Graph

30203 Commits

Author SHA1 Message Date
Lars Krog-Jensen 6868c34bdf Issue #12185 white space formatting and increase delay to avoid flaky tests 2024-08-22 11:28:34 +02:00
Lars Krog-Jensen 7aa4c79ab7 Issue #12185 code formatting 2024-08-22 10:58:51 +02:00
Lars Krog-Jensen 497da2da0a Issue #12185 implementation/test of max suspended requests in QoSHandler 2024-08-22 10:32:29 +02:00
Jan Bartel 2a90cabec4 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-08-22 18:20:38 +10:00
Jan Bartel 36ec04f92e
Fix order of jetty.http.port property for jetty maven plugin (#12183) 2024-08-22 18:19:44 +10:00
Lachlan Roberts 11509c2d58
update poms to 12.1.0-SNAPSHOT versions
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-22 14:07:56 +10:00
Lachlan Roberts 8b21725822
update supported versions in documentation to 12.1+
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-22 13:21:03 +10:00
Lachlan Roberts 25cf822e3a
Merge remote-tracking branch 'origin/jetty-12.0.x-SignInWithEthereum' into jetty-12.1.x 2024-08-22 13:19:51 +10:00
Lachlan Roberts b07a8c0104
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-SignInWithEthereum 2024-08-22 13:18:38 +10:00
Lachlan Roberts e9233804c8
Merge remote-tracking branch 'origin/jetty-12.1.x' into jetty-12.1.x-websocketMethodHolder 2024-08-22 13:05:37 +10:00
Lachlan Roberts 3d28e16a84
changes from review
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-22 13:03:01 +10:00
Olivier Lamy 2ef6a3473a
jetty 12.1.x 12184 urls fixes (#12187)
* fix proxy url in web.xml
* Issue #12184 Change urls https://eclipse.dev to https://jetty.org

Fix #12187

Signed-off-by: Olivier Lamy <olamy@apache.org>

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-08-22 04:34:56 +02:00
Lachlan Roberts 37aed0e01b
PR #11883 - remove experimental warning and fix to documentation
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-21 23:53:55 +10:00
Simone Bordet 8e6ad22b69
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-21 11:38:00 +02:00
Simone Bordet 0644aaf88c
Fixes #12154 - Limit concurrent virtual threads. (#12155)
Updated VirtualThreadPool to limit the number of concurrent virtual threads using a Semaphore.

Updated modules and documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-21 10:44:20 +02:00
Olivier Lamy 2ca9be96ae
change urls https://eclipse.dev to https://jetty.org (#12172)
* change urls https://eclipse.dev to  https://jetty.org

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-08-21 07:18:20 +02:00
Lachlan Roberts 063e3fc976
PR #11883 - fix build issue with poms
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-21 14:25:02 +10:00
Lachlan Roberts e486b7161f
Merge remote-tracking branch 'origin/jetty-12.1.x' into jetty-12.1.x-websocketMethodHolder 2024-08-21 14:20:43 +10:00
Lachlan Roberts f13a153194
PR #12181 - default to binding MethodHandles
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-21 14:19:25 +10:00
Lachlan Roberts a525b70c62
Move SignInWithEthereumEmbeddedExample to code-examples in documentation
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-21 12:04:37 +10:00
Lachlan Roberts e11120c3d1
Issue #6328 - avoid binding WebSocket MethodHandles
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-21 10:51:16 +10:00
Jan Bartel a72ae7007b Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-08-21 09:35:27 +10:00
Jan Bartel 0cae6351f4
Issue #12173 Ingore dependencies of type pom for the webapp classpath (#12177) 2024-08-21 09:29:59 +10:00
Simone Bordet 40e58a2340
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-20 10:22:15 +02:00
Simone Bordet 942e77c3c5
Fixes #6514 - How to warm up SslConnection. (#12151)
Implemented "priming" of HTTP/1.1 connections using ConnectionPool.preCreateConnections(int) and HttpClientTransportOverHTTP.setInitializeConnections(true).

This sends `OPTIONS * HTTP/1.1` to the server.

I tried to implement this feature by forcing a write of 0 bytes from the layer above `SslConnection`, but it did not work when using TLS because in both WriteFlusher and SslConnection the fact that there are 0 bytes left to write is treated specially.

Other HTTP versions have no problems because they must initialize the connection by e.g. sending a SETTINGS frame, so they would also initialize TLS.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-20 10:19:32 +02:00
Simone Bordet 31f73b7543 Introduced the migration guide from 12.0.x to 12.1.x.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-20 11:02:16 +03:00
Greg Wilkins 8b4e13dbea
Jetty 12.1.x 12088 core requested session ID source (#12145)
add isRequestedSessionIdFromCookie/URL for core request

Co-authored-by: Jan Bartel <janb@webtide.com>
2024-08-20 15:14:37 +10:00
Joakim Erdfelt e2753e6f5f
Add Missing changes to ee11 WebInfConfiguration (#12168)
* Missing changes to WebInfConfiguration from commit 558da27c2d

* use better matchers for files assert

Signed-off-by: Olivier Lamy <olamy@apache.org>

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
Co-authored-by: Olivier Lamy <olamy@apache.org>
2024-08-16 06:09:34 +02:00
Joakim Erdfelt 877aaa5502
Merge pull request #12164 from jetty/fix/12.0.x/httpconfiguration-runtime-attributes
Issue #12163 - Adding missing HttpConfiguration fields to JMX and dump()
2024-08-15 19:19:49 -05:00
Joakim Erdfelt 457a672756
Issue #11408 - Environment property values are not expanded (#12169)
If a property belonged to an Environment, then that property value was not expanded.
2024-08-15 18:58:33 -05:00
Joakim Erdfelt 8dafe0988b
Issue #12163 - Adding more HttpConfiguration output of fields to dump and jmx 2024-08-14 08:41:53 -05:00
Simone Bordet 69696b7886
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-14 11:11:35 +02:00
Simone Bordet e7f1512423 Fixes #3184 - Make LifeCycle implement AutoCloseable.
Rather than making LifeCycle AutoCloseable, just implement AutoCloseable in the client components.

Update tests to use try-with-resources accordingly.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-14 12:03:55 +03:00
Simone Bordet 19e2670e1c
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-13 16:15:50 +02:00
Simone Bordet cc2cef1732 Fixes #12158 - Jetty12 migration help.
Updated documentation with section about migration of Handler code from Jetty 11 to Jetty 12.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-13 17:15:06 +03:00
Simone Bordet 775c458960
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-13 15:54:47 +02:00
Simone Bordet fc9cbda52f
Improved handling of 100 Continue (#12113)
* Now `HttpClient` removed the `Expect` header if there is no request content.
* Changed AbstractProxyServlet and ProxyHandler check for request content: now the Content-Type header is not taken into consideration.
* Now the server avoids sending the 100 Continue response if there is no request content.
* Now the request body is not defaulted if missing, but just kept null.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-13 15:06:50 +02:00
Lachlan Roberts cc61f783c4
update poms to 12.0.13-SNAPSHOT
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-13 12:00:37 +10:00
Lachlan Roberts 37af005882
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-SignInWithEthereum 2024-08-13 11:58:35 +10:00
Dan Allen 8277051776
simplify configuration for Antora Collector (#12152)
- use shortform value when applicable
- rename base key to into
2024-08-12 18:16:22 +10:00
Olivier Lamy e7980c52b4
Fix h2spec plugin report and upgrade version (#12133)
* use standard surefire directory to have result parse via Jenkins

Signed-off-by: Olivier Lamy <olamy@apache.org>

* h2spec last snapshot

Signed-off-by: Olivier Lamy <olamy@apache.org>

* use h2-spec-maven-plugin version 1.0.13

Signed-off-by: Olivier Lamy <olamy@apache.org>

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-08-12 04:59:22 +02:00
Simone Bordet d0ea445d2d
Fixes #12122 - NPE in HttpReceiver.responseContentAvailable(). (#12123)
Now also the HttpReceiver.responseContentAvailable() is serialized, so that the access to `this.contentSource` is serialized with failure, and protected by a call to `exchange.isResponseCompleteOrTerminated()`.

Before, it was possible that a thread failed the response, nulling out `this.contentSource`, while another thread was just about to call `responseContentAvailable()` -- this was the case for HTTP/2 in particular, where content is notified asynchronously, rather than being created by a call to `ContentSource.read()`.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-07 18:30:51 +02:00
gregw 2ba2250ac8 updates from review
introduce default buffer size constant
2024-08-07 10:37:24 +02:00
gregw e699583c04 Improve the usage of Sized ByteBufferPool 2024-08-07 10:37:24 +02:00
Ludovic Orban f72174790b fix checkstyle
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-08-07 10:37:24 +02:00
Ludovic Orban 347dee0ba5 - Replace ByteBufferPool + size + directness with ByteBufferPool.Sized in HttpContent-related code
- Cleanup and javadoc HttpContent
 - Align and cleanup offset/length default values

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-08-07 10:37:24 +02:00
Jan Bartel 661546ecff
Issue #12124 fix jsp scratchdir location for ee9. (#12129)
* Issue #12124 fix jsp scratchdir location for ee9.

Also ensure the name of war appears in the name of the tmp dir for ee9
webapps.
2024-08-06 09:11:16 +10:00
gregw bcd73c6a7b Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-08-05 13:11:38 +10:00
Greg Wilkins abab5949ea
Fix #12128 Combined ClassLoader Resources (#12130)
Fix #12104 by returning a CombinedResource for a ClassLoader resource that has multiple directory matches.
2024-08-05 13:09:53 +10:00
Simone Bordet 7e569b0267
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-04 14:49:06 +02:00