Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prompt primitive #41

Merged
merged 2 commits into from
Jun 23, 2023
Merged

Add Prompt primitive #41

merged 2 commits into from
Jun 23, 2023

Conversation

mkolopanis
Copy link
Contributor

Adds a prompt primitive to trigger a prompt NAK or prompt KeepAlive PDU from the mission specific User process.

I tried to be maximally flexible about when prompts could be generated in the Send, but it just ended up being the highest priority PDU for the Send transaction. At first I was not totally sold on the idea, but it mirrors the Recv's handling of prompt so maybe it is okay. I also figure, if the mission is trying to send a Prompt it should be handle ASAP.

thoughts @xpromache ?

closes #34

@codecov-commenter
Copy link

codecov-commenter commented Jun 14, 2023

Codecov Report

Patch coverage: 90.47% and project coverage change: -0.09 ⚠️

Comparison is base (1fc1277) 95.80% compared to head (9aa567a) 95.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
- Coverage   95.80%   95.72%   -0.09%     
==========================================
  Files          17       17              
  Lines        7581     7666      +85     
==========================================
+ Hits         7263     7338      +75     
- Misses        318      328      +10     
Impacted Files Coverage Δ
cfdp-core/src/daemon.rs 72.10% <0.00%> (-1.42%) ⬇️
cfdp-core/src/transaction/send.rs 97.54% <97.43%> (+0.05%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mkolopanis
Copy link
Contributor Author

@xpromache I'd like to get this one in for a misson I'm working on, but if you have a better idea of how to implement it I'd love to hear it.

@xpromache
Copy link
Contributor

I looked through the standard and your implementation makes sense.

I agree that if the user triggers a Prompt PDU it has to be the highest priority; if there is a file being sent, you don't want to wait for the EOF, it doesn't make any sense.

@mkolopanis mkolopanis merged commit 869cb78 into main Jun 23, 2023
10 checks passed
@mkolopanis mkolopanis deleted the prompt_primitive branch June 23, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Prompt Primitive
3 participants