Skip to content

Commit 42855c9

Browse files
authored
JS: fix a timeout leak in the default HttpEngine (#6762)
1 parent 733c00c commit 42855c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/apollo-runtime/src/jsMain/kotlin/com/apollographql/apollo/network/http/DefaultHttpEngine.js.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,6 @@ private suspend fun readBody(body: dynamic, readTimeoutMillis: Long, abortContro
121121
throw cause
122122
}
123123
}
124+
clearTimeout(readTimeoutId)
124125
return bufferedSource
125126
}

0 commit comments

Comments
 (0)