简体   繁体   English

出站HTTPS请求的速度异常慢

[英]Incredibly slow outbound HTTPS requests

I am using Node 0.12.2 with Express 4.13.3 as the frontend for a RESTful layer. 我正在使用带有Express 4.13.3的Node 0.12.2作为RESTful层的前端。 Calling the API's from cURL/Postman takes ~9ms. 从cURL / Postman调用API大约需要9毫秒。 However, using Request 2.60.0 to make the call from Node, it takes ~60ms. 但是,使用Request 2.60.0从Node进行调用大约需要60毫秒。 These are HTTPS calls. 这些是HTTPS调用。 Removing HTTPS and using just HTTP brings Node down to ~7ms. 删除HTTPS并仅使用HTTP可使Node降低约7ms。 Both the curl/Postman calls and the Node.js calls are happening on the same machine in the same environment under no load. curl / Postman调用和Node.js调用都在没有负载的情况下在同一环境中的同一台计算机上发生。 I cannot seem to find what's causing Node to be so much slower than everything else. 我似乎找不到导致Node如此之慢的原因。 Any help would be greatly appreciated. 任何帮助将不胜感激。

Updating to Request 2.61.0 fixed the issue. 更新到Request 2.61.0可以解决此问题。 Looks like there was an issue with their agent pool. 看来他们的代理商池有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM