issue-581 -- Support a maximum connect time on a connection

these are my changes to make connecting through a firewall easier