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:
parent
986ff9f8a6
commit
b2ce730261
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user