dispatchrun / wasi-go

A Go implementation of the WebAssembly System Interface (WASI)
Apache License 2.0
124 stars 7 forks source link

unix: fix SockConnect return addr #39

Closed chriso closed 1 year ago

chriso commented 1 year ago

In https://github.com/stealthrocket/wasi-go/pull/37, SockConnect was updated to return the local address that the connection was made from.

This PR fixes the unix implementation to do that, and to correctly handle EINPROGRESS errors.