Commit Graph

68 Commits

Author SHA1 Message Date
Dominik Picheta
75e5c87f15 Fixes #4170. 2016-09-17 14:19:26 +02:00
Dominik Picheta
5bf16439e1 Fixes #4262. 2016-09-17 13:22:04 +02:00
cheatfate
3d556a9719 Fix #4777 network buffers overflow because of immediate sendTo call. 2016-09-17 03:07:57 +03:00
Dmitry Polienko
191ff51859 Fix tasyncsend4757 test (Linux) 2016-09-13 02:40:48 -07:00
Dmitry Polienko
a2a5985a2d Add test for issue #4757 2016-09-13 02:00:37 -07:00
cheatfate
cc2a8409e1 update path to SSL certificates 2016-09-07 12:51:18 +03:00
cheatfate
1350d5312b Removed tests with asyncio.
Fix ssl connection drop in asyncnet
Add tasyncssl test
2016-09-07 12:19:06 +03:00
cheatfate
ec7aec3d58 Fix windows issues.
Fix semantic of AsyncEvent close/unregister #4694.
Fix #4697.
Added first test.
2016-09-06 12:29:53 +03:00
cheatfate
015e22c8c0 Add upcoming/asyncdispatch.nim to tests. 2016-09-04 01:22:04 +03:00
cheatfate
ab69849a05 Resolve #4606
Resolve some new deprecated warnings for test.
2016-08-12 02:41:23 +03:00
Andreas Rumpf
67b024838c fixes #1970 2016-07-19 20:44:08 +02:00
Andreas Rumpf
1d186ee9c3 fixes #2377 2016-07-08 18:08:34 +02:00
Andreas Rumpf
b47d9b7b91 fixes #4371 2016-07-08 10:34:12 +02:00
cheatfate
32e3e01dac Resolve problems with test on macosx. 2016-07-06 18:02:59 +03:00
cheatfate
835ff4a2f8 ioselectors separated and refactored version.
adopted asyncdispatch version
2016-07-05 13:18:26 +03:00
cheatfate
2eb34a8129 Event enum is now .pure.
Modified getMaxFds() to work more properly.
Removed seqs from code
Some exceptions replaced with doAssert
2016-06-26 09:51:01 +03:00
cheatfate
ee6257b992 Forgot about newlines at the end 2016-06-23 23:16:00 +03:00
cheatfate
c857e32867 Small version of ioselectors.nim, without code duplication and some renames. 2016-06-23 23:12:27 +03:00
cheatfate
b53f13cbe7 New version, without any piece of code duplication. 2016-06-17 13:37:42 +03:00
Dominik Picheta
500aa0cb3f Reverts 1446dc87c3. Fixes #4333. Fixes #4170. 2016-06-15 16:56:28 +01:00
cheatfate
43329c5909 Introduce addRead/addWrite for Windows IOCP. 2016-06-12 15:09:30 +03:00
Andreas Rumpf
76c8d6164b added 'koch testinstall' command; more installer related bugfixes 2016-06-09 17:34:57 +02:00
cheatfate
fb4ff86ad6 Make some proper closes. 2016-06-09 07:07:43 +03:00
Konstantin Molchanov
d5d036ca9d Tests: tasyncall: Varargs test added. 2016-06-03 15:19:39 +03:00
Konstantin Molchanov
81c7be1b35 Tests: async: Tests for all proc added. 2016-05-31 23:49:59 +04:00
cheatfate
aba60e54d5 Resolve bugs with deep recursion of asyncdispatch.
Introduce callSoon() implementation.
Patch tests to use waitFor() instead of asyncCheck()
2016-05-18 00:53:53 +03:00
Dominik Picheta
1446dc87c3 await x where x is Fut var now reads after yield. Fixes #3964. 2016-04-04 22:50:31 +01:00
Josep Sanjuas
5a582a0d9c Define ports as uint16s to fix #3484 2016-03-27 22:56:44 +02:00
Andreas Rumpf
5be6c95d21 fixes async regression 2016-01-11 11:11:44 +01:00
Andreas Rumpf
1a2bda45ec fixes #2007 2016-01-05 10:20:24 +01:00
Adam Strzelecki
be991ed413 Rename rawsockets module to nativesockets
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.

A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Dominik Picheta
ac6b21a018 Fixes failing async tests on Linux. 2015-09-11 17:09:13 +01:00
Dominik Picheta
77c2bcf079 Improve asyncdispatch error messages, fix some tests on Windows. 2015-09-11 14:35:42 +01:00
Adam Strzelecki
e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Kay Zheng
a11a2f0fdb Check for async errors in 2015-04-18 10:27:35 +08:00
Kay Zheng
3125058b6a Only run the test for the fixed version of poll(...) 2015-04-17 22:40:53 +08:00
Kay Zheng
371d273924 Add a test case for the EvError handling issue 2015-04-17 22:24:06 +08:00
Dominik Picheta
3751019823 Fix infinite recursion when await is in except body. 2015-03-30 00:42:21 +01:00
Dominik Picheta
03019849fc Async await try statement fixes. 2015-02-09 23:00:07 +00:00
Dominik Picheta
a8771b3051 Improved tasyncawait test. 2014-12-26 19:37:08 +00:00
Dominik Picheta
f972b464cb Deprecated asyncio module. Fixed old tests. 2014-12-26 19:21:34 +00:00
Dominik Picheta
00b6a14489 More empty stmt fixes. 2014-09-09 15:58:44 +01:00
Dominik Picheta
56f11e2c95 Fixes async tests. 2014-09-09 01:17:07 +01:00
Dominik Picheta
dd33069d59 Implements getCurrentException for try in async procs. Ref #1487. 2014-09-09 01:16:28 +01:00
Dominik Picheta
6689fa68f5 Multiple exception idents in except for async. Ref #1487. 2014-09-08 22:04:09 +01:00
Dominik Picheta
52c16a1a79 Implemented asyncfile for Posix. 2014-09-05 21:14:18 +01:00
Dominik Picheta
0f3025e320 Added Windows asyncfile implementation. 2014-09-05 17:36:16 +01:00
Araq
c6034277fc further adaptations 2014-08-29 09:12:12 +02:00
Araq
4d863ebb5e fix failed tests due to gcsafe 2014-08-12 10:11:58 +02:00
Dominik Picheta
4f5f98f0b1 Fixes incorrect async exception handling. Adds sleepAsync.
The tasyncexceptions test has been added which tests for this incorrect
exception handling behaviour. The problem was that the exception was
raised inside a callback which was called from a previously finished async
procedure. This caused a "Future already finished" error. The fix was to
simply reraise the exception if the retFutureSym is already finished.

sleepAsync was added to help with the reproduction of this test. It should
also be useful for users however.

Finally some debug information was added to futures to help with future
bugs.
2014-08-09 17:13:22 +01:00