Skip to content

Commit e67938f

Browse files
committed
Change new capability to bool; add some comments
1 parent bb4503e commit e67938f

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

rotom.proto

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ message MitmRequest {
2020
LoginSource source = 2;
2121
bytes token_proto = 3;
2222
string worker_id = 4;
23-
bool enable_compression = 5;
23+
bool enable_compression = 5; // Controller can support compressed responses
2424
}
2525

2626
message RpcRequest {
2727
message SingleRpcRequest {
2828
int32 method = 1;
2929
bytes payload = 2;
30-
bool is_compressed = 3;
30+
bool is_compressed = 3; // This request is compressed
3131
}
3232

3333
repeated SingleRpcRequest request = 1;
@@ -57,16 +57,16 @@ message MitmResponse {
5757
message LoginResponse {
5858
string worker_id = 1;
5959
AuthStatus status = 2;
60-
bool supports_compression = 3;
60+
bool supports_compression = 3; // Agent can support compressed requests
6161
string useragent = 4;
62-
uint64 mitm_capability = 5; // Bitwise field built up of Mitm Capability flags
62+
bool request_long_sessions = 5; // Agent prefers longer sessions over fast reconnects
6363
}
6464

6565
message RpcResponse {
6666
message SingleRpcResponse {
6767
int32 method = 1;
6868
bytes payload = 2;
69-
bool is_compressed = 3;
69+
bool is_compressed = 3; // This payload response is compressed
7070
}
7171

7272
RpcStatus rpc_status = 1;
@@ -127,7 +127,3 @@ enum RpcStatus {
127127
RPC_STATUS_ACCESS_RATE_LIMITED = 18;
128128
RPC_STATUS_MITM_DISALLOWED_REQUEST = 99;
129129
}
130-
131-
enum MitmCapability {
132-
MITM_CAPABILITY_REQUEST_LONG_SESSIONS = 1;
133-
}

0 commit comments

Comments
 (0)