• Dmitry Vyukov's avatar
    net/rpc: clarify requirements for connections and codecs · 08ab8204
    Dmitry Vyukov authored
    1. Connections and codecs need to be partially safe for concurrent use.
       Namely, read side is serialized by one mutex,
       and writing side is serialized by another.
       Current comment says that they need to be fully thread-safe,
       which makes the default implementations (gobClientCodec/gobServerCodec)
       non-conforming.
    
    2. Say that ServerCodec.Close can be called multiple times
       and must be idempotent. Server requires this and gobServerCodec
       accounts for this,  but the requirement is not documented.
    
    Change-Id: Ie877e37891fed28056e3d9d1722edaed8e154067
    Reviewed-on: https://go-review.googlesource.com/120818Reviewed-by: 's avatarRob Pike <r@golang.org>
    08ab8204
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...