GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — fix: use fasttimers for all connection timeouts by Uzlopak · Pull Request #3552 · nodejs/undici Conversation
|
| } else if ( |
So if we skipped a tick, we immediatly run the timer, because we are just too late?
But on the other hand, this could actually trigger timeouts too early?!
So yeah, I would prefer to increase the resolution.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
abc40ac to
4922c97
Compare
|
Are the fast timers even needed anymore after nodejs/node#46579? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Yea. I don't think that PR (nodejs/node#46579) makes much difference. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fast timers also adjust for event loop lag. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ok, then i change this PR to rip out fast timers |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4922c97 to
5dcfaaa
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Do not remove fast timers. That's the opposite of what I was trying to say.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5dcfaaa to
7393ea3
Compare
|
Oh! good that i had a backup :). reverted |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
but one thing maybe for interest The test run for ripped out fast timers passes the tests https://github.com/nodejs/undici/actions/runs/10714949877 This indicates that event loop lags are also handled properly by native timers. But I guess we want to keep our fast timers solution due to the fact, that it is still less resource hungry. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
IMO This shouldn't be true as it's based on the uv loop... to me it more indicates an issue with our test |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
let me fix the request-timeout tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Should we also use setFastTimeout here? Line 169 in 61a4b69
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
adapted so far, but not all tests are reactivated. so please not merge yet |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Because you asked, why i change the port. The thing is, that I want to use the port for the connection timeout to have in the logs the chance to determine atleast which server/connection resulted in a connection timeout. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub git fetch # Create a new working tree git worktree add .worktrees/backport-v6.x v6.x # Navigate to the new working tree cd .worktrees/backport-v6.x # Create a new branch git switch --create backport-3552-to-v6.x # Cherry-pick the merged commit of this pull request and resolve the conflicts git cherry-pick -x --mainline 1 dca0aa0998cbdef28916b23d6300beb2fd979140 # Push it to GitHub git push --set-upstream origin backport-3552-to-v6.x # Go back to the original working tree cd ../.. # Delete the working tree git worktree remove .worktrees/backport-v6.x Then, create a pull request where the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The backport fails to 6.x, as the refactor of fast timers in #3495 is not backported to 6.x |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub git fetch # Create a new working tree git worktree add .worktrees/backport-v6.x v6.x # Navigate to the new working tree cd .worktrees/backport-v6.x # Create a new branch git switch --create backport-3552-to-v6.x # Cherry-pick the merged commit of this pull request and resolve the conflicts git cherry-pick -x --mainline 1 dca0aa0998cbdef28916b23d6300beb2fd979140 # Push it to GitHub git push --set-upstream origin backport-3552-to-v6.x # Go back to the original working tree cd ../.. # Delete the working tree git worktree remove .worktrees/backport-v6.x Then, create a pull request where the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* fix: use fasttimers for all connection timeouts * Apply suggestions from code review * activate some tests * also use fastTimers in connect.js * fix tests * fix tests * fix tests * fix: use native timeouts for TIMEOUT_IDLE, rename TIMEOUT_IDLE to TIMEOUT_KEEP_ALIVE (#3554) * fix: use native timeouts for TIMEOUT_IDLE, rename TIMEOUT_IDLE to TIMEOUT_KEEP_ALIVE * ensure that fast timers and native timers are set properly * . * . * rename import * more informative connection error * ignore request-timeout binary file, rename clearAll to reset * fix * add test * use queueMicrotask earlier in the socket callbacks (cherry picked from commit dca0aa0)
* fix: use fasttimers for all connection timeouts * Apply suggestions from code review * activate some tests * also use fastTimers in connect.js * fix tests * fix tests * fix tests * fix: use native timeouts for TIMEOUT_IDLE, rename TIMEOUT_IDLE to TIMEOUT_KEEP_ALIVE (#3554) * fix: use native timeouts for TIMEOUT_IDLE, rename TIMEOUT_IDLE to TIMEOUT_KEEP_ALIVE * ensure that fast timers and native timers are set properly * . * . * rename import * more informative connection error * ignore request-timeout binary file, rename clearAll to reset * fix * add test * use queueMicrotask earlier in the socket callbacks (cherry picked from commit dca0aa0) Co-authored-by: Aras Abbasi <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
TIMEOUT_IDLE should include event loop lagUND_ERR_CONNECT_TIMEOUT errors thrown when there is CPU intensive code on the event loop
There was an error while loading. Please reload this page.