When file size is an exact multiple of chunk_size, glance client
is processing EOF in image-data as a chunk and sends to
glance-api. The server treats this as the end of chunked
transmission and sends a http response.
When the actual last chunk is sent by the 'requests' library, the
server sends a 400 response and tracebacks with broken pipe
as the client has already closed the socket.
Reviewed: https:/ /review. openstack. org/142952 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=e3600ad7beb 7cb4a067038d750 e530a64fd1e93a
Committed: https:/
Submitter: Jenkins
Branch: master
commit e3600ad7beb7cb4 a067038d750e530 a64fd1e93a
Author: Sabari Kumar Murugesan <email address hidden>
Date: Thu Dec 18 16:52:07 2014 -0800
Fix broken-pipe seen in glance-api
When file size is an exact multiple of chunk_size, glance client
is processing EOF in image-data as a chunk and sends to
glance-api. The server treats this as the end of chunked
transmission and sends a http response.
When the actual last chunk is sent by the 'requests' library, the
server sends a 400 response and tracebacks with broken pipe
as the client has already closed the socket.
Closes-Bug: #1342080 c252ddc919a230a 7d3ca16765f
Change-Id: Icdbff838450db1