(core) added a quick and dirty approach for non-blocking readrawresource on pipes