• Rob Pike's avatar
    netchan: fix locking bug. · 59315fbf
    Rob Pike authored
    There's no need to hold the client mutex when calling encode, since encode itself
    uses a mutex to make the writes atomic.  However, we need to keep
    the messages ordered, so add a mutex for that purpose alone.
    Fixes #1244.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/2833041
    59315fbf
Name
Last commit
Last update
..
Makefile Loading commit data...
common.go Loading commit data...
export.go Loading commit data...
import.go Loading commit data...
netchan_test.go Loading commit data...