@@ -217,22 +217,23 @@ func initConfig() {
217217 end := endpoint .Parse (endString )
218218 svrObj := c .GetString ("/tars/application/server/" + adapter + "<servant>" )
219219 proto := c .GetString ("/tars/application/server/" + adapter + "<protocol>" )
220+ queuecap := c .GetIntWithDef ("/tars/application/server/" + adapter + "<queuecap>" , svrCfg .QueueCap )
220221 threads := c .GetInt ("/tars/application/server/" + adapter + "<threads>" )
221222 svrCfg .Adapters [adapter ] = adapterConfig {end , proto , svrObj , threads }
222223 host := end .Host
223224 if end .Bind != "" {
224225 host = end .Bind
225226 }
226227 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 ,
236237 TCPNoDelay : svrCfg .TCPNoDelay ,
237238 TCPReadBuffer : svrCfg .TCPReadBuffer ,
238239 TCPWriteBuffer : svrCfg .TCPWriteBuffer ,
0 commit comments