mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 21:43:11 +00:00
Downloading a CID that is unknown to the network would wait for the blockexchange to try to get the data. However, a subsequent API call, eg upload for that CID, or a blockexchange timeout would cause the dagger node to crash, due to an attempt to complete a future that had already been completed. We were able to narrow this down to an attempt to call `resp.finish()` when the download block had already returned an `RestApiResponse` (and never sent any chunks to the response from the libp2p stream). Change the HTTP response code for an unknown cid from 400 to 404. Fix spelling mistake “cunk”. Co-authored-by: Michael Bradley <michaelsbradleyjr@gmail.com> Co-authored-by: Michael Bradley <michaelsbradleyjr@gmail.com>
Description
Languages
Nim
94.6%
Python
3%
Shell
0.7%
Nix
0.6%
Makefile
0.6%
Other
0.4%