add connection timeout test code