/ go Public
net: Conn.Close() does not error on double close on wasm #45423
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Does this issue reproduce with the latest release?
What did you do?
Tried to write a test that checks whether a
net.Connis already closed by checking that calling
Closereturns an error and run it on wasm. See
Lines 1980 to 1982 in 5d5f779
What did you expect to see?
An error suggesting that the connection has already been closed, as is consistent with all other architectures tested.
What did you see instead?
I think the offending code is here:
Lines 110 to 115 in 5d5f779
On unix platforms the behaviour is to return
Lines 93 to 96 in 5d5f779
Lines 42 to 47 in 5d5f779
The text was updated successfully, but these errors were encountered: