udp: remove read deadline

This commit is contained in:
Leo Balduf 2017-02-18 13:17:45 +01:00
parent bb93e478b8
commit 233c355526

View file

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