Commit Graph

  • c0472bd349 Fix streams to check only for Closed state. cheatfate 2021-01-30 20:15:34 +02:00
  • 534df03a0b Fixes and improvements cheatfate 2021-01-28 05:37:16 +02:00
  • 0e5ea5b737 Prepare for HttpResponse. cheatfate 2021-01-27 21:39:14 +02:00
  • 60e5396a9e Remove executable. cheatfate 2021-01-27 08:19:25 +02:00
  • 8381a40868 Initial commit. cheatfate 2021-01-27 08:14:17 +02:00
  • 0b396c34d8 Add newline. cheatfate 2021-01-24 23:46:55 +02:00
  • 2defc4b822 Add sequence of bytes as boundary to BoundStream and tests. cheatfate 2021-01-24 23:40:52 +02:00
  • fb137112be Remove debugging changes. cheatfate 2021-01-22 15:02:13 +02:00
  • 13eddf382d Simplification and fixes for TLSStream state machine. cheatfate 2021-01-22 10:36:37 +02:00
  • e8d2a3ca0a Attempt #5. cheatfate 2021-01-21 20:11:43 +02:00
  • 49fd70f504 Attempt #4. cheatfate 2021-01-21 05:42:44 +02:00
  • f1b43aeb04 Investigation of Linux freezes #3. cheatfate 2021-01-20 22:40:23 +02:00
  • cf42a5455e Investigation of Linux freezes #2. cheatfate 2021-01-20 19:06:26 +02:00
  • bb176ba574 Investigation of Linux freezes #1. cheatfate 2021-01-20 17:49:04 +02:00
  • ac8b11d6ca close() procedure should not raise, otherwise its impossible to cleanup. cheatfate 2021-01-20 17:08:16 +02:00
  • 0cb6840f03 Big refactoring of AsyncStreams. 1. Implement all read() primitives using readLoop() like it was done in streams. 2. Fix readLine() bug. 3. Add readMessage() primitive. 4. Fixing exception hierarchy, handling code and simplification of (break/continue + exception). 5. Fix TLSStream closure procedure. 6. Add BoundedStream stream and tests. 7. Remove result usage from the code. cheatfate 2021-01-20 15:40:15 +02:00
  • 39456e9c18
    README: remove claim about temp var reordering (#155) Ștefan Talpalaru 2021-02-10 15:49:12 +01:00
  • dcf197a8c7
    Attempt to fix MacOS compilation issues. (#152) Eugene Kabanov 2021-02-02 17:10:07 +02:00
  • e7f5f855ab
    use constant for ip kind (#151) Jacek Sieka 2021-02-02 15:12:12 +01:00
  • c1f6e7276e
    add github action script (#144) andri lim 2021-01-20 22:36:10 +07:00
  • 491213dfa0
    Add callIdle() primitive. (#148) Eugene Kabanov 2021-01-19 14:48:39 +02:00
  • 9a420c6b05
    work around overload resolution issues (#146) Jacek Sieka 2021-01-11 22:15:21 +01:00
  • 0933feaa35
    Fix callSoon to raise Defect only. (#145) Eugene Kabanov 2021-01-11 19:15:23 +02:00
  • 46c0bf3c5a
    Fix define to skip flaky test on MacOS. cheatfate 2020-11-27 03:50:38 +02:00
  • bca5559c6a
    Race() call (#142) Eugene Kabanov 2020-11-27 00:50:55 +02:00
  • ac9b3e304f
    Fix deadlock for pending write() calls on transport close. (#139) Eugene Kabanov 2020-11-18 11:30:33 +02:00
  • 879c917242 Add cancellation handler for cancelAndWait() cheatfate 2020-11-17 12:04:19 +02:00
  • 493cb1dbfd Fix behavior of wait() and withTimeout() calls to cancel and wait for result of cancelled Future[T]. Add tests. cheatfate 2020-11-17 11:59:02 +02:00
  • 7fd1a0f635
    rename newFuture proc's (#136) Jacek Sieka 2020-11-15 19:46:42 +01:00
  • b5915ecd29
    Small fixes (#134) Eugene Kabanov 2020-11-13 14:22:58 +02:00
  • d3018ae908
    Fix TLSStream SSL errors while in handshake could stuck connection. (#133) Eugene Kabanov 2020-10-13 02:12:52 +03:00
  • 1ffd1cd3dc
    release callback memory early (#130) Jacek Sieka 2020-09-15 09:55:43 +02:00
  • 2134980744
    Fix AsyncLock.locked flag to be consistent. (#129) Eugene Kabanov 2020-09-10 23:28:20 +03:00
  • 483054cda6
    small fixes (#127) Jacek Sieka 2020-09-10 10:39:10 +02:00
  • 57ebe84d17
    Add Defect check for arguments pbytes and nbytes. (#128) Eugene Kabanov 2020-09-10 03:50:06 +03:00
  • 126ea4bc56
    Fix newFuture[T] location source for generated async procedures. (#125) Eugene Kabanov 2020-09-03 14:37:53 +03:00
  • a5442edfc0
    Add asyncSpawn() procedure and tests. (#123) Eugene Kabanov 2020-09-01 21:41:18 +03:00
  • e6d50b7736 Revert "some metrics for monitoring futures (#85)" Zahary Karadjov 2020-08-16 01:45:41 +03:00
  • 826d48c4aa Revert "more docs (#111)" Zahary Karadjov 2020-08-16 01:43:44 +03:00
  • 03f4a26829 Revert "yieldAsync() (#120)" Zahary Karadjov 2020-08-16 01:36:36 +03:00
  • 34b81961d3 Revert "asyncCheck(): don't raise exception on cancellation (#121)" Zahary Karadjov 2020-08-16 01:34:42 +03:00
  • baf33f04ea
    asyncCheck(): don't raise exception on cancellation (#121) Ștefan Talpalaru 2020-08-12 16:24:55 +02:00
  • 284d677815
    yieldAsync() (#120) Ștefan Talpalaru 2020-08-10 15:31:21 +02:00
  • d0a17d551f
    more docs (#111) Ștefan Talpalaru 2020-08-06 20:52:50 +02:00
  • e45ef32b5b
    some metrics for monitoring futures (#85) Ștefan Talpalaru 2020-08-06 19:30:53 +02:00
  • 0d4d0002b0
    Produce an error when the result variable is used in void async procs (#117) zah 2020-08-05 16:28:11 +03:00
  • 73de13ca7a
    Fix SIGSEGV while consuming errors more then once. (#114) Eugene Kabanov 2020-08-05 00:23:43 +03:00
  • f5634f499d
    cancelAndWait(): add comments (#112) Ștefan Talpalaru 2020-07-30 02:47:11 +02:00
  • 3968f09ae1
    Skip flaky test on MacOS. cheatfate 2020-07-17 09:38:58 +03:00
  • 31fec25063
    Fix accept races. (#110) Eugene Kabanov 2020-07-15 11:09:34 +03:00
  • 783f84aa4b
    Fix EAGAIN issue in acceptLoop(). cheatfate 2020-07-15 01:07:03 +03:00
  • 63041b2d8f
    start documenting the library (#109) Ștefan Talpalaru 2020-07-13 17:59:11 +02:00
  • f856c885fa
    fix endian conversion issues (#82) Jacek Sieka 2020-07-12 18:22:47 +02:00
  • 8b8a1e793d
    bump supported nim version Jacek Sieka 2020-07-12 18:20:21 +02:00
  • 0ad7321aa0
    ServerFlags.ReusePort support on POSIX (#95) Ștefan Talpalaru 2020-07-12 18:13:22 +02:00
  • ce6e7d17b1
    Make Future tracking and stack traces optional (#108) Eugene Kabanov 2020-07-08 19:48:01 +03:00
  • 5629b3c41f
    [WIP] Zero-cost unattended Future[T] tracking mechanism. (#106) Eugene Kabanov 2020-07-06 09:33:13 +03:00
  • 16ed169f25
    Fix cancellation race when low level futures are already completed, while cancellation process is pending. (#107) Eugene Kabanov 2020-07-03 15:03:59 +03:00
  • 528688d01e
    Add sanity check. (#105) Eugene Kabanov 2020-06-25 09:32:41 +03:00
  • 319e2bfc09
    Fix Nim's issue #13899 using #14723 and add tests. (#104) Eugene Kabanov 2020-06-24 13:03:36 +03:00
  • 02b8da986b
    Add accept() call (#103) Eugene Kabanov 2020-06-24 11:21:52 +03:00
  • bedd1ded5e
    Properly fix cancellation race and not introduce FD leaks. (#102) Eugene Kabanov 2020-06-05 19:11:51 +03:00
  • d6d0084333
    Fix cancellation race when connect() call is getting cancelled. (#101) Eugene Kabanov 2020-06-04 13:07:52 +03:00
  • bce0f878d1
    Remove unreachable raise from initTAddress (#97) Kim De Mey 2020-05-15 13:09:21 +02:00
  • aff69aaf29
    fix closed error type (#99) Jacek Sieka 2020-05-13 21:45:40 +02:00
  • 357baa52a0
    Fix documentation for or. cheatfate 2020-04-21 07:33:31 +03:00
  • 2ecc5500c2
    Undeprecate or operation. (#93) Eugene Kabanov 2020-04-21 07:07:49 +03:00
  • 9ea1017a06
    Fix possible race condition in asyncstream close (#91) Giovanni Petrantoni 2020-04-09 23:56:56 +09:00
  • 3d745a4b0c
    Fix Nim's issue #13889 https://github.com/nim-lang/Nim/issues/13889. (#90) Eugene Kabanov 2020-04-06 15:49:09 +03:00
  • 4e2810cfe0
    Fix issue with allFinished(), allFutures(), one() behavior when Futures passed are already finished. (#89) Eugene Kabanov 2020-04-06 13:56:24 +03:00
  • cbd8e03823
    Add allFinished() primitive. (#87) Eugene Kabanov 2020-04-01 12:10:56 +03:00
  • 72b4f14427
    fix nim 1.2 compilation issue on linux andri lim 2020-03-26 16:46:31 +07:00
  • f3827a13d1 prepare nim-chronos for Nim version 1.2 Araq 2020-03-10 15:33:09 +01:00
  • 7ed9f1431a
    Bump version to 2.3.8. cheatfate 2020-03-05 20:54:57 +02:00
  • d8f8e3d9fc
    readMsg branch by @arnetheduck with some changes. (#83) Jacek Sieka 2020-03-05 10:59:10 +01:00
  • 56fbdff096
    Async transformed procedures will not catch Exception anymore. Bump version to 2.3.7. cheatfate 2020-03-03 13:42:43 +02:00
  • fe1b1a6983
    Merge pull request #79 from status-im/dgramanyaddr Eugene Kabanov 2020-02-26 00:09:51 +02:00
  • 64583b4269
    Fix Windows datagram's AnyAddress issue. Add test for datagram's AnyAddress. Bump version to 2.3.6. cheatfate 2020-02-25 23:50:39 +02:00
  • 3367b6ca90
    Merge pull request #75 from status-im/fix-future-defect Eugene Kabanov 2020-02-18 05:54:55 +02:00
  • a9ed7e4f3f
    FutureDefect is a type of Defect Zahary Karadjov 2020-02-18 00:34:57 +02:00
  • 8e70d1be7a
    Fix macos warnings. cheatfate 2020-02-12 23:01:41 +02:00
  • 80351cb928
    Fix #73. cheatfate 2020-02-12 22:54:05 +02:00
  • e3ced62d4b
    Merge pull request #69 from status-im/fix-64 Eugene Kabanov 2020-01-28 16:08:56 +02:00
  • 4a2416fe5e
    Allow to setup datagram servers with 0 port. cheatfate 2020-01-28 15:46:57 +02:00
  • e34857364e
    Attempt to fix #64. cheatfate 2020-01-28 12:47:38 +02:00
  • 74700fdcab Fix bug cancellation handlers not called in wait() and withTimeout(). Fix double completion bug because of callback race. Fix deprecation warnings. Rename some internal procedures. Bump version to 2.3.5. cheatfate 2020-01-27 20:28:44 +02:00
  • f02e748f18
    Merge pull request #63 from status-im/fix-wait-timeout Eugene Kabanov 2020-01-09 20:37:25 +02:00
  • 1c176c173d fix: restore removeCallback Dmitriy Ryajov 2020-01-08 19:32:53 -06:00
  • 0d84f273c9 make clearTimer inline Dmitriy Ryajov 2020-01-08 11:23:01 -06:00
  • 96e0206c27 reverting AsyncCallback to object Dmitriy Ryajov 2020-01-08 11:06:56 -06:00
  • 78953f8fc3 consolidating timers loop Dmitriy Ryajov 2020-01-08 10:03:34 -06:00
  • d8dd09a358 don't loop over timers heap Dmitriy Ryajov 2020-01-07 19:06:27 -06:00
  • d979770263 clear timers under windown as well Dmitriy Ryajov 2020-01-07 10:22:38 -06:00
  • b9c534724c don't scan timers heap on each remove Dmitriy Ryajov 2020-01-06 23:26:18 -06:00
  • 546cc36d79 fix: avoid completing future twise Dmitriy Ryajov 2019-12-24 13:23:45 -06:00
  • c39c069680
    Merge pull request #61 from status-im/excback Eugene Kabanov 2019-12-02 13:42:00 +02:00
  • a20c34603e
    Revert back some exception changes. cheatfate 2019-12-02 12:40:41 +02:00
  • cb44a30430
    Merge pull request #60 from status-im/nogetcurexcp Eugene Kabanov 2019-11-28 20:46:23 +02:00
  • 73c130abb4
    Remove usage of getCurrentException(). Bump version to 2.3.4. cheatfate 2019-11-28 20:14:19 +02:00
  • 2518a4161f
    Merge pull request #59 from status-im/catchable-error Eugene Kabanov 2019-11-24 21:10:59 +02:00