coio: make coio write and read a cancellation point
It is nice to make these functions a cancellation point. Currently if we use them in a loop and fiber is cancelled then whether the function check for cancel or not depends on peer speed. If the latter is fast enough we won't wait and won't check for cancel. So we will have to add check for cancel in loop itself. Instead let's add this check to the functions. We do not change accept and connect functions as such case is unlikely for them. Part of #8423 NO_TEST=rely on existing tests NO_CHANGELOG=internal NO_DOC=internal
Please register or sign in to comment