8000 Start TCP dispatchers after endpoints are completely loaded during restore. by copybara-service[bot] · Pull Request #11743 · google/gvisor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Start TCP dispatchers after endpoints are completely loaded during restore. #11743

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

copybara-service[bot]
Copy link

Start TCP dispatchers after endpoints are completely loaded during restore.

  • During restore if endpoints' states are not loaded before starting
    dispatchers, then the incoming packets will be queued and the dispatcher will
    try to send the packets, which will result in a panic as the endpoint might
    still be in an invalid state (eg: initial).
  • To avoid this, wait for all the endpoints to be loaded completely before
    starting the dispatchers by calling AsycnLoading.Wait() in stack.Restore() and
    remove this from kernel.LoadFrom()
  • Added a test to check save restore of multiple(100) listening sockets.

@copybara-service copybara-service bot added the exported Issue was exported automatically label May 19, 2025
@copybara-service copybara-service bot force-pushed the test/cl760740570 branch 3 times, most recently from 6e5b8de to 029eb66 Compare May 22, 2025 16:14
…store.

- During restore if endpoints' states are not loaded before starting
dispatchers, then the incoming packets will be queued and the dispatcher will
try to send the packets, which will result in a panic as the endpoint might
still be in an invalid state (eg: initial).
- To avoid this, wait for all the endpoints to be loaded completely before
starting the dispatchers by calling AsycnLoading.Wait() in stack.Restore() and
remove this from kernel.LoadFrom()
- Added a test to check save restore of multiple(100) listening sockets.

PiperOrigin-RevId: 762010964
@copybara-service copybara-service bot merged commit 8980842 into master May 22, 2025
0 of 2 checks passed
@copybara-service copybara-service bot deleted the test/cl760740570 branch May 22, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0