mocknet: fix a race in V23CloseAtMessage

  The current v23Conn calls the matcher only with the first message
  in the given buffer. It means v23conn can miss the target message
  if the buffer has more than one messages.

  This causes flaky test failures since net.Conn.Read() can returns
  as many as bytes it received and it may not be closed depending
  on its buffer. E.g., rpc.TestStartCallBadProtocol.

Change-Id: I4b69ef9aa8eff70296d2b856167b5f39f5ed3149
3 files changed
tree: 44808d2cc6a8395c4300817dd31e7dd5f6c251c3
  1. cmd/
  2. envvar/
  3. examples/
  4. internal/
  5. lib/
  6. runtime/
  7. services/
  8. test/
  9. .gitignore
  10. AUTHORS
  11. CONTRIBUTORS
  12. LICENSE
  13. PATENTS
  14. README.md
  15. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.