• 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
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...