1
0
mirror of https://github.com/danog/process.git synced 2024-11-30 04:39:04 +01:00

Use failHandleStart() on process connect timeout on Windows

This commit is contained in:
Niklas Keller 2018-02-01 09:34:10 +01:00
parent 986ff9f8a6
commit b2ce730261

View File

@ -337,19 +337,10 @@ final class SocketConnector {
}
$error = $error ?: 'Process did not connect to server before timeout elapsed';
foreach ($handle->sockets as $socket) {
\fclose($socket);
}
$error = new ProcessException(\trim($error));
foreach ($handle->stdioDeferreds as $deferred) {
$deferred->fail($error);
}
\fclose($handle->wrapperStderrPipe);
\proc_close($handle->proc);
$handle->joinDeferred->fail($error);
$this->failHandleStart($error);
}
public function registerPendingProcess(Handle $handle) {