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

Drop of LinkUnicastTcp can stall Runtime #1101

Open
chachi opened this issue Jun 10, 2024 · 3 comments
Open

Drop of LinkUnicastTcp can stall Runtime #1101

chachi opened this issue Jun 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@chachi
Copy link

chachi commented Jun 10, 2024

Describe the bug

I observed the Acceptor runtime thread hanging on the drop of the LinkUnicastTcp then the drop of TcpStream inside of it.

With the linger parameter set to 10s by default and the impl Drop for LinkUnicastTcp commented out since the Tokio port, there's no async shutdown call anymore that allows other work to continue on while the drop happens.

To reproduce

Unsure exactly. My best guess is that if lots of clients are attempting to connect, perhaps some die before getting out of the Acceptor queue which causes the drop to happen within the Acceptor queue after a bit of data had been sent.

We have approximately 80 peers connecting to a single router.

System info

Router on AWS EC2 instance

@chachi chachi added the bug Something isn't working label Jun 10, 2024
@Mallets
Copy link
Member

Mallets commented Jun 11, 2024

Thanks for the report, we could have stumbled upon something similar during the investigation of #1052 and #1053. We'll keep investigating it.

@Mallets
Copy link
Member

Mallets commented Jun 12, 2024

@chachi could you share the topology and configuration of every node in your scenario? It would help the debugging. Thanks!

@chachi
Copy link
Author

chachi commented Jun 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants