Merge pull request #300 from mrd0ll4r/udpReadDeadline
udp: remove read deadline
This commit is contained in:
commit
1ef65d3704
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue