Skip to content

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