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

Only allocate buffer to max size of an SSL record #55

Merged
merged 1 commit into from
Feb 10, 2018

Conversation

MasterDuke17
Copy link
Contributor

According to my interpretation of https://wiki.openssl.org/index.php/Manual:SSL_read(3), if num ($n here) is larger than the max size of an SSL/TLS record (16k according to https://tools.ietf.org/html/rfc5246#section-6.2.1) it will just return up to a single record.

According to my interpretation of https://wiki.openssl.org/index.php/Manual:SSL_read(3), if `num` (`$n` here) is larger than the max size of an SSL/TLS record (16k according to https://tools.ietf.org/html/rfc5246#section-6.2.1) it will just return up to a single record.
@MasterDuke17
Copy link
Contributor Author

For me, the last output of https://gist.github.com/AlexDaniel/0cdb3211cfcae90c29da9330649171c2 before this patch is 1948.398438MiB maxrss, after the patch it's 1687.542969MiB maxrss

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