Dominik Picheta
77071eb767
FutureStream's cb call behaviour fixed + other fixes.
2017-02-11 12:42:30 +01:00
Dominik Picheta
4a7ea8f865
Add support for Async | Sync return types in {.multisync.} macro.
2017-02-11 12:39:37 +01:00
Dominik Picheta
2f502e2a9e
Remove immediate FutureStream procs and make 'put' awaitable.
2017-02-10 20:40:32 +01:00
Dominik Picheta
ddd3d3f44a
Improve implementation of takeAsync for FutureStreams.
2017-02-10 20:18:59 +01:00
Dominik Picheta
7766fdfec1
Implemented a first working version of FutureStreams.
2017-02-10 00:06:18 +01:00
Dominik Picheta
c4d5cc652f
Work around issue with queues. Refs #4773 .
2017-02-10 00:05:42 +01:00
Dominik Picheta
3286480985
Improve error message when a nil future is await'ed.
2017-02-09 23:07:10 +01:00
Dominik Picheta
e189004a03
WIP implementation of FutureStream.
2017-02-09 22:46:20 +01:00
Araq
3caf108425
system/unicode: check for buffer overflows; refs #5284
2017-02-08 15:22:36 +01:00
Dominik Picheta
0535b6b6bf
Implement SSL SNI hostname setting for asyncnet.
2017-02-08 00:04:40 +01:00
Dominik Picheta
7c15120247
Add some tests to httpcore related to #5344 .
2017-02-07 18:32:57 +01:00
Araq
8ae05c6555
cleaned up accept-close-race fix #5279
2017-02-07 14:59:46 +01:00
Araq
4790b6b203
Merge branch 'accept-close-race-5279' of https://github.com/endragor/Nim into endragor-accept-close-race-5279
2017-02-07 14:44:27 +01:00
Ruslan Mustakov
7a839d7b02
Move checkCloseError to nativesockets
2017-02-07 16:45:59 +07:00
Arne Döring
2c6c865b35
reenabled clear test, made clear working ( #5323 )
2017-02-02 23:06:13 +01:00
Araq
e236039d10
make tests on Windows green under --pedantic
2017-02-02 21:12:36 +01:00
Ruslan Mustakov
fb8168d338
Fix Windows accept() to fail future instead of raising
...
Resolves : #5279
2017-02-01 18:18:44 +07:00
Eugene Kabanov
d90f3f59ac
Fixes for upcoming asyncdispatch and ioselectors. ( #5309 )
2017-02-01 12:12:26 +01:00
Ruslan Mustakov
8b10609452
Allow .async pragma on methods ( #5312 )
2017-02-01 08:50:30 +01:00
Andreas Rumpf
76eb20d2d3
deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib deprecations
2017-01-30 08:50:57 +01:00
cheatfate
210ac5c138
One more fix for #5290 .
2017-01-28 10:34:13 +02:00
Andreas Rumpf
1bf78618fe
Merge branch 'fix5290' of https://github.com/cheatfate/Nim into cheatfate-fix5290
2017-01-27 18:51:46 +01:00
cheatfate
9c2721c8bb
Fix mistake
2017-01-27 14:12:26 +02:00
cheatfate
e84efc4d01
asyncdispatch exception memory leaks fixes.
2017-01-27 12:14:53 +02:00
cheatfate
4b95819146
Fix #5290 .
...
Some cosmetic changes.
2017-01-27 11:08:57 +02:00
Araq
376f6efa80
make segfaults compilation robust on Windows
2017-01-27 09:49:17 +01:00
Yuriy Glukhov
c8dcf8993f
Added heapqueue.del ( #5289 )
2017-01-27 08:22:17 +01:00
cheatfate
6caefcc573
oops.
2017-01-26 18:41:22 +02:00
cheatfate
78e3bd392c
Fix changes table must be SharedArray when hasThreadSupport.
2017-01-26 18:28:34 +02:00
Andreas Rumpf
303c49b9f3
memory tracker is aware of threads (still not threadsafe though)
2017-01-26 11:26:02 +01:00
David Krause
b20817c3fb
added default param to strtabs.getOrDefault ( #5280 )
2017-01-26 10:34:02 +01:00
Jeff Ciesielski
74ae66ddbc
Add volatile load/store ( #5263 )
...
Adds volatile load/store capability to the impure part of the standard
library. Note that this currently only supports numerical types.
Should resolve https://github.com/nim-lang/Nim/issues/3382
2017-01-25 20:02:19 +01:00
Ruslan Mustakov
35d48765fb
Use onThreadCreation to set default SSL context for each thread ( #5265 )
...
Fixes : #4998
2017-01-23 21:04:14 +01:00
Dominik Picheta
9e723166fe
Merge pull request #5250 from yglukhov/http-redirect
...
Redirects support in request proc
2017-01-21 11:48:50 +01:00
Dominik Picheta
e634ee858c
Merge pull request #5255 from enthus1ast/devel
...
added isAbsolute to uri.nim
2017-01-21 11:44:52 +01:00
enthus1ast
f2ce8eb372
more isAbsolute tests for uri.nim
...
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:54:38 +01:00
enthus1ast
46ac235715
added protocol-relative test to uri.nim
...
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:40:09 +01:00
Vladar4
ea4397fbb0
fixed bug when the first random(max: float) call is the same value, regardless of randomize() ( #5257 )
2017-01-20 19:35:20 +01:00
Araq
cdebcf23d9
new segfaults.nim stdlib module works on Windows
2017-01-20 17:08:11 +01:00
Andreas Rumpf
7ff80cc8b2
first implementation of segfaults stdlib module
2017-01-20 12:40:54 +01:00
Yuriy Glukhov
2f320fb286
Fixed query and anchor during relative redirection
2017-01-20 12:59:13 +02:00
enthus1ast
9626919cd3
added isAbsolute to uri.nim
2017-01-20 00:45:44 +01:00
Yuriy Glukhov
b2237678fb
Redirects support in request proc
2017-01-19 17:44:53 +02:00
Yuriy Glukhov
fe0291f127
Import ospaths instead of include ( #5233 )
...
* Import ospaths instead of include
* searchExtPos made public
2017-01-18 20:17:53 +01:00
Loris Pederiva
9b0b079634
Fix nativesockets.select()
2017-01-18 09:42:56 +01:00
jlp765
704eae8495
re additions for buffer (cstring) RE matching ( #5117 )
...
* Replace expr with untyped
* Add buffer (cstring) related procs
Replace expr with untyped
Replace testing assert() procs with doAssert()
* make the string variants call the cstring variants in order to fight code size
* Remove redundant proc
* fix casting of cstring
add init of variables (identified by verbosity:3)
* Speed up - use pattern.e for exec()
inline some procs
2017-01-16 15:55:15 +01:00
Eugene Kabanov
108f5e688e
Fix #5128 , #5184 . ( #5214 )
...
* Fix #5128 , #5184 .
Removed flush() procedure from ioselectors.nim
Changed methods of work with application-driven data
* Make cache switch for kqueue, update test for it.
* Fix registerProcess bug returns wrong id.
Fix tupcoming_async test to compile with upcoming again.
Change socket() as unique identifier to dup(socket) as unique identifier.
2017-01-16 14:01:40 +01:00
MednauN
f8736dcfb7
Fixed Mersenne Twister ( #5227 )
2017-01-16 13:35:43 +01:00
Dmitriy Fomichev
d356c37185
Workaround for the high cpu usage issue in coroutines on linux ( #5186 )
...
Fixes high cpu usage when all coroutines are asleep
2017-01-11 10:01:03 +01:00
Parashurama
d04ca6ef23
Improve & optimize strutils 'find' procs ( #5196 )
...
* add 'last' argument to 'find' procs in strutils
* add 'rfind' proc for looking up set[char] in strutils
* use optimised C function 'memchr' when available
2017-01-11 09:48:31 +01:00