@@ -246,6 +246,10 @@ Thrift servers define additional parameters:
246
246
* *thriftFramed* -- if `true`, a framed thrift transport is used for incoming
247
247
requests; otherwise, a buffered transport is used. Typically this setting
248
248
matches the router's `thriftFramed` param. (default : true)
249
+ * *thriftProtocol* -- allows the thrift protocol to be chosen;
250
+ currently supports 'binary' for `TBinaryProtocol` (default) and
251
+ ' compact' for `TCompactProtocol`. Typically this setting matches
252
+ the router's client `thriftProtocol` param.
249
253
250
254
The default server _port_ is 4114.
251
255
@@ -254,9 +258,13 @@ Thrift also supports additional *client* parameters:
254
258
* *thriftFramed* -- if `true`, a framed thrift transport is used for outgoing
255
259
requests; otherwise, a buffered transport is used. Typically this setting
256
260
matches the router's servers' `thriftFramed` param. (default : true)
261
+ * *thriftProtocol* -- allows the thrift protocol to be chosen;
262
+ currently supports `binary` for `TBinaryProtocol` (default) and
263
+ ` compact` for `TCompactProtocol`. Typically this setting matches
264
+ the router's servers' `thriftProtocol` param.
257
265
258
266
As an example : Here's a thrift router configuration that routes thrift--via
259
- buffered transport--from port 4004 to port 5005
267
+ buffered transport using the TCompactProtocol --from port 4004 to port 5005
260
268
261
269
` ` ` yaml
262
270
routers:
@@ -268,8 +276,10 @@ routers:
268
276
- port: 4004
269
277
ip: 0.0.0.0
270
278
thriftFramed: false
279
+ thriftProtocol: compact
271
280
client:
272
281
thriftFramed: false
282
+ thriftProtocol: compact
273
283
` ` `
274
284
275
285
<a name="protocol-mux"></a>
0 commit comments