tconn->partial = NULL; \
} while (0)
+/** Remove the current request from the sent list
+ *
+ */
+#define REQUEST_EXTRACT_SENT(_treq) fr_dlist_remove(&tconn->sent, treq);
+
+/** Remove the current request from the cancel list
+ *
+ */
+#define REQUEST_EXTRACT_CANCEL(_treq) fr_dlist_remove(&tconn->cancel, treq);
/** Remove the current request from the cancel_partial slot
*
tconn->cancel_partial = NULL; \
} while (0)
+/** Remove the current request from the cancel sent list
+ *
+ */
+#define REQUEST_EXTRACT_CANCEL_SENT(_treq) fr_dlist_remove(&tconn->cancel_sent, treq);
/** Reorder the connections in the active heap
*
break;
case FR_TRUNK_REQUEST_SENT:
- fr_dlist_remove(&tconn->sent, treq);
+ REQUEST_EXTRACT_SENT(treq);
break;
case FR_TRUNK_REQUEST_CANCEL:
- fr_dlist_remove(&tconn->cancel, treq);
+ REQUEST_EXTRACT_CANCEL(treq);
break;
case FR_TRUNK_REQUEST_CANCEL_PARTIAL:
break;
case FR_TRUNK_REQUEST_CANCEL_SENT:
- fr_dlist_remove(&tconn->cancel_sent, treq);
+ REQUEST_EXTRACT_CANCEL_SENT(treq);
break;
default:
break;
case FR_TRUNK_REQUEST_CANCEL:
- fr_dlist_remove(&tconn->cancel, treq);
+ REQUEST_EXTRACT_CANCEL(treq);
break;
default:
break;
case FR_TRUNK_REQUEST_CANCEL: /* Moved from another connection */
- fr_dlist_remove(&tconn->cancel, treq);
+ REQUEST_EXTRACT_CANCEL(treq);
break;
default:
break;
case FR_TRUNK_REQUEST_SENT:
- fr_dlist_remove(&tconn->sent, treq);
+ REQUEST_EXTRACT_SENT(treq);
break;
default:
switch (treq->state) {
case FR_TRUNK_REQUEST_CANCEL: /* The only valid state cancel_sent can be reached from */
- fr_dlist_remove(&tconn->cancel, treq);
+ REQUEST_EXTRACT_CANCEL(treq);
break;
default:
break;
case FR_TRUNK_REQUEST_CANCEL:
- fr_dlist_remove(&tconn->cancel, treq);
+ REQUEST_EXTRACT_CANCEL(treq);
break;
default:
switch (treq->state) {
case FR_TRUNK_REQUEST_CANCEL_SENT:
- fr_dlist_remove(&tconn->cancel_sent, treq);
+ REQUEST_EXTRACT_CANCEL_SENT(treq);
break;
default: