x/mobile: net.UDPConn.ReadFromUDP don't return error when i use net.UDPConn.Close() #25839
Milestone
Comments
There is not enough information in this report to diagnose the issue. Please include a complete, self-contained code example if possible, ideally as a runnable program in the playground. |
CC: @eliasnaur |
Apart from the self-contained example, is this reproducible on a regular Linux? |
I also use it on android and iOS,iOS is ok,but android don't return error。I guess that the bottom of Android don't return error code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please answer these questions before submitting your issue. Thanks!
I'm trying to ship a golang binary inside a android app
conn, err := net.DialUDP("udp", nil, raddr)
if err != nil{
//xxxx
}
size, raddr, err1 := conn.ReadFromUDP(buffer[:])
It's working。but when i use conn.Close(),err1 don't return error,it's waiting for ReadFromUDP
iPhone is ok.
What version of Go are you using (
go version
)?go1.10.2
gomobile is last
The text was updated successfully, but these errors were encountered: