You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Linux buildroot 4.9.54 merge to master #1 SMP PREEMPT Mon Oct 15 18:58:09 HKT 2018 aarch64 GNU/Linux, Darwin liningdeMacBook-Pro.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
Subsystem:
https: can not handle large data, I can't get all the data chunk when fetch large data, it's pending all the time.
here is my code:
// https://s.rokidcdn.com/homebase/upload/KDKs0M1_W.json // large data// https://s.rokidcdn.com/homebase/upload/XYbP8HhjV.json // small datavarhttps=require('https')varurl='https://s.rokidcdn.com/homebase/upload/KDKs0M1_W.json'varreq=https.request(url,(res)=>{console.log('statusCode:',res.statusCode)console.log('data length ========= ',res.headers['content-length'])varbody=[]res.on('data',chunk=>{body.push(chunk)console.log('chunk length === ',chunk.length,Buffer.concat(body).length)})res.on('end',_=>{console.log('on end ===========')console.log(Buffer.concat(body).toString())})})req.on('error',e=>{console.error(e)})req.end()
https: can not handle large data, I can't get all the data chunk when fetch large data, it's pending all the time.
here is my code:
and here is the log when run the script:
then it's pending all the time.
The text was updated successfully, but these errors were encountered: