refraction-networking / water

WebAssembly Transport Executables Runtime
Apache License 2.0
22 stars 1 forks source link

feat: switch between using UnixConn and TCPConn for WASI #68

Open gaukas opened 2 months ago

gaukas commented 2 months ago

Currently both transport/v0 and transport/v1 hardcodes TCPConn for local WASI usage (caller <==> WATM) and UnixConn is unused. It would be potentially interesting to allow the use of UnixConn by caller's choice.

gaukas commented 2 months ago

This change potentially requires some more changes to be made to our dependency, the WebAssembly runtime wazero, given currently wazero supports only TCPConn among all net.Conn implementations.

gaukas commented 2 months ago

Blocked until #69 is resolved and result showing UnixConn prevails under certain circumstances when comparing to TCPConn.