blob_client_wrapper::put_blob may lose error codes from its call to m_blobClient->upload_block_blob_from_stream. If that call results in an error then errno is set to the value of the HTTP error code, for example 403. Then put_blob closes the input stream, which will reset errno to 0. The caller of blob_client_wrapper::put_blob then has no indication that the upload failed.
blob_client_wrapper::put_blob
may lose error codes from its call tom_blobClient->upload_block_blob_from_stream
. If that call results in an error thenerrno
is set to the value of the HTTP error code, for example 403. Thenput_blob
closes the input stream, which will reseterrno
to 0. The caller ofblob_client_wrapper::put_blob
then has no indication that the upload failed.