Не подтверждена Коммит c8a302a6 создал по автору Rustam's avatar Rustam Зафиксировано автором GitHub
Просмотр файлов

Avoid creating default event loop group when custom is set (#3124)

владелец 6ae508ad
......@@ -122,13 +122,14 @@ public class NettyApplicationEngine(
* [EventLoopGroupProxy] for processing incoming requests and doing engine's internal work
*/
private val workerEventGroup: EventLoopGroup by lazy {
val defaultGroup = if (configuration.shareWorkGroup) {
customBootstrap.config().childGroup()?.let {
return@lazy it
}
if (configuration.shareWorkGroup) {
EventLoopGroupProxy.create(configuration.workerGroupSize + configuration.callGroupSize)
} else {
EventLoopGroupProxy.create(configuration.workerGroupSize)
}
customBootstrap.config().childGroup() ?: defaultGroup
}
private val customBootstrap: ServerBootstrap by lazy {
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать