Native HTTPRequest timeout should apply only to connect phase (fix #916)

This commit is contained in:
Joshua Granick
2017-02-11 11:00:01 -08:00
parent e6be39386f
commit 95a3a75fd4

View File

@@ -279,7 +279,7 @@ class NativeHTTPRequest {
Timer.delay (function () {
if (!worker.completed) {
if (bytesLoaded == 0 && bytesTotal == 0 && !worker.completed) {
worker.cancel ();
cancel ();