Open Ichbinjoe opened 5 years ago
does this add anything useful in terms of behaviour?
Also, we need to make sure this doesn't break js.
The only behavioral change this may bring is that our side will appear to hang up marginally sooner than previously.
You can see the discussion more in #18
Se still need to test this against JS, just in case. JS may close the entire stream prematurely when it receives a EOF on the read side.
ping @vasco-santos
Since we are done writing, we can close the write side of the stream before reading the resulting status.
Closes https://github.com/libp2p/go-libp2p-circuit/issues/18