Closed mbg closed 2 years ago
Hi @denibertovic and @jprider63 šš» this PR has been open for nearly two years now and I would still like to see something like this merged. Is there anything I can do to help this along? Do you need any help maintaining this library?
@mbg I'll take a look over the weekend and see if I can get this merged.
This is awesome!
@mbg Finally got around to this. I don't have any particular strong opinion about this. But as you say if it works for you in practice for a while now I see no reason why we can't merge it. Thanks!
Thanks for merging this.
On Tue, Mar 22, 2022, 00:16 Hai Nguyen Quang @.***> wrote:
This is awesome!
ā Reply to this email directly, view it on GitHub https://github.com/denibertovic/docker-hs/pull/79#issuecomment-1074707611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAE5V6WCYFUXFRVS2W5QHTVBFCQTANCNFSM4MBZAQBQ . You are receiving this because you commented.Message ID: @.***>
This PR consists of three commits which address #78 in various ways:
waitContainer
's documentationdefaultUnixManagerSettings
. This is just some code refactored out fromunixHttpHandler
so thatunixHttpHandler "/var/run/docker.sock"
is equivalent to:This allows the manager to be customised, e.g. to set a different timeout:
getEndpointTimeout
which returnsresponseTimeoutDefault
for all endpoints exceptWaitContainerEndpoint
for which it returnsresponseTimeoutNone
. This is then used inmkHttpRequest
to set the value ofresponseTimeout
for the request that is constructed.I would think that the first two are fairly safe to merge, while the third one may require some thought.