- 02 Jun, 2011 1 commit
-
-
William Chan authored
R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4524087
-
- 01 Jun, 2011 16 commits
-
-
Gustavo Niemeyer authored
This changes the internal implementation of Cond so that it uses two generations of waiters. This enables Signal to guarantee that it will only wake up waiters that are currently sleeping at the call time. Fixes #1648. R=dvyukov, gustavo, rsc CC=golang-dev https://golang.org/cl/4524083
-
Robert Griesemer authored
- tested with GOARCH=386 - tested with GOARCH=amd64 R=iant CC=golang-dev https://golang.org/cl/4526100
-
Brad Fitzpatrick authored
This removes exec.Run and replaces exec.Cmd with a new implementation. The new exec.Cmd represents both a currently-running command and also a command being prepared. It has a good zero value. You can Start + Wait on a Cmd, or simply Run it. Start (and Run) deal with copying stdout, stdin, and stderr between the Cmd's io.Readers and io.Writers. There are convenience methods to capture a command's stdout and/or stderr. R=r, n13m3y3r, rsc, gustavo, alex.brainman, dsymonds, r, adg, duzy.chan, mike.rosset, kevlar CC=golang-dev https://golang.org/cl/4552052
-
Robert Griesemer authored
On a 32bit machine, the big.Words are only 32bit. R=rsc CC=golang-dev https://golang.org/cl/4561055
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4559058
-
Robert Griesemer authored
- better number scanning algorithm - fixed a couple of bugs related to base interpretation - added scan benchmark - added more test cases and made tests more precise - introduced Int.scan method matching nat.scan - refactored Int.Scan; now uses int.scan - refactored Int.SetString; now uses int.scan There is more potential, this was a fairly simple change. gotest -test.bench="ScanPi" before/after (best of 3 runs): big.BenchmarkScanPi 1000 2024900 ns/op big.BenchmarkScanPi 10000 257540 ns/op R=chickencha CC=golang-dev, rsc https://golang.org/cl/4527089
-
Russ Cox authored
Using the getaddrinfo order is only okay if we are smart enough to try multiple addresses in Dial. Since the code does not do that, we must make the right first choice, regardless of what getaddrinfo does, and more often that not that means using the IPv4 address, even on IPv6 systems. With the CL applied, gotest fails in package net on OS X. helix.cam=; gotest ... --- FAIL: net.TestDialGoogleIPv4 (1.05 seconds) -- 74.125.226.179:80 -- -- www.google.com:80 -- Dial("tcp", "", "www.google.com:80") = _, dial tcp [2001:4860:800f::69]:80: address family not supported by protocol family -- 74.125.226.179:http -- -- www.google.com:http -- Dial("tcp", "", "www.google.com:http") = _, dial tcp [2001:4860:800f::69]:80: address family not supported by protocol family -- 074.125.226.179:0080 -- -- [::ffff:74.125.226.179]:80 -- -- [::ffff:4a7d:e2b3]:80 -- -- [0:0:0:0:0000:ffff:74.125.226.179]:80 -- -- [0:0:0:0:000000:ffff:74.125.226.179]:80 -- -- [0:0:0:0:0:ffff::74.125.226.179]:80 -- FAIL gotest: "./6.out" failed: exit status 1 ««« original CL description net: name-based destination address selection getaddrinfo() orders the addresses according to RFC 3484. This means when IPv6 is working on a host we get results like: []string = {"2001:4810::110", "66.117.47.214"} and when it's not working we get: []string = {"66.117.47.214", "2001:4810::110"} thus can drop firstFavoriteAddr. This also means /etc/gai.conf works on relevant systems. R=rsc, mikioh.mikioh CC=golang-dev https://golang.org/cl/4557058 »»» R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4532101
-
Adam Langley authored
This mostly adds the infrastructure for writing various forms of packets as well as reading them. Adding symmetric encryption support was simply an easy motivation. There's also one brown-paper-bag fix in here. Previously I had the conditional for the MDC hash check backwards: the code was checking that the hash was *incorrect*. This was neatly counteracted by another bug: it was hashing the ciphertext of the OCFB prefix, not the plaintext. R=bradfitz CC=golang-dev https://golang.org/cl/4564046
-
Mikkel Krautz authored
This fixes creation of X509 certificates with RSA keys. (Broken by e5ecc416f2fd) R=agl CC=golang-dev https://golang.org/cl/4553052
-
Luuk van Dijk authored
before: runtime_test.BenchmarkCallClosure1 20000000 135 ns/op after: runtime_test.BenchmarkCallClosure1 500000000 6 ns/op R=rsc CC=golang-dev https://golang.org/cl/4527091
-
Rob Pike authored
also make the error prints better in the test. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4556069
-
David Symonds authored
Basic parsing, plus date parsing. R=bradfitz, gary.burd, bsiegert, rsc CC=golang-dev https://golang.org/cl/4530079
-
Yuval Pavel Zholkover authored
Make plan 9 Readdir & Readdirnames return os.EOF at end. Also fix typos in the unix and windows comments. R=golang-dev, fshahriar, bradfitz, rsc, r CC=golang-dev https://golang.org/cl/4557053
-
Rob Pike authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4527090
-
Andrew Gerrand authored
R=golang-dev CC=golang-dev https://golang.org/cl/4539099
-
Andrew Gerrand authored
goinstall: more verbose logging with -v Fixes #1901. R=rsc, n13m3y3r CC=golang-dev https://golang.org/cl/4524078
-
- 31 May, 2011 21 commits
-
-
Rob Pike authored
values >= 16 bits, so the lookup code can be smaller in the common case. Also make CaseRange uint32s rather than ints, so if we go to 64-bit ints we don't waste more space. R=rsc CC=golang-dev https://golang.org/cl/4550094
-
Rob Pike authored
R=bradfitz CC=golang-dev https://golang.org/cl/4529102
-
William Chan authored
flate's reader greedily reads from the shared io.Reader in Framer. This leads to a data race on Framer.r. Fix this by providing a corkedReader to zlib.NewReaderDict(). We uncork the reader and allow it to read the number of bytes in the compressed payload. Fixes #1884. R=bradfitz, rsc, go.peter.90 CC=golang-dev https://golang.org/cl/4530089
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/4560056
-
Russ Cox authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4559059
-
Russ Cox authored
Fixes #1900. R=ken2 CC=golang-dev https://golang.org/cl/4561053
-
Anthony Martin authored
Fixes #1866. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4548073
-
Adam Langley authored
R=agl CC=golang-dev https://golang.org/cl/4551081
-
Russ Cox authored
The change is that 1.0<<2 is now okay. R=ken2 CC=golang-dev https://golang.org/cl/4524084
-
Luuk van Dijk authored
before: runtime_test.BenchmarkCallClosure 5000000 499 ns/op runtime_test.BenchmarkCallClosure1 5000000 681 ns/op after: runtime_test.BenchmarkCallClosure 500000000 5 ns/op runtime_test.BenchmarkCallClosure1 10000000 160 ns/op R=rsc CC=golang-dev https://golang.org/cl/4515167
-
Russ Cox authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4558042
-
Russ Cox authored
breaks Mac build ««« original CL description runtime: use HOST_CC to compile mkversion HOST_CC is set in Make.inc, so use that rather than hardcoding quietgcc R=golang-dev, iant CC=golang-dev https://golang.org/cl/4515163 »»» R=iant CC=golang-dev https://golang.org/cl/4515168
-
Dave Cheney authored
HOST_CC is set in Make.inc, so use that rather than hardcoding quietgcc R=golang-dev, iant CC=golang-dev https://golang.org/cl/4515163
-
Anthony Martin authored
Fixes #1663. Fixes #1871. R=rsc, lstoakes CC=golang-dev https://golang.org/cl/4530084
-
Adam Langley authored
I found this useful, esp with an io.MultiWriter. But I fear that it may be bloat in such a low-level package so please feel free to decline if you feel likewise. R=rsc, ality CC=golang-dev https://golang.org/cl/4530088
-
Brad Fitzpatrick authored
Also some cleanup, removing redundant code. Make more things use NewRequest. Add some tests, docs. R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/4561047
-
Christopher Wedgwood authored
getaddrinfo() orders the addresses according to RFC 3484. This means when IPv6 is working on a host we get results like: []string = {"2001:4810::110", "66.117.47.214"} and when it's not working we get: []string = {"66.117.47.214", "2001:4810::110"} thus can drop firstFavoriteAddr. This also means /etc/gai.conf works on relevant systems. R=rsc, mikioh.mikioh CC=golang-dev https://golang.org/cl/4557058
-
Dmitriy Vyukov authored
Fix the fact that the test leaves GOMAXPROCS=3 and a running goroutine behind. R=golang-dev, rsc CC=dvyukov, golang-dev https://golang.org/cl/4517121
-
Vincent Vanackere authored
On windows, the command line is passed as a single null-terminated string. While the automatic parameter escaping done by syscall.StartProcess works fine with most Windows programs, some applications do their own custom parsing of the command line, in which case the automatic escaping becomes harmful. This CL adds a new extra CmdLine field to syscall.ProcAttr that will be used as the raw/unescaped command line if not empty. Fixes #1849. R=golang-dev, alex.brainman, bradfitz, rsc CC=golang-dev https://golang.org/cl/4548050
-
Alexey Borzenkov authored
Fixes #1779 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4566041
-
Gustavo Niemeyer authored
When I was first coding Abs, I wondered if people wouldn't expect the path to be consistently clean, even if the path passed in was already absolute. CL 4524078 has a potential problem based on exactly that assumption, so it feels like this behavior is indeed the most useful and least surprising. R=golang-dev, adg CC=golang-dev https://golang.org/cl/4548074
-
- 30 May, 2011 2 commits
-
-
Rob Pike authored
By splitting the ranges into 16-bit values and 32-bit values, we can reduce about 3000 entries by 48 bits per entry, or about 16KB, at the cost of a little more complexity in the code. R=iant, bradfitz, rsc, r CC=golang-dev https://golang.org/cl/4547066
-
Russ Cox authored
R=adg, n13m3y3r CC=golang-dev https://golang.org/cl/4526084
-