[ https://issues.apache.org/jira/browse/JCLOUDS-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941107#comment-14941107
]
Josef Cacek commented on JCLOUDS-1011:
--------------------------------------
PR sent: https://github.com/jclouds/jclouds-labs/pull/206
> Docker: HTTP client connection has to be closed after calling MiscApi.build() method
> ------------------------------------------------------------------------------------
>
> Key: JCLOUDS-1011
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1011
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-labs
> Reporter: Josef Cacek
>
> There is a problem in reusing HTTP connections after calling docker command to build
new image.
> The Docker sometimes return HTTP response 500 (Internal server error) during subsequent
request going through the same connection. The response body is:
> {code}
> http: Hijack is incompatible with use of CloseNotifier
> {code}
> For details on Docker side look at:
> * https://github.com/docker/docker/issues/12845
> * https://github.com/docker/compose/pull/1374
> As a solution in {{MiscApi.build()}} methods we can force closing connection by setting
HTTP header:
> {code}
> Connection: close
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
|