Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository

Switch branch/tag
  • go
  • src
  • net
  • http
  • transport_test.go
Find file BlameHistoryPermalink
  • Tom Bergan's avatar
    net, net/http: don't trace DNS dials · 19619c21
    Tom Bergan authored May 12, 2016
    This fixes change https://go-review.googlesource.com/#/c/23069/, which
    assumes all DNS requests are UDP. This is not true -- DNS requests can
    be TCP in some cases. See:
    https://tip.golang.org/src/net/dnsclient_unix.go#L154
    https://en.wikipedia.org/wiki/Domain_Name_System#Protocol_transport
    
    Also, the test code added by the above change doesn't actually test
    anything because the test uses a faked DNS resolver that doesn't
    actually make any DNS queries. I fixed that by adding another test
    that uses the system DNS resolver.
    
    Updates #12580
    
    Change-Id: I6c24c03ebab84d437d3ac610fd6eb5353753c490
    Reviewed-on: https://go-review.googlesource.com/23101
    
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    19619c21

Replace transport_test.go

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7