Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: During graceful shutdown, more precise control over the readability and writability events of connections to reduce timeouts #125

Merged

Conversation

yujun411522
Copy link
Contributor

During graceful shutdown, more precise control over the readability and writability events of connections to reduce timeouts

@yujun411522 yujun411522 reopened this Mar 29, 2024
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 81.60713%. Comparing base (00af5f2) to head (36d14b4).

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main        #125         +/-   ##
===================================================
- Coverage   81.73851%   81.60713%   -0.13139%     
===================================================
  Files            855         855                 
  Lines          33891       33899          +8     
===================================================
- Hits           27702       27664         -38     
- Misses          6189        6235         +46     
Files Coverage Δ
trpc/server/trpc_server.cc 73.21429% <87.50000%> (+0.52909%) ⬆️

... and 16 files with indirect coverage changes

…ability and writability events of connections to reduce timeouts
@yujun411522 yujun411522 force-pushed the feature/disable_event_when_stop branch from 1863ae6 to 36d14b4 Compare April 1, 2024 02:47
@@ -213,6 +213,21 @@ void TrpcServer::Stop() {
}
}

// Disable the readable event for the listening socket to avoid creating new connections
// Disable the readable event for the connected socket to avoid receiving new requests
std::vector<ServiceAdapterPtr> stop_listened_adapters;
Copy link
Contributor

Choose a reason for hiding this comment

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

update doc?

@helloopenworld helloopenworld merged commit b63513b into trpc-group:main Apr 1, 2024
4 checks passed
@yujun411522 yujun411522 deleted the feature/disable_event_when_stop branch May 6, 2024 03:55
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.

2 participants