Skip to content

Conversation

@thboileau
Copy link
Contributor

@thboileau thboileau commented Feb 23, 2025

The aim

Add support of the graceful shutdown to the Jetty server.

Check-list

  • PR size
    • Under 300 lines ✅
    • Can't be split without complicating the process even more
  • Tests
    • Added
    • Not applicable (why?)
  • Doc
    • Added
    • Not applicable
  • Reviewer
    • Asked for a review
    • Added label DO NOT REVIEW

@thboileau thboileau changed the base branch from 2.5 to 2.6 February 23, 2025 18:39
<artifactId>jetty-http3-client-transport</artifactId>
<version>${lib-jetty-version}</version>
</dependency>
<dependency>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useful to get debug logs

&& sslEndPoint.getSslSessionData().peerCertificates() != null) {
result = Arrays.asList(sslEndPoint.getSslSessionData().peerCertificates());
} else {
getLogger().fine("SslEndpoint has no peer certificate");
Copy link
Contributor Author

@thboileau thboileau Feb 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be null

@thboileau thboileau force-pushed the 2.6_add-jetty-graceful-shutdown branch from 598bf2b to c03e1fc Compare February 23, 2025 22:10
default:
httpTransport = new HttpClientTransportOverHTTP();
break;
case "HTTP2":
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grrrr, format issue

import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.*;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, code style issue

@thboileau thboileau force-pushed the 2.6_add-jetty-graceful-shutdown branch from c03e1fc to 0c6ba34 Compare February 23, 2025 22:34
@thboileau thboileau force-pushed the 2.6_add-jetty-graceful-shutdown branch from 0c6ba34 to 058dee8 Compare February 23, 2025 22:38
Copy link
Collaborator

@jlouvel jlouvel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great contribution, thanks @thboileau

@thboileau thboileau merged commit 0c3283d into 2.6 Mar 1, 2025
1 check passed
@thboileau thboileau deleted the 2.6_add-jetty-graceful-shutdown branch March 1, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants