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 err == nil {
|
||||||
if csp.GetGroupMessage() != nil {
|
if csp.GetGroupMessage() != nil {
|
||||||
gm := csp.GetGroupMessage()
|
gm := csp.GetGroupMessage()
|
||||||
// We create a new profile here to avoid leaking any information about processing
|
// We create a new go routine here to avoid leaking any information about processing time
|
||||||
// times.
|
// TODO Server can probably try to use this to DoS a peer
|
||||||
// TODO Is this necessary / sufficient?
|
|
||||||
go cplc.Handler.HandleGroupMessage(gm)
|
go cplc.Handler.HandleGroupMessage(gm)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue