Skip to content

Tokio codec - problem reading data from TLS #5714

Answered by Darksonn
hanusek asked this question in General
Discussion options

You must be logged in to vote

The buf.to_owned() call doesn't clear buf. Instead, I recommend handling both branches with split_to.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hanusek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants