Segfaulting on client, will determine bytes read from file