forked from openprivacy/libricochet-go
Protocol Question TODO
This commit is contained in:
parent
bf19d1b20c
commit
9788c07ac4
|
@ -360,7 +360,8 @@ func (rc *Connection) Process(handler Handler) error {
|
||||||
} else {
|
} else {
|
||||||
// When a non-zero packet is received for an unknown
|
// When a non-zero packet is received for an unknown
|
||||||
// channel, the recipient responds by closing
|
// 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))
|
rc.traceLog(fmt.Sprintf("received packet on unknown channel %d. closing.", packet.Channel))
|
||||||
if len(packet.Data) != 0 {
|
if len(packet.Data) != 0 {
|
||||||
rc.SendRicochetPacket(rc.Conn, packet.Channel, []byte{})
|
rc.SendRicochetPacket(rc.Conn, packet.Channel, []byte{})
|
||||||
|
|
Loading…
Reference in New Issue