Commit Graph
12 Commits
Author SHA1 Message Date
Eugene Kabanov f3e582b87b Revert "chore: unnecessery assign (#599)" (#600)
This reverts commit 4dcb297ee8.
2025-11-19 18:12:40 +00:00
vladopajic 4dcb297ee8 chore: unnecessery assign (#599) 2025-11-19 14:04:51 +00:00
Eugene Kabanov 14ba7183e9 Some fixes for Windows and MacOS platforms. (#592)
* Add windowsAnyAddressFix to MacOS hosts too.

* Fix Windows terminate() race condition.
Fix TRUE check on Windows where it become non-zero.

* Fix WaitOrTimeoutCallback callback definition (BOOLEAN is not BOOL).

* Some more places to fix.
2025-10-27 22:40:22 +02:00
Eugene Kabanov 36d8ee5617 Fix, waitpid() should wait for finished process. (#566) 2025-01-30 13:28:25 +02:00
Jacek Sieka c5a5ece487 fix circular reference in timer (#510) 2024-03-07 08:07:53 +01:00
Eugene Kabanov 09a0b11719 Make asyncproc use asyncraises. (#497)
* Make asyncproc use asyncraises.

* Fix missing asyncraises for waitForExit().
2024-01-23 08:34:10 +01:00
Jacek Sieka 0d55475c29 stew/results -> results (#468) 2023-11-13 10:56:19 +01:00
Eugene Kabanov 2e8551b0d9 Cancellation fixes and tests. (#445)
* Add callTick and stream cancellation tests.

* Fix stepsAsync() test.

* Cancellation changes.

* Update and add more cancellation tests.

* Fix Posix shutdown call to handle ENOTCONN error.

* With new changes to to cancellation its now possible.

* Refactor testsoon.nim to not produce artifacts after tests are finished.

* Debugging MacOS issue.

* Adjust flaky test times.

* Fix issue.

* Add test for issue #334 which was also addressed in this PR.
Avoid `break` in problematic test.

* Add noCancelWait() call which prohibits cancellation.
Fix closeWait() calls to use noCancelWait() predicate.
Adding sleep to flaky MacOS test.

* Remove all debugging echoes.

* Fix cancelAndWait() which now could perform multiple attempts to cancel target Future (mustCancel behavior).

* Fix issues revealed by switch to different cancelAndWait().

* Address review comments.

* Fix testutils compilation warning.

* Rename callTick() to internalCallTick().

* Add some documentation comments.

* Disable flaky ratelimit test.

* Rename noCancelWait() to noCancel().
Address review comments.
2023-09-15 19:38:39 +03:00
Eugene Kabanov 53e9f75735 Add some helpers for asyncproc. (#424)
* Initial commit.

* Adjust posix tests.

* Fix compilation issue.

* Attempt to fix flaky addProcess() test.
2023-07-28 11:54:53 +03:00
Eugene Kabanov 155d89450e Trackers refactoring. (#416)
* Refactor chronos trackers to be more simple.

* Refactor trackers.
Add HTTP server trackers.
Refactor HTTP main processing loop.

* Compatibility fixes.
Add checkLeaks().

* Fix posix test issue.

* Add httpdebug module which introduces HTTP connection dumping helpers.
Add tests for it.

* Recover and deprecate old version of Trackers.

* Make public iterators to iterate over all tracker counters available.
Fix asynctests to use public iterators instead private one.
2023-07-14 13:35:08 +03:00
Jacek Sieka 1d6c309d77 clean up Defect (#404) 2023-06-05 22:21:50 +02:00
Eugene Kabanov 148ddf49c2 Asyncproc (Part 3/3) (#374)
* Initial commit.

* Some Linux fixes.

* Address review comments on Windows.

* Fix issues on Linux.

* Fix 1.2 issue and Windows warnings.

* Fix posix compilation issues.
2023-05-23 12:39:35 +02:00