isConnected is very slow. The patch in the posting solves the problem.
*** This bug has been marked as a duplicate of 23586 ***