Skip to content

Fix: time calculations in IOCP and Monitor thread#16583

Merged
ysbaddaden merged 2 commits intocrystal-lang:masterfrom
ysbaddaden:fix/invalid-time-calculations-in-iocp-and-monitor-thread
Jan 19, 2026
Merged

Fix: time calculations in IOCP and Monitor thread#16583
ysbaddaden merged 2 commits intocrystal-lang:masterfrom
ysbaddaden:fix/invalid-time-calculations-in-iocp-and-monitor-thread

Conversation

@ysbaddaden
Copy link
Collaborator

@ysbaddaden ysbaddaden commented Jan 19, 2026

I reviewed all the internal use cases of #duration_since.

Related to #16581
Closes #16582

@ysbaddaden ysbaddaden added this to the 1.19.1 milestone Jan 19, 2026
@ysbaddaden ysbaddaden self-assigned this Jan 19, 2026
@ysbaddaden ysbaddaden added topic:stdlib:runtime topic:multithreading kind:regression Something that used to correctly work but no longer works labels Jan 19, 2026
@ysbaddaden ysbaddaden merged commit 4c06868 into crystal-lang:master Jan 19, 2026
53 checks passed
@github-project-automation github-project-automation bot moved this from Review to Done in Multi-threading Jan 19, 2026
@ysbaddaden ysbaddaden deleted the fix/invalid-time-calculations-in-iocp-and-monitor-thread branch January 19, 2026 13:44
ysbaddaden added a commit that referenced this pull request Jan 20, 2026
* Fix: invalid absolute to relative time conversions in IOCP event loop
* Fix: invalid remaining time calculation in monitor thread
@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. backport release/1.19 labels Jan 20, 2026
@crysbot
Copy link
Collaborator

crysbot commented Jan 20, 2026

Git push to origin failed for release/1.19 with exitcode 128

1 similar comment
@crysbot
Copy link
Collaborator

crysbot commented Jan 20, 2026

Git push to origin failed for release/1.19 with exitcode 128

ysbaddaden added a commit to ysbaddaden/crystal that referenced this pull request Jan 20, 2026
* Fix: invalid absolute to relative time conversions in IOCP event loop
* Fix: invalid remaining time calculation in monitor thread
ysbaddaden added a commit that referenced this pull request Jan 20, 2026
* Fix: invalid absolute to relative time conversions in IOCP event loop
* Fix: invalid remaining time calculation in monitor thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release/1.19 kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:regression Something that used to correctly work but no longer works topic:stdlib:concurrency topic:stdlib:runtime

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Regression: sub-second sleeps fire too quickly in Windows/IOCP

3 participants