1
0
mirror of https://github.com/golang/go synced 2024-10-04 20:21:22 -06:00
go/src/pkg/exp
Brad Fitzpatrick b71883e9b0 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 #2723

R=r, rsc, dave
CC=golang-dev
https://golang.org/cl/5555048
2012-01-18 16:24:06 -08:00
..
ebnf renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
ebnflint src/pkg/[a-m]*: gofix -r error -force=error 2011-11-01 22:04:37 -04:00
gotype os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
inotify exp/inotify: fix data race in linux tests 2012-01-16 11:11:58 +04:00
norm exp/norm: fixed two unrelated bugs in normalization library. 2011-12-23 18:21:26 +01:00
proxy exp/proxy: fix build after URL changes 2012-01-17 00:55:35 -02:00
spdy renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
sql exp/sql: copy when scanning into []byte by default 2012-01-17 10:44:35 -08:00
ssh net: change SetTimeout to SetDeadline 2012-01-18 16:24:06 -08:00
terminal exp/terminal: fix build on non-Linux using Makefiles 2012-01-16 17:49:58 -05:00
types go/token: replaced Files() with Iterate() 2012-01-18 14:10:42 -08:00
utf8string utf8.String: move to exp/utf8string.String 2012-01-17 14:21:50 -08:00
winfsnotify more tags for go/build 2011-12-15 13:35:59 -05:00
wingui more tags for go/build 2011-12-15 13:35:59 -05:00
README

This directory tree contains experimental packages and
unfinished code that is subject to even more change than the
rest of the Go tree.