Protocol Question TODO

This commit is contained in:
Sarah Jamie Lewis 2018-01-12 13:56:32 -05:00
parent bf19d1b20c
commit 9788c07ac4
1 changed files with 2 additions and 1 deletions

View File

@ -360,7 +360,8 @@ func (rc *Connection) Process(handler Handler) error {
} else {
// When a non-zero packet is received for an unknown
// channel, the recipient responds by closing
// that channel.
// that channel
// TODO: (otherwise we just ignore) Clarify Protocol Spec?
rc.traceLog(fmt.Sprintf("received packet on unknown channel %d. closing.", packet.Channel))
if len(packet.Data) != 0 {
rc.SendRicochetPacket(rc.Conn, packet.Channel, []byte{})