app/crypto-perf: check range of socket id