add test for deep recursion when maxclients is reached and reconnect, name, on_connect parameters used
add debug message for connect/disconnect callback
wait loop for connection
fix test
disable reconnect while on_connect handler
Merge branch 'master' into fix-deep-recursion
Merge pull request #24 from shogo82148/fix-deep-recursion

Fix deep recursion