file size check: assume pos<=0 to be a disconnected session.