mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Don't set isIdle when it is not in fact idle (#24274)
### What does this PR do? ### How did you verify your code works? <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved HTTP connection handling during write failures to ensure more reliable timeout behavior and connection state management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -412,7 +412,6 @@ private:
|
||||
/* Timeout on uncork failure */
|
||||
auto [written, failed] = ((AsyncSocket<SSL> *) returnedData)->uncork();
|
||||
if (written > 0 || failed) {
|
||||
httpResponseData->isIdle = true;
|
||||
/* All Http sockets timeout by this, and this behavior match the one in HttpResponse::cork */
|
||||
((HttpResponse<SSL> *) s)->resetTimeout();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user