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

Make sure sent_requests have a keep-alive #106

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jagerman
Copy link
Member

@jagerman jagerman commented Feb 5, 2024

A close at just the wrong time could result in an invalid string_view still pending on a Stream.

This seems too problematic to have the "no ownership" parameter as a default argument, so I've made it explicit (and added nullptr to the many test suites places previously using it implicitly).

A close at just the wrong time could result in an invalid string_view
still pending on a Stream.

This seems too problematic to have the "no ownership" parameter as a
default argument, so I've made it explicit (and added nullptr to the
many test suites places previously using it implicitly).
@jagerman
Copy link
Member Author

jagerman commented Feb 5, 2024

No test case because I haven't a clue how I could trigger this manually.

I'm also not 100% sure that this is the issue we saw in Lokinet, but it seems to me that it could be, particularly when combined with the Lokinet close-one-direction logic + RC gossiping.

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