Fix argument checking for ${readsocket }