With this change, we remove the wasip1.conn wrapper for net.Conn and instead operate on the net.Addr values returned by the network connections. This mechanism relies on documented behavior of the net package which says that the connection objects do not modify their address values and return the same value over multiple calls to their LocalAddr and RemoteAddr methods.
This PR depends on https://go-review.googlesource.com/c/go/+/502375/1
With this change, we remove the
wasip1.conn
wrapper fornet.Conn
and instead operate on thenet.Addr
values returned by the network connections. This mechanism relies on documented behavior of thenet
package which says that the connection objects do not modify their address values and return the same value over multiple calls to theirLocalAddr
andRemoteAddr
methods.