use-go / onvif

full and enhanced onvif protocol stack in golang.
MIT License
384 stars 180 forks source link

Do not log "i/o timeout" errors #4

Closed GreenLightning closed 3 years ago

GreenLightning commented 3 years ago

This commit avoids the logging of read udp 0.0.0.0:1024: raw-read udp4 0.0.0.0:1024: i/o timeout errors, when calling wsdiscovery.SendProbe() as this error is expected and used to exit the loop.

tangtang666 commented 3 years ago

this work,but the go version need 1.15

GreenLightning commented 3 years ago

os.ErrDeadlineExceeded was only added in Go 1.15, so I have updated the go.mod file to require that version.