]> Cypherpunks repositories - gostls13.git/commit
netchan: use acknowledgements on export send.
authorRob Pike <r@golang.org>
Sat, 4 Sep 2010 13:41:54 +0000 (23:41 +1000)
committerRob Pike <r@golang.org>
Sat, 4 Sep 2010 13:41:54 +0000 (23:41 +1000)
commitd54b921c9baf19105d074896da98d6dbf3c9e219
tree7fd411c84eaad40f29b7f72dba917d7a8e2ba690
parent6405ab0fae63b9b5e051c8d19ba2ee3666cb327e
netchan: use acknowledgements on export send.
Also add exporter.Drain() to wait for completion.
This makes it possible for an Exporter to fire off a message
and wait (by calling Drain) for the message to be received,
even if a client has yet to call to retrieve it.

Once this design is settled, I'll do the same for import send.

Testing strategies welcome.  I have some working stand-alone
tests.

R=rsc
CC=golang-dev
https://golang.org/cl/2137041
src/pkg/netchan/common.go
src/pkg/netchan/export.go
src/pkg/netchan/import.go
src/pkg/netchan/netchan_test.go