Открыть боковую панель
Aurora OS
Kotlin Multiplatform
Libraries
ktor
Коммиты
772a0fd6
Не подтверждена
Коммит
772a0fd6
создал
Дек 11, 2018
по автору
Sergey Mashkov
Просмотр файлов
Improve variable name
владелец
7e4225af
Изменения
1
Скрыть пробелы
Построчно
Рядом
ktor-server/ktor-server-netty/src/io/ktor/server/netty/cio/NettyResponsePipeline.kt
Просмотр файла @
772a0fd6
...
...
@@ -159,8 +159,8 @@ internal class NettyResponsePipeline(private val dst: ChannelHandlerContext,
@Suppress
(
"NOTHING_TO_INLINE"
)
private
suspend
inline
fun
finishCall
(
call
:
NettyApplicationCall
,
lastMessage
:
Any
?,
lastFuture
:
ChannelFuture
)
{
val
c
lose
=
!
call
.
request
.
keepAlive
||
call
.
response
.
isUpgradeResponse
()
val
doNotFlush
=
hasNextResponseMessage
()
&&
!
c
lose
val
prepareForC
lose
=
!
call
.
request
.
keepAlive
||
call
.
response
.
isUpgradeResponse
()
val
doNotFlush
=
hasNextResponseMessage
()
&&
!
prepareForC
lose
val
f
:
ChannelFuture
?
=
when
{
lastMessage
==
null
&&
doNotFlush
->
null
...
...
@@ -177,7 +177,7 @@ internal class NettyResponsePipeline(private val dst: ChannelHandlerContext,
f
?.
suspendWriteAwait
()
if
(
c
lose
)
{
if
(
prepareForC
lose
)
{
dst
.
flush
()
lastFuture
.
suspendWriteAwait
()
requestQueue
.
cancel
()
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать