Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Description
Hi,
https request stream ignores the custom highWaterMark size option. In http request it works perfectly.
Version: All of them, even nightly
Platform: Windows 10 64-bit
Platform: https
What steps will reproduce the bug?
Execute the following code snippet using node
var https = require('https'); var url = "https://www.facebook.com"; var options ={rejectUnauthorized: false, highWaterMark: 128000 }; var request = https.request(url, options, function(response){// it returns 16384 with https but 128000 in http console.log("HTTPS readableHighWaterMark: " + response.readableHighWaterMark)}).end(); var http = require('http'); var url = "http://www.facebook.com"; var options ={highWaterMark: 128000 }; var request = http.request(url, options, function(response){// it returns 16384 with https but 128000 in http console.log("HTTP readableHighWaterMark: " + response.readableHighWaterMark)}).end(); How often does it reproduce? Is there a required condition?
No. This potential bug can always be reproduced.
What is the expected behavior?
https stream readableHighWaterMark should be 128000 instead 16384.
What do you see instead?
Console Output:
HTTP readableHighWaterMark: 128000 HTTPS readableHighWaterMark: 16384 Metadata
Metadata
Assignees
Labels
No labels