1. 02 Nov, 2011 1 commit
  2. 17 Aug, 2011 1 commit
    • Fazlul Shahriar's avatar
      net: Plan 9 support · 0f7bc92b
      Fazlul Shahriar authored
      All tests enabled by default passes except those in timeout_test.go.
      
      For TestLookupPort, add an entry for "bootps" in /lib/ndb/common
      (Plan 9 calls it "bootp"). I've sent out a patch to fix this.
      
      R=paulzhol, rsc, mikioh.mikioh
      CC=ality, golang-dev
      https://golang.org/cl/4779041
      0f7bc92b
  3. 22 Jun, 2011 1 commit
    • Robert Griesemer's avatar
      os.Error API: don't export os.ErrorString, use os.NewError consistently · 712fb6dc
      Robert Griesemer authored
      This is a core API change.
      
      1) gofix misc src
      2) Manual adjustments to the following files under src/pkg:
         gob/decode.go
         rpc/client.go
         os/error.go
         io/io.go
         bufio/bufio.go
         http/request.go
         websocket/client.go
      as well as:
         src/cmd/gofix/testdata/*.go.in (reverted)
         test/fixedbugs/bug243.go
      3) Implemented gofix patch (oserrorstring.go) and test case (oserrorstring_test.go)
      
      Compiles and runs all tests.
      
      R=r, rsc, gri
      CC=golang-dev
      https://golang.org/cl/4607052
      712fb6dc
  4. 01 Jun, 2011 1 commit
    • Russ Cox's avatar
      undo CL 4557058 / b4c2ffae7034 · 16dbf218
      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
      16dbf218
  5. 31 May, 2011 1 commit
    • Christopher Wedgwood's avatar
      net: name-based destination address selection · 50effb65
      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
      50effb65
  6. 16 May, 2011 1 commit
  7. 20 Apr, 2011 1 commit
    • Russ Cox's avatar
      net: use C library resolver on FreeBSD, Linux, OS X / amd64, 386 · c9164a5d
      Russ Cox authored
      This CL makes it possible to resolve DNS names on OS X
      without offending the Application-Level Firewall.
      
      It also means that cross-compiling from one operating
      system to another is no longer possible when using
      package net, because cgo needs to be able to sniff around
      the local C libraries.  We could special-case this one use
      and check in generated files, but it seems more trouble
      than it's worth.  Cross compiling is dead anyway.
      
      It is still possible to use either GOARCH=amd64 or GOARCH=386
      on typical Linux and OS X x86 systems.
      
      It is also still possible to build GOOS=linux GOARCH=arm on
      any system, because arm is for now excluded from this change
      (there is no cgo for arm yet).
      
      R=iant, r, mikioh
      CC=golang-dev
      https://golang.org/cl/4437053
      c9164a5d
  8. 29 Mar, 2011 1 commit
    • Russ Cox's avatar
      net: drop laddr from Dial, cname from LookupHost; new functions · 41f93a43
      Russ Cox authored
      Drop laddr argument from Dial.
      
      Drop cname return from LookupHost.
      
      Add LookupIP, LookupCNAME, ParseCIDR, IP.Equal.
      Export SplitHostPort, JoinHostPort.
      Add AAAA (IPv6) support to host lookups.
      
      Preparations for implementing some of the
      lookups using cgo.
      
      ParseCIDR and IP.Equal are logically new in this CL
      but accidentally snuck into an earlier CL about unused
      labels that was in the same client.
      
      In crypto/tls, drop laddr from Dial to match net.
      
      R=golang-dev, dsymonds, adg, rh
      CC=golang-dev
      https://golang.org/cl/4244055
      41f93a43
  9. 16 Feb, 2011 2 commits
  10. 24 Sep, 2010 1 commit
  11. 05 Aug, 2010 1 commit
  12. 27 Jul, 2010 1 commit
  13. 09 Jun, 2010 1 commit
  14. 22 May, 2010 1 commit