Enhancement: start jetty with http2
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 1.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 32
Description
Currently the jetty server uses http1.1
```
final ServerConnector sslConnector = new ServerConnector(server,
new SslConnectionFactory(sslContextFactory, "http/1.1"),
new HttpConnectionFactory(httpsConfig));
sslConnector.setPort(httpsPort);
sslConnector.setHost(bindInterface);
server.addConnector(sslConnector);
```
https://github.com/apache/cloudstack/blob/2e9b3d8e084b5f6ddf4690afe266e0a2b3f751bb/client/src/main/java/org/apache/cloudstack/ServerDaemon.java#L240
It would be nice to support http2
https://eclipse.dev/jetty/javadoc/jetty-9/org/eclipse/jetty/http2/server/HTTP2ServerConnectionFactory.html
##### ISSUE TYPE
* Enhancement Request
##### COMPONENT NAME
~~~
~~~
##### CLOUDSTACK VERSION
~~~
~~~
##### CONFIGURATION
##### OS / ENVIRONMENT
##### SUMMARY
##### STEPS TO REPRODUCE
~~~
~~~
##### EXPECTED RESULTS
~~~
~~~
##### ACTUAL RESULTS
~~~
~~~
Contributor guide
Research direction
Start with client/src/main/java/org/apache/cloudstack/ServerDaemon.java around line 240 and review the existing HTTPS ServerConnector setup. Read Jetty's HTTP2ServerConnectionFactory documentation to understand the integration points. Done means CloudStack's Jetty server supports HTTP/2 in addition to its current HTTP/1.1 behavior, with the intended configuration and validation established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100