• Roger Peppe's avatar
    net/rpc: avoid racy use of closing flag. · 7edd1335
    Roger Peppe authored
    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://golang.org/cl/7338045
    7edd1335
Name
Last commit
Last update
..
jsonrpc Loading commit data...
client.go Loading commit data...
debug.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...