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
return$this->connector->connect($proxyUri)->then(function (ConnectionInterface$stream) use ($target, $auth) {
142
-
$deferred = newDeferred(function ($_, $reject) use ($stream) {
143
-
$reject(newRuntimeException('Connection canceled while waiting for response from proxy (ECONNABORTED)', defined('SOCKET_ECONNABORTED') ? SOCKET_ECONNABORTED : 103));
147
+
// either close active connection or cancel pending connection attempt
$deferred->reject(newRuntimeException('Proxy must not send more than 8 KiB of headers (EMSGSIZE)', defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90));
188
203
$stream->close();
189
204
}
190
-
};
191
-
$stream->on('data', $fn);
205
+
});
192
206
193
207
$stream->on('error', function (Exception$e) use ($deferred) {
194
208
$deferred->reject(newRuntimeException('Stream error while waiting for response from proxy (EIO)', defined('SOCKET_EIO') ? SOCKET_EIO : 5, $e));
@@ -199,14 +213,28 @@ public function connect($uri)
0 commit comments