diff options
| author | Rob Pike <r@golang.org> | 2014-10-01 13:18:44 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2014-10-01 13:18:44 -0700 |
| commit | cd5b785efe3cf67a8e065f8ff2ee8a39badbec40 (patch) | |
| tree | 3fe3f1e48e5edc0cc1bdee8e1b00112b3f745208 /src/encoding/json | |
| parent | 85cdc49e8abed5c48d9b24eedff85e44e38269b9 (diff) | |
| download | go-cd5b785efe3cf67a8e065f8ff2ee8a39badbec40.tar.xz | |
net/rpc: shut down connection if gob has error
The nicest solution would be to buffer the message and only write
it if it encodes correctly, but that adds considerable memory and
CPU overhead for a very rare condition. Instead, we just shut
down the connection if this happens.
Fixes #7689.
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/146670043
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
