Grrr.. Cliff warned me about this. APR should return APR_SUCCESS with zero bytes read rather than APR_EOF. Will work on APR later...