Shouldn't you get a similar result by adjusting the mclient.send_recv timeout :? so you can save this sleep as sync method.