Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile: net.UDPConn.ReadFromUDP don't return error when i use net.UDPConn.Close() #25839

Closed
happyEgg opened this issue Jun 12, 2018 · 5 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@happyEgg
Copy link

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

@bcmills
Copy link
Contributor

bcmills commented Jun 12, 2018

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.

@bcmills bcmills added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Jun 12, 2018
@bcmills bcmills added this to the Unreleased milestone Jun 12, 2018
@bcmills bcmills added the mobile Android, iOS, and x/mobile label Jun 12, 2018
@bcmills
Copy link
Contributor

bcmills commented Jun 12, 2018

CC: @eliasnaur

@eliasnaur
Copy link
Contributor

Apart from the self-contained example, is this reproducible on a regular Linux?

@happyEgg
Copy link
Author

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

@FiloSottile FiloSottile changed the title gomobile: net.UDPConn.ReadFromUDP don't return error when i use net.UDPConn.Close() x/mobile: net.UDPConn.ReadFromUDP don't return error when i use net.UDPConn.Close() Jul 19, 2018
@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Dec 26, 2022
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants