diff --git a/Package.resolved b/Package.resolved index 414623d6..a8243949 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "23302f085b6239754a405a0a6ec0dcaad1d48086319c3eaa5a5650b4bf2670e5", + "originHash" : "a04bb1d08ef1fca925fcfe3250303675ad17c962fecc35b23972ebb8598bb63f", "pins" : [ { "identity" : "async-http-client", diff --git a/Sources/ContainerClient/Core/ClientContainer.swift b/Sources/ContainerClient/Core/ClientContainer.swift index a110fe50..b8b0999b 100644 --- a/Sources/ContainerClient/Core/ClientContainer.swift +++ b/Sources/ContainerClient/Core/ClientContainer.swift @@ -196,13 +196,7 @@ extension ClientContainer { request.set(key: .id, value: self.id) request.set(key: .stopOptions, value: data) - // Stop is somewhat more prone to hanging than other commands given it - // has quite a bit of `wait()`'s down the chain to make sure the container actually - // exited. To combat a potential hang, lets timeout if we don't return in a small - // time period after the actual stop timeout sent via .stopOptions (the time - // until we send SIGKILL after SIGTERM if the container still hasn't exited). - let responseTimeout = Duration(.seconds(Int64(opts.timeoutInSeconds + 3))) - try await client.send(request, responseTimeout: responseTimeout) + try await client.send(request) } catch { throw ContainerizationError( .internalError,