forked from cwtch.im/cwtch
Added concern about potential DoS vector
This commit is contained in:
parent
5f3ee80627
commit
027921f760
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue