Support connection timeout.
Merge bug26022