Commit Graph

30307 Commits

Author SHA1 Message Date
Joakim Erdfelt c97f5d7ac8
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-08-26 11:50:22 -04:00
Joakim Erdfelt 394bc136f3
Merge pull request #12198 from jetty/jetty-12.0.x-VirtualThreadPoolSemaphore
Fix potential NPE from VirtualThreadPool
2024-08-26 10:49:37 -05:00
Joakim Erdfelt 4fd306fcc2
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-VirtualThreadPoolSemaphore 2024-08-26 09:01:06 -05:00
Joakim Erdfelt 94ea3694a2
Trying to get more information about 400 response parse flaky test 2024-08-26 08:53:54 -05:00
Simone Bordet 1d4a77472a
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:53:30 +02:00
Simone Bordet 0f28d47597
Fixed assertion mismatch between int and long.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:52:55 +02:00
Simone Bordet 272895ce02
Issue #12023 - Remove deprecated classes/methods. (#12149)
Removed deprecated classes/methods from jetty-client.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:42:53 +02:00
Simone Bordet cffda533e3
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:41:16 +02:00
Simone Bordet 0a56509130
Fixes #11822 - HTTP/2 responses exceeding SETTINGS_MAX_HEADER_LIST_SIZE do not result in RST_STREAM or GOAWAY. (#12165)
Now HpackException.SessionException is treated specially in HTTP2Flusher.
It is caught, it fails all the entries, and then tries to send a GOAWAY, which will be the only frame allowed into the HTTP2FLusher at that point.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:33:17 +02:00
Simone Bordet 4c1c332245
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:31:40 +02:00
Simone Bordet b13f3ccc15 Documented Jetty versions and compatibilities, and code deprecation policy.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 12:31:10 +03:00
Simone Bordet 1e95e89ddc
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:28:34 +02:00
Simone Bordet 930d91568a
Fixes #9121 - Flaky BlockedWritesWithSmallThreadPoolTest.testServerThreadsBlockedInWrites(). (#12178)
The test uncovered a larger problem detailed in the issue: the Handler Callback should be non-blocking.

Since all implementations of HttpStream are non-blocking, overridden HttpStream.getInvocationType() to return NON_BLOCKING.

This guarantees that even in case of all server threads blocked, blocked/pending writes can be completed.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:12:38 +02:00
Simone Bordet 7aaca7d74d
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:11:11 +02:00
Simone Bordet 21f2f2acea
Fixes #3553 - Support sslSession() in Jetty Client. (#12179)
Implemented Connection.getSslSessionData(), where the Connection can be obtained from the Request:
request.getConnection().getSslSessionData().

Updated documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-26 11:10:04 +02:00
Lachlan Roberts 8464340f07
Fix potential NPE from VirtualThreadPool
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-26 12:36:53 +10:00
Lachlan Roberts 063e839962
reduce duplication for OpenIdProvider testing class
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-26 11:48:10 +10:00
Lachlan Roberts 9756387020
move jetty-openid from jetty-core to jetty-integrations
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-26 11:13:24 +10:00
Lachlan d8fad1fa16
Merge pull request #12188 from jetty/jetty-12.1.x-SignInWithEthereum
Issue #11560 - Implement EIP-4361 Sign-In With Ethereum
2024-08-26 11:07:42 +10:00
Lachlan c0d5adf6c6
Merge pull request #12181 from jetty/jetty-12.1.x-websocketMethodHolder
Issue #6328 - avoid binding WebSocket MethodHandles
2024-08-26 11:04:11 +10:00
gregw 5bbae27d1b disable broken tests to be fixed in #12171 2024-08-26 10:55:38 +10:00
Greg Wilkins 7d7eeb3b1e
Experiment with IteratingCallback (#12040)
The previous semantic of `onCompleteFailure` has been renamed to `onFailure(Throwable)`, which is called immediately (but serialized) on either an abort or a failure.   A new `onCompleteFailure(Throwable)` method has been added that is called only after a `failed(throwable)` or a `abort(Throwable)` followed by `succeeded()` or `failed(Throwable)``

No usage has yet been made of the new `onCompleteFailure`, but the ICB implementation has been completely replaced by the one developed in #11876

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Ludovic Orban <lorban@bitronix.be>
2024-08-26 10:18:57 +10:00
Tony Copping 66e4bd862f Issue #12175 Updates based on feedback
Signed-off-by: Tony Copping <tony@sigsoft.ca>
2024-08-24 10:05:01 -06:00
Simone Bordet b9bcb58a6d Issue #12023 - Remove deprecated classes/methods.
Removed deprecated methods from EndPoint.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 19:09:33 +03:00
Simone Bordet 1af998065d
Fixed parent version in newly introduced Maven module merged from 12.0.x.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 16:40:58 +02:00
Simone Bordet 95665b778e
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 16:36:51 +02:00
Simone Bordet bb52d95a62
Fixes #12063 - Introduce Jetty module for HTTP/2 client dependencies. (#12170)
Introduced http2-client.mod and http2-client-transport.mod.
These modules download dependencies via a [files] section.
They can be used to have the server provide the dependencies in case of a web application proxies request using HTTP/2.

Fixed ContentProvider to set the context ClassLoader before reading the Jetty XML context file, which may reference classes from the web application.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 16:33:51 +02:00
Simone Bordet 3170946ad1
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 12:14:39 +02:00
Simone Bordet 6527aa559b
Merged branch 'pbhenson-response-header-rule' into 'jetty-12.0.x'. 2024-08-23 12:10:38 +02:00
Simone Bordet cc469a136d
Code/Import cleanups.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 12:01:16 +02:00
Simone Bordet 01ce4dbe64
Limited max suspended requests to 1024 by default.
Javadocs, comment and logging improvements.
Simplified test case.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 11:59:31 +02:00
Lars Krog-Jensen 034493ad7f
Issue #12185 code formatting 2024-08-23 11:59:31 +02:00
Lars Krog-Jensen 994012e7eb
Issue #12185 Custom FJP in unit test and more white space formatting 2024-08-23 11:59:30 +02:00
Lars Krog-Jensen f37a4a167b
Issue #12185 white space formatting and increase delay to avoid flaky tests 2024-08-23 11:59:30 +02:00
Lars Krog-Jensen 32652e88bc
Issue #12185 code formatting 2024-08-23 11:59:30 +02:00
Lars Krog-Jensen b7591d546f
Issue #12185 implementation/test of max suspended requests in QoSHandler 2024-08-23 11:59:30 +02:00
Jan Bartel dbb982108b
Fix order of jetty.http.port property for jetty maven plugin (#12183) 2024-08-23 11:59:30 +02:00
Simone Bordet 9f08dc3050
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-23 11:59:30 +02:00
Olivier Lamy ba4cc396eb
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-23 11:59:29 +02:00
Simone Bordet dfe1e6ba90
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 11:34:23 +02:00
Simone Bordet 185b423e1a
Merged branch 'LarsKrogJensen-issue-12185' into 'jetty-12.0.x'. 2024-08-23 11:33:16 +02:00
Simone Bordet aae0a55104
Limited max suspended requests to 1024 by default.
Javadocs, comment and logging improvements.
Simplified test case.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-08-23 11:31:11 +02:00
Jan Bartel dc41ad90ab
Fix order of jetty.http.port property for jetty maven plugin (#12183) 2024-08-23 10:50:57 +02:00
Lachlan Roberts cb691cd3ff
PR #12186 - deprecate servletUpgrade method on HttpParser and rename to upgrade()
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-23 14:07:05 +10:00
Lachlan Roberts 1b13c58537
PR #12188 - fix parent of jetty-etherem pom.xml
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-23 13:47:28 +10:00
Lachlan Roberts d56c9628c1
Merge remote-tracking branch 'origin/jetty-12.1.x' into jetty-12.1.x-SignInWithEthereum 2024-08-23 13:43:33 +10:00
Lachlan Roberts 28ae673208
PR #12188 - rename siwe.mod to ethereum.mod
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-23 13:42:59 +10:00
Lachlan Roberts b40a942a65
PR #12188 - move code to jetty-integrations/jetty-ethereum
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
2024-08-23 13:40:47 +10:00
Paul B. Henson d4dbece1af Add new rewrite rule to return response status code based on matching header values 2024-08-22 17:22:50 -07:00
Lars Krog-Jensen 30791c16ee Issue #12185 code formatting 2024-08-22 12:18:02 +02:00