docker-hs
docker-hs copied to clipboard
defaultHttpHandler and unixHttpHandler use ResponseTimeoutDefault
Both defaultHttpHandler
and unixHttpHandler
use defaultManagerSettings
for which responseTimeout = ResponseTimeoutDefault
. This just came to bite me when I used the waitContainer
API with a non-trivial container task. It seems that the /wait
API does not send a response until the container has stopped, so using ResponseTimeoutDefault
does not make much sense here. I am wondering whether:
- It would make sense to document this and add a suitable warning to the documentation for
waitContainer
? - Modifying the request made in
waitContainer
to override theresponseTimeout
to set it toResponseTimeoutNone
?