refraction-networking / water

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

bug: `socket.UnixConnPair()` may return error upon successfully creating pairs #5

Closed gaukas closed 7 months ago

gaukas commented 11 months ago

Cause

In e8cc8e6bdeced3115617d990f33b551714c1db66 we patched the unsafe defer as suggested by deepsource and therefore we are returning with the error returned by .Close() in a few functions.

Example

(net.Listener).Close() returns a non-crashing error without impacting the program safeness/liveness.

https://github.com/gaukas/water/actions/runs/6473922694/attempts/1

Suggested Fix

gaukas commented 8 months ago

I again observed some potentially related behavior during implementing a test case. A net.Listener became closed without a party explicitly calling .Close(). Need some stable reproduce but I will just keep this for record today.

gaukas commented 7 months ago

Confirmed irrelevance, closing.