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

Error on ListenPacket with wildcard address (":8080") #7

Closed
hodduc opened this issue Jun 11, 2015 · 2 comments
Closed

Error on ListenPacket with wildcard address (":8080") #7

hodduc opened this issue Jun 11, 2015 · 2 comments
Assignees

Comments

@hodduc
Copy link

hodduc commented Jun 11, 2015

When i Listen on ":8080" by udp with reuseport, following error occurs.

$ cat e.go
package main

import (
    "fmt"

    reuse "github.com/jbenet/go-reuseport"
)

func main() {
    _, err := reuse.ListenPacket("udp", ":8080")
    fmt.Println(err)
}

$ go run e.go
address family not supported by protocol

This breaks compatibility with golang's standard net.ListenPacket.

In Golang standard, they are guessing address family from network and wildcard address ( http://golang.org/src/net/ipsock_posix.go#L72)

@jbenet
Copy link
Contributor

jbenet commented Jun 12, 2015

@hodduc good catch! have a suggested diff? i can take a look this weekend, but cant before

@anacrolix anacrolix self-assigned this Jan 2, 2019
anacrolix added a commit that referenced this issue Jan 3, 2019
anacrolix added a commit that referenced this issue Jan 4, 2019
anacrolix added a commit that referenced this issue Jan 4, 2019
@anacrolix
Copy link
Contributor

Fixed by #56 and #57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants