Commit Graph

92 Commits

Author SHA1 Message Date
cheatfate 6aaa96569f Fix removeReader/removeWriter can produce SIGSEGV. 2018-12-12 13:07:41 +02:00
andri lim b6ffaf1dc7 fixes StreamTransport readOnce bug 2018-11-20 13:58:25 +07:00
cheatfate 190a16da3b Fix #6 behavior. 2018-11-07 22:29:49 +02:00
cheatfate b3195b616d Some fixes in state transition inside of datagram transport. 2018-11-07 21:42:08 +02:00
cheatfate 163982bc6e Add assert on callSoon(nil) 2018-10-27 20:08:19 +03:00
cheatfate b055467e9c Fix for nim-eth-p2p. 2018-10-27 17:19:58 +03:00
cheatfate 02c27c95a1 Add some deprecation routines. 2018-10-27 16:14:55 +03:00
cheatfate 774269f2f0 Fix `sendfile` behavior on BSD/MacOSX. 2018-10-25 22:59:40 +03:00
cheatfate 8a68c66caa Fix datagram problems. 2018-10-25 18:18:36 +03:00
cheatfate a4c27806ea Add AF_UNIX sockets support.
Add Windows emulation of AF_UNIX sockets via Named Pipes.
Add tests for AF_UNIX sockets.
TransportAddress object change.
2018-10-25 13:19:19 +03:00
cheatfate da1fb97c7a Added `code` for TransportOsError exception.
Fixed bug with connect on Windows.
Added test for `Connection Refused`.
Bump version to 2.1.4.
2018-10-03 03:44:39 +03:00
cheatfate 3859aab5c6 Fix race condition, when close transport happens while writing queue is not empty. 2018-10-02 13:50:14 +03:00
cheatfate 756f85576e Fix sockaddr.sin_family type conversion.
Bump version to 2.1.2.
2018-09-26 21:05:53 +03:00
cheatfate 74054428a4 Fix `closeWait()` is not closing. 2018-09-13 21:15:57 +03:00
cheatfate c84b8cb143 Add support of TCP_NODELAY option for TCP transport.
Bump version to 2.1.0.
2018-08-27 21:41:11 +03:00
cheatfate 530905f276 Fix #8 and related issues, added more tests for it.
Fix Unix connection failed bug.
2018-08-24 15:20:08 +03:00
cheatfate f4f98d617c Fix #9.
Add tests for #9.
Temporary disable some tests in testaddress.nim.
2018-08-06 21:12:16 +03:00
cheatfate 7718ebe1ee Workaround for multiple `waitFor` where `await` must be used.
Bump version to 2.0.7.
2018-08-06 15:15:05 +03:00
cheatfate d5b887f3d8 Add more utility procedures and tests for AsyncQueue.
Bump version to 2.0.6.
2018-07-31 12:50:22 +03:00
cheatfate 416d85dbf5 More safe version of sleepAsync(). 2018-07-25 19:36:16 +03:00
cheatfate 549bab1510 Fix `yield nil`. 2018-07-25 07:05:52 +03:00
cheatfate 216fd7b744 Fix disconnect in process handling. 2018-07-24 18:43:30 +03:00
cheatfate 25ad1e2f32 Fix Unix compilation problems. 2018-07-24 16:26:56 +03:00
cheatfate f1cf6d36fc Fix double completion issue in reading procedures. 2018-07-24 16:23:35 +03:00
cheatfate 2ef7469d71 Fix comments. 2018-07-20 12:11:38 +03:00
cheatfate 32bbbb051c Add asynchronous specific exception AsyncError.
Add AsyncTimeoutError.
Add wait[T]() procedure and tests.
Bump version to 2.0.2.
2018-07-20 11:58:01 +03:00
cheatfate c9ab35dabc Merge branch 'master' of github.com:status-im/nim-asyncdispatch2 2018-07-13 11:25:21 +03:00
cheatfate 693783b36b add closed() procedure to check if transport is closed. 2018-07-13 11:24:52 +03:00
Zahary Karadjov 4911d25807 fix a minor issue preventing the usage of the async pragma in certain generated code 2018-07-06 04:17:08 +03:00
cheatfate aa15313aa8 Fix: Windows handle error on disconnect. 2018-07-03 08:35:45 +03:00
cheatfate 7e8ecb1dd0 Fix hidden exceptions in transports. 2018-06-18 23:57:40 +03:00
cheatfate d949710d8d Fix asyncCheck. 2018-06-15 20:05:43 +03:00
cheatfate c102deac9d Fix stream.nim write() GC functions. 2018-06-15 15:09:44 +03:00
cheatfate 0ca2cd8e5c Fix GC issues with sending, according to latest Nim changes.
Changed datagram.nim API to allow sending parts of strings and seqs.
2018-06-15 13:54:26 +03:00
cheatfate 82f7b9f77f Move all remote address storage to heap. 2018-06-15 11:55:35 +03:00
cheatfate b231e7ebf8 Fix compilation errors. 2018-06-15 03:58:17 +03:00
cheatfate a0c724e9d8 Fix Windows/Unix behavior on datagram CONNRESET.
Add test for CONNRESET
2018-06-15 03:28:02 +03:00
cheatfate 708e581c62 One more initTAddress(). 2018-06-14 10:15:31 +03:00
cheatfate 525aaf6837 Comment out asyncmacro2 skipStmtList().
Many changes in datagram.nim.
Fixed testdatagram.nim.
Fixed testserver.nim.
2018-06-14 09:49:59 +03:00
cheatfate 978203691e Add `var` arguments to GC procedures, to disallow runtime exceptions. 2018-06-11 23:50:45 +03:00
cheatfate d2b93f309b Fix createStreamServer[T]().
Add test for bug with createStreamServer[T]().
2018-06-11 22:54:08 +03:00
cheatfate 3d6ce0f509 Fix asyncmacro2.nim to follow latest changes on upstream.
Fix unix acceptLoop started on server creation.
2018-06-11 10:16:08 +03:00
cheatfate 5815897de6 Fix windows asyncLoop.
Fix OSError -> TransportOSError.
Add inherited objects initialization.
Add tests for inherited objects.
2018-06-11 02:08:17 +03:00
cheatfate 0ee9a148c7 Fix for TransportAddress resolveTAddress behavior.
Added more tests for TransportAddress.
2018-06-10 03:55:19 +03:00
cheatfate 179e6cf834 Fix asyncloop, to properly clear reader/writer data. 2018-06-08 08:42:48 +03:00
cheatfate de7e0f41e9 Fix connect() bug. 2018-06-07 22:07:17 +03:00
cheatfate 3ad36cc4c1 Fix duplicates in getAddrInfo(). 2018-06-07 21:27:39 +03:00
cheatfate 349bdd5cdf Fixed bug in stop StreamServer, when it not started yet.
Fixed some arguments' types.
2018-06-07 11:05:06 +03:00
cheatfate 48880c6e4e Fix all().
Add getUserData(server: StreamServer)
2018-06-07 09:17:59 +03:00
cheatfate a5be5303e3 Add resolveTAddress(string, Port) and test for it. 2018-06-07 01:15:31 +03:00