Fix off-by-one error counting maxSockets.