Not your code, I know, but are ASes over UDP the right thing to be testing?