Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

tls: make slab buffer's size configurable #4643

Closed

Conversation

indutny
Copy link
Member

@indutny indutny commented Jan 22, 2013

@@ -39,6 +39,9 @@ var DEFAULT_CIPHERS = 'ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:' + // TLS 1.2
exports.CLIENT_RENEG_LIMIT = 3;
exports.CLIENT_RENEG_WINDOW = 600;

// Slab buffer size
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superfluous comment, otherwise LGTM. Maybe add a test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would it test anything?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set SLAB_BUFFER_SIZE before anything else, then verify that the slab buffer's size is what you said it should be?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slab buffer isn't exported.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stream._buffer.length, right?

@indutny
Copy link
Member Author

indutny commented Jan 24, 2013

@bnoordhuis added test and removed comment.

@bnoordhuis
Copy link
Member

LGTM

@isaacs
Copy link

isaacs commented Jan 24, 2013

Landed in master, thanks.

@isaacs isaacs closed this Jan 24, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants