Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KTOR-2644 Intercept continuation before adding to SFG state (#3265)
* KTOR-2644 Intercept continuation before adding to SFG state * KTOR-2644 Add SystemProperty to Disable SFG
- Loading branch information
Showing
5 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
ktor-utils/js/src/io/ktor/util/pipeline/PipelineContext.js.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package io.ktor.util.pipeline | ||
|
||
internal actual val DISABLE_SFG: Boolean = false |
8 changes: 8 additions & 0 deletions
8
ktor-utils/jvm/src/io/ktor/util/pipeline/PipelineContext.jvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package io.ktor.util.pipeline | ||
|
||
internal actual val DISABLE_SFG: Boolean = | ||
System.getProperty("io.ktor.internal.disable.sfg") == "true" |
10 changes: 10 additions & 0 deletions
10
ktor-utils/posix/src/io/ktor/util/pipeline/PipelineContext.posix.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package io.ktor.util.pipeline | ||
|
||
import kotlinx.cinterop.* | ||
import platform.posix.* | ||
|
||
internal actual val DISABLE_SFG: Boolean = getenv("KTOR_INTERNAL_DISABLE_SFG")?.toKString() == "true" |