mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Control port STREAM XON/XOFF status event notification
This commit is contained in:
parent
c7c2287d07
commit
cf8d9fb1a0
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user