nasa / bplib

Apache License 2.0
27 stars 13 forks source link

bpcat should not stop/abort when running out of memory #126

Open jphickey opened 2 years ago

jphickey commented 2 years ago

The "bpcat" test program by default reserves 1MB of memory for temporary/ephemeral bundle storage. It will also send data as fast as it can read() from the file, which is generally faster than the rate at which it will be stored in persistent storage.

When sending a large file (greater than 1MB) this causes the temporary/ephemeral storage to be used up, which in turn causes bplib_send() to return an error at some point. This is a temporary error, but bpcat does not currently handle this and resume, it just aborts the transfer.