Added concern about potential DoS vector

This commit is contained in:
Sarah Jamie Lewis 2018-05-16 14:33:13 -07:00
parent 5f3ee80627
commit 027921f760
1 changed files with 2 additions and 3 deletions

View File

@ -78,9 +78,8 @@ func (cplc *CwtchPeerListenChannel) Packet(data []byte) {
if err == nil {
if csp.GetGroupMessage() != nil {
gm := csp.GetGroupMessage()
// We create a new profile here to avoid leaking any information about processing
// times.
// TODO Is this necessary / sufficient?
// We create a new go routine here to avoid leaking any information about processing time
// TODO Server can probably try to use this to DoS a peer
go cplc.Handler.HandleGroupMessage(gm)
}
}