An error occurred fetching the project authors.
  1. 13 Aug, 2013 1 commit
  2. 03 Aug, 2013 1 commit
    • Mikio Hara's avatar
      net: reduce unnecessary syscall.Sockaddr conversions · 8a7def2b
      Mikio Hara authored
      This CL makes IPAddr, UDPAddr and TCPAddr implement sockaddr
      interface, UnixAddr is already sockaddr interface compliant, and
      reduces unnecessary conversions between net.Addr, net.sockaddr and
      syscall.Sockaddr.
      
      This is in preparation for runtime-integrated network pollster for BSD
      variants.
      
      Update #5199
      
      R=golang-dev, dave, bradfitz
      CC=golang-dev
      https://golang.org/cl/12010043
      8a7def2b
  3. 29 Jul, 2013 1 commit
  4. 28 Jul, 2013 1 commit
  5. 23 Apr, 2013 1 commit
  6. 09 Apr, 2013 1 commit
  7. 31 Mar, 2013 1 commit
  8. 23 Mar, 2013 1 commit
  9. 22 Mar, 2013 1 commit
  10. 08 Feb, 2013 1 commit
  11. 30 Jan, 2013 1 commit
  12. 16 Dec, 2012 1 commit
  13. 18 Nov, 2012 1 commit
    • Dave Cheney's avatar
      net: remove unused nil check · 0bfece06
      Dave Cheney authored
      This is part 1 of a series of proposals to fix issue 4369.
      
      In resolving issue 3507 it was decided not to nil out the inner conn.fd field to avoid a race. This implies the checks for fd == nil inside incref/decref are never true.
      
      Removing this logic removes one source of errClosing error values, which affects issue 4373 and moves towards bradfitz's request that fd.accept() return io.EOF when closed concurrently.
      
      Update #4369.
      Update #4373.
      
      R=mikioh.mikioh, bradfitz, dvyukov, rsc
      CC=golang-dev
      https://golang.org/cl/6852057
      0bfece06
  14. 08 Nov, 2012 1 commit
  15. 29 May, 2012 1 commit
  16. 27 Apr, 2012 1 commit
    • Dave Cheney's avatar
      net: consolidate common socket functions · f72c828c
      Dave Cheney authored
      In resolving 3507, the fix had to be applied individually to
      the four *Conn types, tcp, udp, rawip and unix, due to the
      duplicate code in each Conn type.
      
      This CL consolidates the common net.Conn methods that all four
      *Conn types implement into a base conn type.
      
      Pros:
      * The fix for 3507 would have only needed to be applied to one
      method. Further improvements, such as possibly removing the
      c.fd != nil check in c.ok(), would benefit from this CL.
      * Nearly 300 lines removed from the net package.
      * The public interface and documentation are not changed.
      * I think this is an excellent example of the power of embedding.
      
      Cons:
      * The net package is already distributed over many files, this
      CL adds another place to look.
      * The fix for 3507 was a total of 16 lines changed, this follow
      up CL could be considered to be an overreaction as new Conn types
      are unlikely to be added in the near future.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6098047
      f72c828c
  17. 23 Apr, 2012 1 commit
  18. 21 Apr, 2012 1 commit
    • Dave Cheney's avatar
      net: fix race between Close and Read · 1f14d45e
      Dave Cheney authored
      Fixes #3507.
      
      Applied the suggested fix from rsc. If the connection
      is in closing state then errClosing will bubble up to
      the caller.
      
      The fix has been applied to udp, ip and unix as well as
      their code path include nil'ing c.fd on close. Func
      tests are available in the linked issue that verified
      the bug existed there as well.
      
      R=rsc, fullung, alex.brainman, mikioh.mikioh
      CC=golang-dev
      https://golang.org/cl/6002053
      1f14d45e
  19. 08 Mar, 2012 1 commit
  20. 05 Mar, 2012 1 commit
    • Mikio Hara's avatar
      net: make Dial and Listen behavior consistent across over platforms · b5dc8724
      Mikio Hara authored
      This CL changes the behavior of Dial and Listen API family.
      
      Previous Dial and Listen allow a combo of "tcp6" and IPv4 or IPv6
      IPv4-mapped address as its argument, but it also makes slightly
      different behaviors between Linux and other platforms. This CL fixes
      such differences across over platforms by tweaking IP-level socket
      option IPV6_V6ONLY. Consequently new Dial and Listen API family will
      reject arguments consists of "tcp6" and IPv4 or IPv6 IPv4-mapped
      address.
      
      This CL also adds a bit clarified unicast listener tests.
      
      Fixes #2581.
      
      R=rsc, minux.ma
      CC=golang-dev
      https://golang.org/cl/5677086
      b5dc8724
  21. 22 Feb, 2012 1 commit
  22. 16 Feb, 2012 1 commit
    • Rob Pike's avatar
      os: delete os.EINVAL and so on · 56069f03
      Rob Pike authored
      The set of errors forwarded by the os package varied with system and
      was therefore non-portable.
      Three helpers added for portable error checking: IsExist, IsNotExist, and IsPermission.
      One or two more may need to come, but let's keep the set very small to discourage
      thinking about errors that way.
      
      R=mikioh.mikioh, gustavo, r, rsc
      CC=golang-dev
      https://golang.org/cl/5672047
      56069f03
  23. 31 Jan, 2012 1 commit
  24. 29 Jan, 2012 1 commit
  25. 23 Jan, 2012 1 commit
  26. 19 Jan, 2012 3 commits
  27. 14 Jan, 2012 1 commit
  28. 21 Dec, 2011 1 commit
  29. 14 Nov, 2011 1 commit
    • Russ Cox's avatar
      syscall: use error · c017a829
      Russ Cox authored
      - syscall (not os) now defines the Errno type.
      - the low-level assembly functions Syscall, Syscall6, and so on
        return Errno, not uintptr
      - syscall wrappers all return error, not uintptr.
      
      R=golang-dev, mikioh.mikioh, r, alex.brainman
      CC=golang-dev
      https://golang.org/cl/5372080
      c017a829
  30. 02 Nov, 2011 1 commit
  31. 15 Sep, 2011 1 commit
    • Russ Cox's avatar
      build: add build comments to core packages · 2715956f
      Russ Cox authored
      The go/build package already recognizes
      system-specific file names like
      
              mycode_darwin.go
              mycode_darwin_386.go
              mycode_386.s
      
      However, it is also common to write files that
      apply to multiple architectures, so a recent CL added
      to go/build the ability to process comments
      listing a set of conditions for building.  For example:
      
              // +build darwin freebsd openbsd/386
      
      says that this file should be compiled only on
      OS X, FreeBSD, or 32-bit x86 OpenBSD systems.
      
      These conventions are not yet documented
      (hence this long CL description).
      
      This CL adds build comments to the multi-system
      files in the core library, a step toward making it
      possible to use go/build to build them.
      
      With this change go/build can handle crypto/rand,
      exec, net, path/filepath, os/user, and time.
      
      os and syscall need additional adjustments.
      
      R=golang-dev, r, gri, r, gustavo
      CC=golang-dev
      https://golang.org/cl/5011046
      2715956f
  32. 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
  33. 16 Aug, 2011 1 commit
  34. 19 Jan, 2011 1 commit
  35. 12 Jan, 2011 1 commit
  36. 07 Dec, 2010 1 commit
  37. 05 Nov, 2010 1 commit
  38. 05 May, 2010 1 commit