The DSN contains a timeout parameter that is passed to the standard net.Dialer. Please provide this to custom dialers as well.