Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more
Go to file
mszabo-wikia fd2407c72f
Clarify that requestHeaderSize is a cumulative limit (#7417)
* Clarify that requestHeaderSize is a cumulative limit

HttpConfiguration documents the requestHeaderSize configuration option
as being a limit on the size of a single request header, but it is in
fact a limit on the cumulative size of all request headers as well as
the request URI. This patch updates the documentation accordingly, and
adds test cases for the HTTP/1.x and HTTP/2 parsers to verify the
behavior.

NB.: the HTTP/3 parser and configuration seem to correctly document this
option as being a global limit on header size.

* Improve requestHeaderSize tests and documentation per review

Signed-off-by: Máté Szabó <mszabo@wikia-inc.com>
2022-01-19 11:56:27 -06:00
.github Fixed typo. 2022-01-11 16:41:34 +01:00
advisories Adding reference to patched versions of jetty-http jars 2015-02-25 16:10:06 -07:00
apache-jsp Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
apache-jstl Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
build-resources Bump maven-deploy-plugin from 3.0.0-M1 to 3.0.0-M2 2021-12-31 09:19:31 +00:00
demos Issue #7132 Update demos (#7133) 2021-12-08 09:18:50 +11:00
documentation Fixes #7369 - Document CustomRequestLog 2022-01-12 17:12:01 +01:00
javadoc Issue #6728 - QUIC and HTTP/3 2021-12-20 09:33:38 +01:00
jetty-alpn Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-annotations Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-ant Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-bom Issue #7327 - Add missing entries to jetty-bom (#7328) 2021-12-22 15:15:00 -06:00
jetty-cdi Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-client #7201 improve efforts to call listeners only when needed and guard against potential concurrent closures 2022-01-18 09:54:18 +01:00
jetty-deploy Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-fcgi Issue #6728 - QUIC and HTTP/3 2021-12-20 09:33:38 +01:00
jetty-gcloud Bump google-cloud-datastore from 2.2.1 to 2.2.2 2022-01-13 13:46:11 +00:00
jetty-hazelcast Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-home Issue #7297 - Removing log4j 1.x (#7353) 2022-01-05 12:26:05 -06:00
jetty-http Clarify that requestHeaderSize is a cumulative limit (#7417) 2022-01-19 11:56:27 -06:00
jetty-http-spi Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-http2 Clarify that requestHeaderSize is a cumulative limit (#7417) 2022-01-19 11:56:27 -06:00
jetty-http3 Fixes #7348 - Slow CONNECT request causes NPE (#7349) (#7352) 2022-01-06 11:08:12 +01:00
jetty-infinispan Issue #7034 infinispan flaky tests on CI, force TCP over UDP for jgroups multicasting as it is too slow with kubernetes (#7122) 2021-11-17 15:50:22 +10:00
jetty-io Issue #6728 - QUIC and HTTP/3 2021-12-20 09:33:38 +01:00
jetty-jaas Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-jaspi Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-jmx Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-jndi Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-jspc-maven-plugin Bump maven.version from 3.8.2 to 3.8.3 (#6954) 2021-11-09 14:40:54 +10:00
jetty-keystore interpolate bouncycastle.version in mod file (#7189) 2021-12-04 09:03:57 +10:00
jetty-maven-plugin Issue #7124 - deprecate AbstractLifeCycleListener 2021-11-25 10:01:52 +11:00
jetty-memcached Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-nosql Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-openid Issue #7042 - remove init param to set authenticateNewUsers per webapp 2021-11-10 18:19:51 +11:00
jetty-osgi Bump org.eclipse.osgi from 3.17.0 to 3.17.100 (#7239) 2021-12-08 09:47:58 -06:00
jetty-p2 Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-plus Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-proxy Fixes #7348 - Slow CONNECT request causes NPE (#7349) (#7352) 2022-01-06 11:08:12 +01:00
jetty-quic Issue #6728 - QUIC and HTTP/3 2021-12-20 09:33:38 +01:00
jetty-quickstart Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-rewrite Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-runner Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-security fix resource leak (#7361) 2022-01-10 10:56:22 +01:00
jetty-server Clarify that requestHeaderSize is a cumulative limit (#7417) 2022-01-19 11:56:27 -06:00
jetty-servlet Merge pull request #7263 from eclipse/jetty-10.0.x-7262-ServletHandlerGetFilterChain 2021-12-15 10:17:07 +11:00
jetty-servlets Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-slf4j-impl Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-start fix resource leak (#7361) 2022-01-10 10:56:22 +01:00
jetty-unixdomain-server Issue #6728 - QUIC and HTTP/3 2021-12-20 09:33:38 +01:00
jetty-unixsocket Issue #7297 - Removing log4j 1.x (#7353) 2022-01-05 12:26:05 -06:00
jetty-util Issue #7277 - Allow `Request.getLocalName()` and `.getLocalPort()` to be overridden (#7357) 2022-01-06 08:01:08 -06:00
jetty-util-ajax Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
jetty-webapp Close Resources opened from java.nio.file.Files API calls (#7048) (#7050) 2021-10-27 05:53:10 -05:00
jetty-websocket Issue #7351 - large WebSocket payloads with permessage-deflate hang (#7360) 2022-01-19 10:47:45 +11:00
jetty-xml fix resource leak (#7361) 2022-01-10 10:56:22 +01:00
logos Issue #4572 - Mechanical Change to use org.slf4j 2020-03-16 15:48:25 -05:00
scripts Fixing release script 2021-10-06 14:23:15 -05:00
tests Issue #7375 Request scoped sessions (#7390) 2022-01-14 15:39:38 +11:00
.gitattributes Updating attributes 2020-09-25 09:48:38 -05:00
.gitignore Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-9.4.x-3550-QueuedThreadPool-cleanup 2019-04-25 06:53:07 +02:00
.lgtm.yml Create .lgtm.yml 2021-01-25 15:58:41 -05:00
CODE_COVERAGE.md http-spi test improvement (#62) 2016-05-04 10:56:56 +10:00
CONTRIBUTING.md Testing gpg signature setup 2019-09-25 12:42:32 -05:00
Jenkinsfile Issue #6728 - QUIC and HTTP/3 2021-12-20 09:33:38 +01:00
Jenkinsfile-autobahn Fixes #6043 - Reimplement UnixSocket support based on Java 16. (#6522) 2021-08-05 10:04:37 +02:00
Jmh_Jenkinsfile Merge branch 'jetty-9.4.x' into jetty-10.0.x 2019-07-09 12:57:26 +10:00
KEYS.txt add GPG key and developer tag 2020-11-04 17:25:11 +01:00
LICENSE Issue #5784 - Fixing LICENSE file 2020-12-10 15:45:35 -06:00
NOTICE.txt Issue #3578 - Adopt EPL-2.0 for Jetty-10. 2020-01-09 20:10:19 +01:00
README.md Simple Example in README (#6727) 2021-09-09 11:32:16 +10:00
VERSION.txt Updating to version 10.0.8-SNAPSHOT 2021-10-06 14:51:32 -05:00
header-template.txt Issue #5784 - Cleaning up source header template 2020-12-10 15:46:28 -06:00
pom.xml Merge pull request #7410 from eclipse/dependabot/maven/jetty-10.0.x/maven.plugin-tools.version-3.6.4 2022-01-19 13:21:47 +11:00

README.md

Eclipse Jetty Canonical Repository

This is the canonical repository for the Jetty project, feel free to fork and contribute now!

Submitting a patch or pull request?

Make sure you have an Eclipse Contributor Agreement (ECA) on file.

Project description

Jetty is a lightweight highly scalable java based web server and servlet engine. Our goal is to support web protocols like HTTP, HTTP/2 and WebSocket in a high volume low latency way that provides maximum performance while retaining the ease of use and compatibility with years of servlet development. Jetty is a modern fully async web server that has a long history as a component oriented technology easily embedded into applications while still offering a solid traditional distribution for webapp deployment.

Webapp Example

$ mkdir base && cd base
$ java -jar $JETTY_HOME/start.jar --add-modules=http,deploy
$ cp ~/src/myproj/target/mywebapp.war webapps
$ java -jar $JETTY_HOME/start.jar 

Embedded Example

Server server = new Server(port);
ServletContextHandler context = new ServletContextHandler(server, "/");
context.addServlet(MyServlet.class, "/*");
server.start();

Documentation

Project documentation is available on the Jetty Eclipse website.

Building

To build, use:

  mvn clean install

Eclipse Jetty will be built in jetty-home/target/jetty-home.

The first build may take a longer than expected as Maven downloads all the dependencies.

The build tests do a lot of stress testing, and on some machines it is necessary to set the file descriptor limit to greater than 2048 for the tests to all pass successfully.

It is possible to bypass tests by building with mvn clean install -DskipTests.

Professional Services

Expert advice and production support are available through Webtide.com.