summaryrefslogtreecommitdiff
path: root/doc/gccgo_install.html
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2012-01-18 16:24:06 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2012-01-18 16:24:06 -0800
commitb8c196719f17f14e3f96141b7b8eeb232f9e5ab9 (patch)
treeabf0fcbd276471a9a69cc59b124cb0b880c59aaf /doc/gccgo_install.html
parente61b231d30e28b67eab421dd89e423bc4e118d4e (diff)
downloadgo-b8c196719f17f14e3f96141b7b8eeb232f9e5ab9.tar.gz
net: change SetTimeout to SetDeadline
Previously, a timeout (in int64 nanoseconds) applied to a granularity even smaller than one operation: a 100 byte read with a 1 second timeout could take 100 seconds, if the bytes all arrived on the network 1 second apart. This was confusing. Rather than making the timeout granularity be per-Read/Write, this CL makes callers set an absolute deadline (in time.Time) after which operations will fail. This makes it possible to set deadlines at higher levels, without knowing exactly how many read/write operations will happen in e.g. reading an HTTP request. Fixes issue 2723 R=r, rsc, dave CC=golang-dev http://codereview.appspot.com/5555048
Diffstat (limited to 'doc/gccgo_install.html')
0 files changed, 0 insertions, 0 deletions