You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, 'transfer-encoding: chunked' is causing curl to hang
indefinetly when uploading an SBOM. There are two reasons one may want
to use this chunked encoding.
First, if the length of the content being uploaded is unknown. This is
not the case here since we have the full file before making the API
call.
Second, if the file being uploaded is excessively large, the targeted
server may require the data to be streamed via chunks. Although SBOMs
can be quite large, we don't seem to be anywhere near it. (The limit on
TPA is currently not documented.)
It is also important to call out that when using chunked encoding, "the
content-length header must be omitted":
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Transfer-Encoding#chunked
For these reasonse, this commit removes the chunked encoding.
Additionally, the default `retry-max-timeout` is changed from 0 (no
timeout) to 10 minutes which should be quite generous. The default value
is used if the token doesn't provide its own expiration.
Signed-off-by: Luiz Carvalho <[email protected]>
0 commit comments