Skip to content

tor-proto: Implement IncomingStream::discard()

gabi-250 requested to merge gabi-250/arti:tor-proto-incoming-discard into main

This MR also introduces an IncomingStreamState enum, which indicates whether the stream was accepted, discarded, or rejected, or if it is still pending. The is_rejected/is_accepted boolean flags are no longer needed.

Without this change, I would've had to introduce yet another boolean flag for the state entered after calling discard().

Merge request reports