Josef Cacek created JCLOUDS-1011:
------------------------------------
Summary: 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)
|