lxn/go-pgsql — pull request #20 by oscaroscar (2014-06-30 11:44:58+00:00)
Title: Fixing the go1.3 compatibility issue

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.