Skip to content

Commit 1636db0

Browse files
committed
core/connmap: m comments
1 parent 99d256b commit 1636db0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

intra/core/connmap.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (h *cm) trackDstLocked(t ConnTuple, conns []net.Conn) {
6565
if c == nil {
6666
continue
6767
}
68+
// TODO: handle unconnected udp sockets
6869
raddr := c.RemoteAddr()
6970
if raddr == nil {
7071
continue
@@ -150,6 +151,7 @@ func (h *cm) Find(dst string) (tups []ConnTuple) {
150151
h.RLock()
151152
defer h.RUnlock()
152153

154+
// TODO: handle unconnected udp sockets
153155
if tups, ok := h.dsttracker[dst]; ok {
154156
return tups
155157
}

0 commit comments

Comments
 (0)