fixed deprecation warning in connect, and test 012_timeout.t