1
0
mirror of https://github.com/golang/go synced 2024-11-12 02:10:21 -07:00
go/doc
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
..
articles doc: only trim newlines in tmpltohtml, gofmt progs 2012-01-09 20:05:34 +11:00
codelab/wiki various: use $GCFLAGS and $GCIMPORTS like Make does 2011-12-16 11:31:39 -05:00
codewalk doc/codewalk/functions.xml: Fix broken function examples 2012-01-03 12:15:08 +11:00
devel doc: fix anchor tag for latest weekly. 2012-01-17 09:04:51 +11:00
gopher doc/gopher: add a small gif to use as an app engine logo on GAE pages. 2011-06-14 17:25:57 +10:00
play godoc: add dummy playground.js to silence godoc warning at start-up 2011-08-22 14:06:07 -07:00
progs build: don't use a fixed filename in temp 2012-01-12 14:45:32 -08:00
talks use new strconv API 2011-12-05 15:48:46 -05:00
all.css doc: fix misspelt CSS properties. 2011-12-23 08:48:21 +11:00
button_background.png golang.org redesign 2010-09-16 14:01:02 +10:00
code.html doc: update "How to Write Go Code" to use the go tool 2012-01-12 08:25:49 +11:00
codereview_with_mq.html doc: various changes for validating HTML 2010-08-30 09:58:27 +10:00
community.html golang.org redesign 2010-09-16 14:01:02 +10:00
contrib.html doc: refer to http://build.golang.org/ where applicable 2011-12-22 14:21:25 +11:00
contribute.html doc: use 2012 for year in model standard copyright header 2012-01-09 10:47:28 -08:00
debugging_with_gdb.html all: rename os.Error to error in various non-code contexts 2011-11-01 22:58:09 -04:00
docs.html doc/docs: fix broken links 2012-01-17 10:29:08 -08:00
effective_go.html effective_go: provide reference to runtime.NumCPU() 2012-01-12 22:06:50 +04:00
effective_go.tmpl effective_go: provide reference to runtime.NumCPU() 2012-01-12 22:06:50 +04:00
ExpressivenessOfGo.pdf fix bug in example. need to convert Value to float in Abs example 2010-10-18 16:05:50 -07:00
frontpage.css doc: add I/O 2011 talks to talks/, docs.html, and front page. 2011-05-17 13:46:54 +10:00
gccgo_contribute.html docs: make "runtime" a word only as a name for the package. 2011-03-01 13:54:22 -08:00
gccgo_install.html doc: when configuring gold for gccgo, use --enable-gold=default 2011-09-19 11:54:07 -07:00
go1.html net: change SetTimeout to SetDeadline 2012-01-18 16:24:06 -08:00
go1.tmpl net: change SetTimeout to SetDeadline 2012-01-18 16:24:06 -08:00
go_faq.html FAQ: rearrange and expand the discussion of testing 2011-11-09 13:19:23 -08:00
go_for_cpp_programmers.html docs: make "runtime" a word only as a name for the package. 2011-03-01 13:54:22 -08:00
go_mem.html doc: fix memory model read visibility bug 2011-09-26 12:54:30 -04:00
go_spec.html spec: change the wording regarding select statement choice 2012-01-13 13:38:36 -08:00
go_tutorial.html doc: only trim newlines in tmpltohtml, gofmt progs 2012-01-09 20:05:34 +11:00
go_tutorial.tmpl doc: delete go course notes 2011-12-19 13:23:27 -08:00
go-logo-black.png godoc: style update. 2009-11-05 12:18:54 -08:00
go-logo-blue.png Update the styling of the godoc pages. 2009-11-03 19:59:45 -08:00
go-logo-white.png create doc/talks/. 2010-01-13 16:26:22 -08:00
godocs.js godoc: generate package toc in template, not in JavaScript 2011-10-18 16:23:35 -04:00
ie.css golang.org redesign 2010-09-16 14:01:02 +10:00
install.html doc: Fix URL to the Xcode web page 2012-01-04 11:31:51 +11:00
logo-153x55.png new logo 2009-10-12 22:58:32 -07:00
logo.png golang.org redesign 2010-09-16 14:01:02 +10:00
Makefile doc: add Slices: usage and internals article 2012-01-06 09:21:43 +11:00
makehtml doc: add Defer, Panic, and Recover article 2011-12-12 13:15:29 +11:00
play_overlay.png golang.org redesign 2010-09-16 14:01:02 +10:00
playground.html playground.html: filesystem is not a word. 2010-10-06 23:56:13 +02:00
popups.js godoc: initial support for showing popup information 2010-03-16 14:17:42 -07:00
root.html doc: refer to http://build.golang.org/ where applicable 2011-12-22 14:21:25 +11:00
sieve.gif repair corrupted sieve.gif 2009-10-30 10:34:01 -07:00
tmpltohtml.go doc: only trim newlines in tmpltohtml, gofmt progs 2012-01-09 20:05:34 +11:00
video-001.png golang.org redesign 2010-09-16 14:01:02 +10:00
video-002.png golang.org redesign 2010-09-16 14:01:02 +10:00
video-003.png golang.org redesign 2010-09-16 14:01:02 +10:00
video-004.png doc: add Practical Go Programming to front page and docs.html 2010-12-03 06:57:30 +09:00
video-005.jpg doc: add I/O 2011 talks to talks/, docs.html, and front page. 2011-05-17 13:46:54 +10:00