@@ -217,22 +217,23 @@ func initConfig() {
217
217
end := endpoint .Parse (endString )
218
218
svrObj := c .GetString ("/tars/application/server/" + adapter + "<servant>" )
219
219
proto := c .GetString ("/tars/application/server/" + adapter + "<protocol>" )
220
+ queuecap := c .GetIntWithDef ("/tars/application/server/" + adapter + "<queuecap>" , svrCfg .QueueCap )
220
221
threads := c .GetInt ("/tars/application/server/" + adapter + "<threads>" )
221
222
svrCfg .Adapters [adapter ] = adapterConfig {end , proto , svrObj , threads }
222
223
host := end .Host
223
224
if end .Bind != "" {
224
225
host = end .Bind
225
226
}
226
227
svrConf := & transport.TarsServerConf {
227
- Proto : end .Proto ,
228
- Address : fmt .Sprintf ("%s:%d" , host , end .Port ),
229
- MaxInvoke : svrCfg .MaxInvoke ,
230
- AcceptTimeout : svrCfg .AcceptTimeout ,
231
- ReadTimeout : svrCfg .ReadTimeout ,
232
- WriteTimeout : svrCfg .WriteTimeout ,
233
- HandleTimeout : svrCfg .HandleTimeout ,
234
- IdleTimeout : svrCfg .IdleTimeout ,
235
-
228
+ Proto : end .Proto ,
229
+ Address : fmt .Sprintf ("%s:%d" , host , end .Port ),
230
+ MaxInvoke : svrCfg .MaxInvoke ,
231
+ AcceptTimeout : svrCfg .AcceptTimeout ,
232
+ ReadTimeout : svrCfg .ReadTimeout ,
233
+ WriteTimeout : svrCfg .WriteTimeout ,
234
+ HandleTimeout : svrCfg .HandleTimeout ,
235
+ IdleTimeout : svrCfg .IdleTimeout ,
236
+ QueueCap : queuecap ,
236
237
TCPNoDelay : svrCfg .TCPNoDelay ,
237
238
TCPReadBuffer : svrCfg .TCPReadBuffer ,
238
239
TCPWriteBuffer : svrCfg .TCPWriteBuffer ,
0 commit comments