Skip to content

Add DialTimeout API#3

Merged
davecgh merged 1 commit into
btcsuite:masterfrom
dajohi:dialtimeout
Jan 5, 2017
Merged

Add DialTimeout API#3
davecgh merged 1 commit into
btcsuite:masterfrom
dajohi:dialtimeout

Conversation

@dajohi

@dajohi dajohi commented Dec 14, 2016

Copy link
Copy Markdown
Member

No description provided.

@stevenroose

Copy link
Copy Markdown

Why merge this here and not upstream?

@dajohi

dajohi commented Dec 14, 2016

Copy link
Copy Markdown
Member Author

We can try. samuel#3

But we can get this in now if upstream doesn't merge.

@jrick

jrick commented Jan 3, 2017

Copy link
Copy Markdown
Member

Since upstream is unresponsive i'm ok with adding this to our fork.

That said I think it can be simplified by using the zero value for a timeout, for the non-timeout version. See https://golang.org/src/net/dial.go#L259 for the two Dial calls. Both create a dialer and call it's Dial method, but the non-timeout version leaves the timeout as the zero value.

@jrick

jrick commented Jan 3, 2017

Copy link
Copy Markdown
Member

@davecgh might need your review too since I don't have write access to this repo.

@davecgh davecgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@davecgh davecgh merged commit 4720035 into btcsuite:master Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants