nim-chronos/chronos/apps/http
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
..
httpagent.nim Httpclient (#182) 2021-05-10 10:26:36 +03:00
httpbodyrw.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
httpclient.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
httpcommon.nim HttpAddress errors should be not only critical. (#446) 2023-09-04 21:49:45 +03:00
httpdebug.nim Unroll `defer`s and remove `break`s. (#440) 2023-08-09 10:57:49 +03:00
httpserver.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
httptable.nim Unroll `defer`s and remove `break`s. (#440) 2023-08-09 10:57:49 +03:00
multipart.nim clean up `Defect` (#404) 2023-06-05 22:21:50 +02:00
shttpserver.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00