nasa / bplib

Apache License 2.0
27 stars 13 forks source link

bplib_accept must loop on expired payload #50

Closed jpswinski closed 4 years ago

jpswinski commented 4 years ago

Currently, if the bplib_accept function dequeues an expired payload, it returns an error indicating as such. But it should loop until it either finds an unexpired payload or doesn't find any and times out. This would make it consistent with bplib_load.

jpswinski commented 4 years ago

Fixed as a part of the return code clean up - expired is now longer returned by the accept function. Either it will return a payload or it will timeout (or return an error).