Backported test_connect_delay.cpp from libzmq
Merge pull request #91 from hintjens/master

test_connect_delay was failing, so I backported the code from libzmq master.