If we are sending AIO data on a channel and the peer closed the connection,
we could trigger an assert incorrectly.
if(sent != (ssize_t)todo) {
/* We should never get a partial send at this point */
if(sent != (ssize_t)todo) {
/* We should never get a partial send at this point */
/* Sending failed, abort all outstanding AIO buffers and send a poll callback. */
if(!aio_abort(mesh, channel, &channel->aio_send)) {
/* Sending failed, abort all outstanding AIO buffers and send a poll callback. */
if(!aio_abort(mesh, channel, &channel->aio_send)) {