Browse code

Reduce the Destroy timeout from 10 to 3 seconds

Guillaume J. Charmes authored on 2013/05/10 13:53:56
Showing 2 changed files
... ...
@@ -187,7 +187,7 @@ func (runtime *Runtime) Destroy(container *Container) error {
187 187
 		return fmt.Errorf("Container %v not found - maybe it was already destroyed?", container.Id)
188 188
 	}
189 189
 
190
-	if err := container.Stop(10); err != nil {
190
+	if err := container.Stop(3); err != nil {
191 191
 		return err
192 192
 	}
193 193
 	if mounted, err := container.Mounted(); err != nil {
... ...
@@ -497,6 +497,7 @@ func (srv *Server) ContainerAttach(name string, logs, stream, stdin, stdout, std
497 497
 	if container == nil {
498 498
 		return fmt.Errorf("No such container: %s", name)
499 499
 	}
500
+
500 501
 	//logs
501 502
 	if logs {
502 503
 		if stdout {