Control port STREAM XON/XOFF status event notification

This commit is contained in:
Mike Perry 2022-03-08 23:06:08 +00:00 committed by David Goulet
parent c7c2287d07
commit cf8d9fb1a0
2 changed files with 9 additions and 1 deletions

View File

@ -820,6 +820,10 @@ control_event_stream_status(entry_connection_t *conn, stream_status_event_t tp,
case STREAM_EVENT_FAILED_RETRIABLE: status = "DETACHED"; break;
case STREAM_EVENT_REMAP: status = "REMAP"; break;
case STREAM_EVENT_CONTROLLER_WAIT: status = "CONTROLLER_WAIT"; break;
case STREAM_EVENT_XOFF_SENT: status = "XOFF_SENT"; break;
case STREAM_EVENT_XOFF_RECV: status = "XOFF_RECV"; break;
case STREAM_EVENT_XON_SENT: status = "XON_SENT"; break;
case STREAM_EVENT_XON_RECV: status = "XON_RECV"; break;
default:
log_warn(LD_BUG, "Unrecognized status code %d", (int)tp);
return 0;

View File

@ -37,7 +37,11 @@ typedef enum stream_status_event_t {
STREAM_EVENT_NEW_RESOLVE = 6,
STREAM_EVENT_FAILED_RETRIABLE = 7,
STREAM_EVENT_REMAP = 8,
STREAM_EVENT_CONTROLLER_WAIT = 9
STREAM_EVENT_CONTROLLER_WAIT = 9,
STREAM_EVENT_XOFF_SENT = 10,
STREAM_EVENT_XOFF_RECV = 11,
STREAM_EVENT_XON_SENT = 12,
STREAM_EVENT_XON_RECV = 13
} stream_status_event_t;
/** Used to indicate the type of a buildtime event */