Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the go1.3 compatibility issue #20

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

oscaroscar
Copy link

After investigation this is due to the deadline set using the following line:

panicIfErr(tcpConn.SetDeadline(time.Unix(int64(params.TimeoutSeconds*1000*1000*1000), 0)))

Line located within conn.go into the Connect proc. I guess this line is an attempt to use the timeout parameter provided by the caller and to add it to Time.Now() in order to stop dialling after the amount of seconds specified as a parameter.

I am just wondering why it has worked before unless the meaning of the SetDeadline procedure has completely been modified.

This pull request is how I would fix it. Now you can obviously decide to fix it differently.

@oscaroscar
Copy link
Author

Many commit but these were due to me being an idiot and committing many little things such as logs for dev. Sorry for the mess guys :)

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.

1 participant