Re-use socket for udp

This commit is contained in:
Miek Gieben 2011-08-10 14:11:53 +02:00
parent 46399602a0
commit 146845ebde
1 changed files with 0 additions and 2 deletions

View File

@ -54,7 +54,6 @@ func main() {
c.Net = "tcp"
}
/*
if !*tcp {
// For UDP give each goroutine a socket.
// With TCP we re-dial every time
@ -64,7 +63,6 @@ func main() {
}
defer c.Close()
}
*/
r := new(dns.Msg)
for {