spec/socket: require location