aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-05weekly.2011-04-04weekly.2011-04-04Andrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/4363043
2011-04-04http: ignore Transfer-Encoding on HEAD responsesBrad Fitzpatrick
Amazon S3 sends Transfer-Encoding "chunked" on its 404 responses to HEAD requests for missing objects. We weren't ignoring the Transfer-Encoding and were thus interpretting the subsequent response headers as a chunk header from the previous responses body (but a HEAD response can't have a body) R=rsc, adg CC=golang-dev https://golang.org/cl/4346050
2011-04-04http: fix Transport connection re-use raceBrad Fitzpatrick
A connection shouldn't be made available for re-use until its body has been consumed. (except in the case of pipelining, which isn't implemented yet) This CL fixes some issues seen with heavy load against Amazon S3. Subtle implementation detail: to prevent a race with the client requesting a new connection before previous one is returned, we actually have to call putIdleConnection _before_ we return from the final Read/Close call on the http.Response.Body. R=rsc, adg CC=golang-dev https://golang.org/cl/4351048
2011-04-05net: fix typoMikio Hara
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4315049
2011-04-04filepath: new Abs functionGustavo Niemeyer
R=golang-dev, rsc1, peterGo, bsiegert, r, mattn CC=golang-dev https://golang.org/cl/4271057
2011-04-04http: fix hanging bug with HEAD responsesBrad Fitzpatrick
The transport readLoop was waiting forever for the client to read the non-existent body before proceeding to read the next request. R=rsc CC=golang-dev https://golang.org/cl/4357051
2011-04-04os: add Seek whence constantsBrad Fitzpatrick
R=r, r2, rsc1, rsc, jacek.masiulaniec CC=golang-dev https://golang.org/cl/4344062
2011-04-04gotest: fix buildRuss Cox
TBR=r CC=golang-dev https://golang.org/cl/4351047
2011-04-04path/filepath.Glob: add an error return.Rob Pike
The error will only occur for invalid patterns, but without this error path there is no way to know that Glob has failed due to an invalid pattern. R=rsc CC=golang-dev https://golang.org/cl/4346044
2011-04-04bufio: Write and WriteString cleanupEvan Shaw
Write never writes less than the buffer size and WriteString takes advantage of the copy built-in to improve write efficiency. R=rsc, ality, rog CC=golang-dev https://golang.org/cl/4344060
2011-04-04http: use upper case hex in URL escapingMatt Jones
According to RFC 3986: "For consistency, URI producers and normalizers should use uppercase hexadecimal digits for all percent-encodings." Using lower case characters makes it incompatible with Google APIs when signing OAuth requests. R=golang-dev, rsc1, rsc CC=golang-dev https://golang.org/cl/4352044
2011-04-04CONTRIBUTORS: add Matt Jones (Google CLA)Russ Cox
R=golang-dev, r2 CC=golang-dev, mrjones https://golang.org/cl/4348048
2011-04-04codereview: only retry on HTTP 500 errorRuss Cox
R=r CC=golang-dev https://golang.org/cl/4353047
2011-04-04os: Fix MkdirAll("/thisdoesnotexist").Albert Strasheim
Fixes #1637. R=rsc, rh, msolo CC=golang-dev https://golang.org/cl/4317049
2011-04-04syscall: add BPF support for freebsd/386, freebsd/amd64Mikio Hara
R=rsc CC=golang-dev https://golang.org/cl/4331050
2011-04-04httptest: add NewTLSServerBrad Fitzpatrick
Enables the use of https servers in tests. R=agl, rsc, agl1 CC=golang-dev https://golang.org/cl/4284063
2011-04-04http: make triv.go example compile againBrad Fitzpatrick
Ideally we'd compile all example files during the build, though. Fixes #1660 R=r CC=golang-dev https://golang.org/cl/4358049
2011-04-04version.bash: strip changeset hash from 'hg tags' outputAndrew Gerrand
Fixes #1651. R=rsc CC=golang-dev https://golang.org/cl/4300054
2011-04-03path/filepath: add support for plan9Andrey Mirtchovski
R=paulzhol, ality, r, fhs CC=golang-dev https://golang.org/cl/4316054
2011-04-03os: add a few missing plan9 errorsAndrey Mirtchovski
these were needed by packages in crypto/ and by io/ioutil R=golang-dev, r CC=golang-dev https://golang.org/cl/4350047
2011-04-02Make.pkg: increase test timeout to 120 seconds.Ian Lance Taylor
R=r, peterGo CC=golang-dev https://golang.org/cl/4344053
2011-04-02os: Plan 9 support.Yuval Pavel Zholkover
R=rsc, ality, r, r2 CC=golang-dev https://golang.org/cl/4149046
2011-04-02R=rsc, brainman, ality, r2, rYuval Pavel Zholkover
CC=golang-dev https://golang.org/cl/3816043
2011-04-01go/parser: package name must not be the blank identifierRobert Griesemer
R=r, r2, rsc1 CC=golang-dev https://golang.org/cl/4343045
2011-04-01syscall: make Rawsyscall6 pass 6th arg on linux/386Evan Shaw
Forgot this one in the previous CL R=rsc, r CC=golang-dev https://golang.org/cl/4345043
2011-04-01gc: avoid saying same error 3 timesRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/4316051
2011-04-01syscall: make Syscall6 pass 6th arg on linux/386Evan Shaw
R=rsc CC=golang-dev https://golang.org/cl/4350043
2011-04-01path/filepath.Glob: don't drop known matches on error.Rob Pike
Fixes #1610. R=rsc CC=golang-dev https://golang.org/cl/4355042
2011-04-01misc/notepadplus: add syntax and completion support for notepad++Anthony Starks
R=golang-dev, adg, peterGo CC=golang-dev https://golang.org/cl/4274072
2011-04-01gotest: another attempt to make it run on WindowsAlex Brainman
R=golang-dev, rsc1 CC=golang-dev https://golang.org/cl/4347041
2011-04-01gotest: execute gomake properly on WindowsAlex Brainman
R=peterGo, rsc, Joe Poirier CC=golang-dev https://golang.org/cl/4280087
2011-03-31testing: add -test.timeout option.Ian Lance Taylor
Since Go code can deadlock, this lets a testsuite driver set a time limit for the test to run. This is simple but imperfect, in that it only catches deadlocks in Go code, not in the runtime scheduler. R=r, rsc, iant2 CC=golang-dev https://golang.org/cl/4326048
2011-03-31fmt: implement precs for %q.Rob Pike
Also fix a bug: precision was in terms of bytes; should be runes. Fixes #1652. R=rsc, bradfitzgo, r2, bradfitzwork CC=golang-dev https://golang.org/cl/4280086
2011-03-31roadmap: remove description of implementation of garbage collector.Rob Pike
It was speculation. Also replace one silly word with an English replacement. R=golang-dev, bradfitzgo CC=golang-dev https://golang.org/cl/4339041
2011-03-31http: add Transport.MaxIdleConnsPerHostBrad Fitzpatrick
R=rsc CC=golang-dev https://golang.org/cl/4280079
2011-03-31net, syscall: fix windows buildAlexey Borzenkov
Fix resolv_windows.go to support recent DNS-lookup changes R=brainman, rsc1, rsc CC=golang-dev https://golang.org/cl/4300045
2011-03-30gotest: another try at flags.Rob Pike
doc.go contains the details. The short story: - command line is passed to the binary - a new flag, -file, is needed to name files - known flags have the "test." prefix added for convenience. - gotest-specific flags are trimmed from the command line. The effect should be that most existing uses are unaffected, the ability to name files is still present, and it's nicer to use. The downside is a lot more code in gotest. Also allow a test to be called just Test. R=rsc, niemeyer, rog, r2 CC=golang-dev https://golang.org/cl/4307049
2011-03-30gopack: comment out debugging printRuss Cox
TBR=r CC=golang-dev https://golang.org/cl/4333048
2011-03-30gopack: add P flag to remove prefix from filename informationRuss Cox
R=r, r2 CC=golang-dev https://golang.org/cl/4307047
2011-03-30fmt: remove uintptrGetter type checksRuss Cox
This will make the fmt code easier to gofix when the new reflect interface is ready. R=r CC=golang-dev https://golang.org/cl/4324043
2011-03-30gotype: support for more tests, added one new testRobert Griesemer
also: minor fix to parser Note: gotest won't run the gotype test yet until it permits TestXXX functions where XXX is empty. R=r CC=golang-dev https://golang.org/cl/4300053
2011-03-30scanner: treat line comments like in GoRobert Griesemer
- don't consume '\n' as part of line comment (otherwise grammars where '\n' are tokens won't see them after a line comment) - permit line comments to end in EOF R=r CC=golang-dev https://golang.org/cl/4277089
2011-03-30test: don't require specific GOARCH values.Ian Lance Taylor
This lets the test work for gccgo on other architectures. R=r, rsc1 CC=golang-dev https://golang.org/cl/4326044
2011-03-30gotest: exclude . files when parsing directories (per r's suggestion)Robert Griesemer
R=r, rsc1, iant2 CC=golang-dev https://golang.org/cl/4329044
2011-03-30go/parser: fix scoping for local type declarationsRoger Peppe
R=gri CC=golang-dev https://golang.org/cl/4332045
2011-03-30godoc: remove errant space in HTML tagAndrew Gerrand
R=gri CC=golang-dev https://golang.org/cl/4277087
2011-03-29go/printer/gofmt: remove special case for multi-line raw stringsRobert Griesemer
As a special case, multi-line raw strings (i.e., strings in `` quotes) were not indented if they were the only token on a line. This heuristic was meant to improve formatting for multi-line raw strings where sub- sequent lines are not indented at the level of the surrounding code. Multiple people have complained about this. Removing the heuristic again because it makes the formatting more regular, easier to under- stand, and simplifies the implementation. - manual changes to ebnf/ebnf_test.go for readability - gofmt -w src misc Fixes #1643. R=r, rsc CC=golang-dev https://golang.org/cl/4307045
2011-03-30time: make TestAfterQueuing retry 3 times before declaring failure.Andrew Gerrand
I'm in two minds as to whether this should be a function of gotest. Tests that can flake out like this should be rare enough that we needn't add more mechanism. R=r CC=golang-dev https://golang.org/cl/4335042
2011-03-29test: add test for interfaces with unexported methods.Ian Lance Taylor
R=rsc CC=golang-dev https://golang.org/cl/4271086
2011-03-29test: adjust bug324 to expect run-time failure, not compile-time.Ian Lance Taylor
Failing at compile time requires that for each conversion between two interface types the compiler compare the sets of unexported methods to see if they come from different packages. Since this test will fail approximately never on real code, and since it can't catch all cases of the problem, I don't think it's worth testing in the compiler. This CL changes this test to look for a run-time panic rather than a compile-time error. R=gri, rsc1, iant2, rsc CC=golang-dev https://golang.org/cl/4332041