Skip to content

fix SSL write crash when write buffer has a very large chain#592

Merged
mattklein123 merged 2 commits intomasterfrom
fix_ssl_write_crash
Mar 20, 2017
Merged

fix SSL write crash when write buffer has a very large chain#592
mattklein123 merged 2 commits intomasterfrom
fix_ssl_write_crash

Conversation

@mattklein123
Copy link
Copy Markdown
Member

Previously, we would get all buffer slices on the stack and stack overflow
if the chain was very large. This change limits the number of slices that we
write during each iteration. There are a number of potential improvements
possible in terms of collapsing small moves, enforcing fairness in terms of
number of iterations, etc.

This commit also removes a bunch of RawSlice to evbuffer_iovec conversions
for performance reasons.

NOTE: The added test repros the crash before the fix.

fixes #585

Loading
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.

SSL connection write event crash

3 participants