size_t partial; //!< for partial writes :(
bool have_reply; //!< did we see any reply?
- bool cancelled; //!< was it cancelled?
};
FR_DLIST_FUNCS(fr_bio_retry_list, fr_bio_retry_entry_t, entry)
if (!item->retry.replies) return fr_bio_error(BUFFER_FULL);
- fr_assert(!item->cancelled);
-
if (fr_bio_retry_entry_cancel(bio, item) < 0) return fr_bio_error(BUFFER_FULL);
/*
item->size = size;
item->partial = 0;
item->have_reply = false;
- item->cancelled = false;
/*
* Tell the application that we've saved the packet. The "item" pointer allows the application
fr_assert(item->buffer != NULL);
- if (item->cancelled) return 1;
-
/*
* If we've written a partial packet, jump through a bunch of hoops to cache the partial packet
* data. This lets the application cancel any pending packet, while still making sure that we