Closed ujos closed 6 years ago
I think yes. This should be added to a list of protocol violations.
Yes generally speaking any thing received out of sequence will be terminated such as sending FinishedReceiving before FinishedSending, sending Terminate after FinsihedSending but before FinishedReceiving etc
sending Terminate after FinsihedSending but before FinishedReceiving etc
Why Terminate before FinishedReceiving is a protocol violation?
@ujos , an edge case: if the peer sent FinishedSending but then violated the protocol by sending another application message, it seems you would be obligated to terminate immediately. But that might be counter to your best interests if you had other messages queued up before responding with FinishedReceiving. A bit of a mess. Bad behavior should have consequences.
I'm not sure if I understand the case.
What if remote peer sends Finished Receiving message while local peer did not send Finished Sending message. Is this Protocol Violation case?