Feature: During graceful shutdown, more precise control over the readability and writability events of connections to reduce timeouts by yujun411522 · Pull Request #125 · trpc-group/trpc-cpp

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@yujun411522

Copy link Copy Markdown

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

@codecov

Copy link Copy Markdown

codecov bot commented

Mar 29, 2024

edited

Loading

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

// 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 Copy Markdown

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

@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

Reviewers

@helloopenworld helloopenworld helloopenworld approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@yujun411522 @helloopenworld