Revamp connection handling flow to fix race condition and support info-only packets
This commit is contained in:
@@ -15,6 +15,8 @@ func GetMulticastRequestConn(responseConn *Connection, responseFromNet *net.IPNe
|
||||
// Find requesting multicast/broadcast connection.
|
||||
for _, conn := range conns.clone() {
|
||||
switch {
|
||||
case !conn.DataIsComplete():
|
||||
// Ignore connection with incomplete data.
|
||||
case conn.Inbound:
|
||||
// Ignore incoming connections.
|
||||
case conn.Ended != 0:
|
||||
|
||||
Reference in New Issue
Block a user