net/rpc: avoid racy use of closing flag.
It's accessed without mutex protection
in a different goroutine from the one that
sets it.
Also make sure that Client.Call after Client.Close
will reliably return ErrShutdown, and that clients
see ErrShutdown rather than io.EOF when appropriate.
Suggestions welcome for a way to reliably test
the mutex issue.
*** Submitted as https://code.google.com/p/go/source/detail?r=4bbd9bfda787 *** net/rpc: avoid racy use of closing flag. It's accessed without ...
10 years, 3 months ago
(2013-02-25 16:22:37 UTC)
#3
*** Submitted as https://code.google.com/p/go/source/detail?r=4bbd9bfda787 ***
net/rpc: avoid racy use of closing flag.
It's accessed without mutex protection
in a different goroutine from the one that
sets it.
Also make sure that Client.Call after Client.Close
will reliably return ErrShutdown, and that clients
see ErrShutdown rather than io.EOF when appropriate.
Suggestions welcome for a way to reliably test
the mutex issue.
R=r, iant
CC=golang-dev
https://codereview.appspot.com/7338045
Issue 7338045: code review 7338045: net/rpc: avoid racy use of closing flag.
(Closed)
Created 10 years, 3 months ago by rog
Modified 10 years, 3 months ago
Reviewers:
Base URL:
Comments: 0