adding ping timeout

adding ping timeout when config.connectTimeout is set.