Take 5
This commit is contained in:
parent
785f6962e3
commit
6592189300
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -111,6 +111,10 @@ func main() {
|
|||
|
||||
// Incoming packet loop
|
||||
for {
|
||||
if ctx.Err() != nil {
|
||||
return
|
||||
}
|
||||
|
||||
pktbuf := make([]byte, 65536)
|
||||
pktlen, raddr, readErr := ln.ReadFromUDP(pktbuf)
|
||||
// net.PacketConn.ReadFrom: "Callers should always process
|
||||
|
|
Loading…
Reference in a new issue