fix(classes.host): Adjust requestStreaming timeout and autoDrain; stabilize tests

This commit is contained in:
2025-08-19 01:19:14 +00:00
parent 87f26b7b63
commit 7ef2ebcf5b
4 changed files with 16 additions and 4 deletions

View File

@@ -306,8 +306,8 @@ export class DockerHost {
.header('Content-Type', 'application/json')
.header('X-Registry-Auth', this.registryToken)
.header('Host', 'docker.sock')
.timeout(600000) // Set 10 minute timeout for streaming operations
.options({ keepAlive: false, autoDrain: false }); // Disable auto-drain for streaming
.timeout(30000)
.options({ keepAlive: false, autoDrain: true }); // Disable auto-drain for streaming
// If we have a readStream, use the new stream method with logging
if (readStream) {