fix(classes.host): Adjust requestStreaming timeout and autoDrain; stabilize tests
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@apiclient.xyz/docker', | ||||
|   version: '1.3.2', | ||||
|   version: '1.3.3', | ||||
|   description: 'Provides easy communication with Docker remote API from Node.js, with TypeScript support.' | ||||
| } | ||||
|   | ||||
| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user