refs #1670: fix the bug for bug #237, use us and ms timeout.