Missing cancellation/abort mechanism in protocol #101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
If the client needs to abort mid-transfer, there is no way to tell the server. The client just disconnects, leaving the server to potentially hang on a read or write.
Location
src/shared/protocol.h (NEED STATUS enum)
src/shared/protocol.c
src/server/server.c
Suggested Fix
Add
STATUS_CANCELmessage. Client sends it before disconnecting. Server receives it and aborts the transfer gracefully (closes files, sends STATUS_OK, exits).Severity
high
Category
feature
Sub-Agent
feature-scout (FS-7)
This issue was automatically generated by the issue-creator agent.
Fixed in PR #148 — merged into main on 2026-07-29.