Update miekg/dns

This commit is contained in:
Frank Denis 2021-02-24 15:38:04 +01:00
parent 34909babfb
commit 1ae2281588
39 changed files with 274 additions and 29 deletions

View file

@ -9,7 +9,6 @@ package socket
import (
"os"
"runtime"
"syscall"
)
@ -26,7 +25,7 @@ func (c *Conn) recvMsg(m *Message, flags int) error {
var n int
fn := func(s uintptr) bool {
n, operr = recvmsg(s, &h, flags)
if operr == syscall.EAGAIN || (runtime.GOOS == "zos" && operr == syscall.EWOULDBLOCK) {
if operr == syscall.EAGAIN || operr == syscall.EWOULDBLOCK {
return false
}
return true
@ -63,7 +62,7 @@ func (c *Conn) sendMsg(m *Message, flags int) error {
var n int
fn := func(s uintptr) bool {
n, operr = sendmsg(s, &h, flags)
if operr == syscall.EAGAIN || (runtime.GOOS == "zos" && operr == syscall.EWOULDBLOCK) {
if operr == syscall.EAGAIN || operr == syscall.EWOULDBLOCK {
return false
}
return true