rpc: agent allows multiple connections
rpc: add benchmark(apnstest has a problem on multi session)