Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(109)

Issue 12458043: code review 12458043: net: Retry DNS with TCP if UDP response is truncated.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by axaxs
Modified:
12 years, 10 months ago
Reviewers:
bradfitz
CC:
golang-dev, bradfitz, mikio
Visibility:
Public.

Description

net: implement DNS TCP fallback query if UDP response is truncated Fixes issue 5686.

Patch Set 1 #

Patch Set 2 : diff -r 52e26bb34741 https://code.google.com/p/go #

Patch Set 3 : diff -r 52e26bb34741 https://code.google.com/p/go #

Patch Set 4 : diff -r 52e26bb34741 https://code.google.com/p/go #

Total comments: 7

Patch Set 5 : diff -r 01d672e76b57 https://code.google.com/p/go #

Total comments: 2

Patch Set 6 : diff -r 01d672e76b57 https://code.google.com/p/go #

Total comments: 2

Patch Set 7 : diff -r 4f468b088d66 https://code.google.com/p/go #

Patch Set 8 : diff -r 82edc0e0cc18 https://code.google.com/p/go #

Patch Set 9 : diff -r 82edc0e0cc18 https://code.google.com/p/go #

Total comments: 8

Patch Set 10 : diff -r df2050eeba3a https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -4 lines) Patch
M src/pkg/net/dnsclient_unix.go View 1 2 3 4 5 6 7 8 9 5 chunks +38 lines, -4 lines 0 comments Download
A src/pkg/net/dnsclient_unix_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 17
axaxs
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 11 months ago (2013-08-05 06:55:57 UTC) #1
bradfitz
https://codereview.appspot.com/12458043/diff/7001/src/pkg/net/dnsclient_unix.go File src/pkg/net/dnsclient_unix.go (right): https://codereview.appspot.com/12458043/diff/7001/src/pkg/net/dnsclient_unix.go#newcode42 src/pkg/net/dnsclient_unix.go:42: //Must add 2 byte length header to front of ...
12 years, 11 months ago (2013-08-05 13:49:27 UTC) #2
axaxs
On 2013/08/05 13:49:27, bradfitz wrote: > https://codereview.appspot.com/12458043/diff/7001/src/pkg/net/dnsclient_unix.go > File src/pkg/net/dnsclient_unix.go (right): > > https://codereview.appspot.com/12458043/diff/7001/src/pkg/net/dnsclient_unix.go#newcode42 > ...
12 years, 11 months ago (2013-08-05 19:01:49 UTC) #3
bradfitz
https://codereview.appspot.com/12458043/diff/13001/src/pkg/net/dnsclient_unix.go File src/pkg/net/dnsclient_unix.go (right): https://codereview.appspot.com/12458043/diff/13001/src/pkg/net/dnsclient_unix.go#newcode61 src/pkg/net/dnsclient_unix.go:61: buf = make([]byte, 2) you don't need this allocation. ...
12 years, 11 months ago (2013-08-05 20:29:58 UTC) #4
axaxs
On 2013/08/05 20:29:58, bradfitz wrote: > https://codereview.appspot.com/12458043/diff/13001/src/pkg/net/dnsclient_unix.go > File src/pkg/net/dnsclient_unix.go (right): > > https://codereview.appspot.com/12458043/diff/13001/src/pkg/net/dnsclient_unix.go#newcode61 > ...
12 years, 11 months ago (2013-08-05 21:12:11 UTC) #5
axaxs
On 2013/08/05 21:12:11, axaxs wrote: > On 2013/08/05 20:29:58, bradfitz wrote: > > > https://codereview.appspot.com/12458043/diff/13001/src/pkg/net/dnsclient_unix.go ...
12 years, 10 months ago (2013-08-10 04:38:29 UTC) #6
mikio
Perhaps the CL description "net: implement DNS TCP fallback query" might be clear. Also w/ ...
12 years, 10 months ago (2013-08-10 07:09:22 UTC) #7
axaxs
Hi, Per your suggestion I've removed two comments covered by RFC1035 and the blank trailing ...
12 years, 10 months ago (2013-08-10 19:35:38 UTC) #8
mikio
On Sun, Aug 11, 2013 at 4:35 AM, Alex Skinner <alex@lx.lc> wrote: > I do ...
12 years, 10 months ago (2013-08-10 22:16:42 UTC) #9
axaxs
Thanks. I see 5966 being more relevant now :). Still, the test described is not ...
12 years, 10 months ago (2013-08-11 23:32:58 UTC) #10
mikio
On Mon, Aug 12, 2013 at 8:32 AM, Alex Skinner <alex@lx.lc> wrote: > Still, the ...
12 years, 10 months ago (2013-08-12 21:53:59 UTC) #11
axaxs
On 2013/08/12 21:53:59, mikio wrote: > On Mon, Aug 12, 2013 at 8:32 AM, Alex ...
12 years, 10 months ago (2013-08-13 01:16:09 UTC) #12
mikio
pls dorp "See http://play.golang.org/p/9Vvr1u5_nz" line from the CL description. also try cross-compile, thx. https://codereview.appspot.com/12458043/diff/37001/src/pkg/net/dnsclient_unix.go File ...
12 years, 10 months ago (2013-08-13 03:31:27 UTC) #13
mikio
On Tuesday, August 13, 2013 12:31:27 PM UTC+9, Mikio Hara wrote: > https://codereview.appspot.com/12458043/diff/37001/src/pkg/net/lookup_test.go#newcode140 > > ...
12 years, 10 months ago (2013-08-13 04:05:53 UTC) #14
axaxs
All suggestions accounted for I think. Kept useTCP as bool value but set to a ...
12 years, 10 months ago (2013-08-13 05:38:05 UTC) #15
bradfitz
LGTM
12 years, 10 months ago (2013-08-13 16:43:09 UTC) #16
bradfitz
12 years, 10 months ago (2013-08-13 16:44:14 UTC) #17
*** Submitted as https://code.google.com/p/go/source/detail?r=77ceb1db4a1e ***

net: implement DNS TCP fallback query if UDP response is truncated

Fixes issue 5686.

R=golang-dev, bradfitz, mikioh.mikioh
CC=golang-dev
https://codereview.appspot.com/12458043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b