The isc_nm_cancelread() function cancels reading on a connected socket and calls its read callback function with a 'result' parameter of ISC_R_CANCELED. (cherry picked from commit 5191ec8f86)
5191ec8f86