[ 
https://issues.apache.org/jira/browse/JCLOUDS-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ignasi Barrera resolved JCLOUDS-1011.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

> 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
>    Affects Versions: 1.9.1
>            Reporter: Josef Cacek
>              Labels: docker
>             Fix For: 2.0.0
>
>
> 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)

Reply via email to