diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2022-03-08 23:06:08 +0000 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-03-14 15:16:26 -0400 |
commit | cf8d9fb1a0c03aab30097e4ad41ea2bb35054ad4 (patch) | |
tree | 2f955a2e1d5086cdff9c5bf50fdb3dd6010f4e92 /src/feature/control | |
parent | c7c2287d0761c8fd1d7ce0f764b0ffb15e722944 (diff) | |
download | tor-cf8d9fb1a0c03aab30097e4ad41ea2bb35054ad4.tar.gz tor-cf8d9fb1a0c03aab30097e4ad41ea2bb35054ad4.zip |
Control port STREAM XON/XOFF status event notification
Diffstat (limited to 'src/feature/control')
-rw-r--r-- | src/feature/control/control_events.c | 4 | ||||
-rw-r--r-- | src/feature/control/control_events.h | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/feature/control/control_events.c b/src/feature/control/control_events.c index f9b7caf934..4c8cf9a425 100644 --- a/src/feature/control/control_events.c +++ b/src/feature/control/control_events.c @@ -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; diff --git a/src/feature/control/control_events.h b/src/feature/control/control_events.h index 68269cabba..901d2701cf 100644 --- a/src/feature/control/control_events.h +++ b/src/feature/control/control_events.h @@ -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 */ |