Merge pull request #300 from mrd0ll4r/udpReadDeadline

udp: remove read deadline
This commit is contained in:
mrd0ll4r 2017-02-18 21:04:18 +01:00 committed by GitHub
commit 1ef65d3704

View file

@ -136,7 +136,6 @@ func (t *Frontend) ListenAndServe() error {
// Read a UDP packet into a reusable buffer. // Read a UDP packet into a reusable buffer.
buffer := pool.Get() buffer := pool.Get()
t.socket.SetReadDeadline(time.Now().Add(time.Second))
n, addr, err := t.socket.ReadFromUDP(buffer) n, addr, err := t.socket.ReadFromUDP(buffer)
if err != nil { if err != nil {
pool.Put(buffer) pool.Put(buffer)