final TDirectServer server =
TDirectServer.asHsHaServer(PORT, NUM_THREADS, MAX_PENDING, proc);
new Thread() {
@Override
public void run() {
server.serve();
}
}.start();
final int NUM_ITERS = 20, MS_PER_ITER = 100;
for (int i = 0; i < NUM_ITERS; i++) {
try {