Skip to content

Make sure sent_requests have a keep-alive#106

Open
jagerman wants to merge 1 commit into
oxen-io:devfrom
jagerman:sent-req-keepalive
Open

Make sure sent_requests have a keep-alive#106
jagerman wants to merge 1 commit into
oxen-io:devfrom
jagerman:sent-req-keepalive

Conversation

@jagerman
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread include/oxen/quic/iochannel.hpp
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