cf delete file when there is an error during tx
Checklist (Please check before submitting)
- [x ] I reviewed the Contributing Guide.
- [x] I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.
Describe the bug CF deletes the file even when there is an error during the TX.
To Reproduce Steps to reproduce the behavior:
- Send an tx command/put file in polling directory with small "time-out" in config
- Error Message that file.
- File gets deleted.
Expected behavior A clear and concise description of what you expected to happen. If there is an error, the file should not be deleted.
Code snips If applicable, add references to the software.
System observed on:
- Hardware
- OS: [e.g. Linux 4.4]
- Versions [e.g. cFE 6.6, OSAL 4.2, PSP 1.3 for mcp750, any related apps]
Additional context Add any other context about the problem here.
Reporter Info Full name and company/organization if applicable
Anh Van, GSFC
Might want to handle the case where the file is in the polling directory differently, since if there's an error you could get into an endless loop of attempting to send the file over and over again. Maybe move the file to a "failed" directory?