Andreas Rumpf
e5341a391d
Merge pull request #5373 from nim-lang/feature/async-streams
...
Async streams and HTTP client streaming downloads support
2017-02-26 17:35:08 +01:00
Araq
48c50f6b41
make the logic right
2017-02-26 13:28:46 +01:00
Dominik Picheta
b5de988eda
Fix the other withNewLine template.
2017-02-26 12:54:03 +01:00
Dominik Picheta
f9cce32097
Various fixes to FutureStreams based on PR feedback.
2017-02-26 12:52:19 +01:00
Dominik Picheta
912d95a6ea
Add small warning in httpclient's onProgressChanged docs.
2017-02-26 11:36:16 +01:00
Araq
5ce8e0b5cd
better docs for strutils.escape
2017-02-26 01:02:50 +01:00
Araq
2589d69ed2
fixes #5430
2017-02-26 00:32:07 +01:00
Fabian Keller
5774145f5d
added hash for uints ( #5435 )
2017-02-26 00:17:21 +01:00
Fabian Keller
f250c30b9d
Make use of used in unittest ( #5410 )
2017-02-25 21:18:16 +01:00
Araq
45765601e0
fixed premature finishing of httpclient.downloadFile
2017-02-25 17:26:03 +01:00
Araq
1961e444c3
Merge branch 'devel' into feature/async-streams
2017-02-25 11:18:48 +01:00
Yuriy Glukhov
d878c4c1b4
Listen on ipv6
2017-02-25 02:20:16 +02:00
Dominik Picheta
7579171ee7
Merge pull request #5427 from ivankoster/patch-1
...
Remove unnecessary colon in unittest.nim code example
2017-02-24 18:13:27 +01:00
Dennis Felsing
4af2c26c91
Make toHex work for uints ( #5423 )
2017-02-24 16:48:22 +01:00
Federico Ceratto
469a7d258c
Add warning about log flushing. Related to #3269 ( #5424 )
2017-02-24 15:58:02 +01:00
Ivan Koster
8ebc869773
Remove unnecessary colon in unittest.nim code example
2017-02-24 15:43:31 +01:00
Emery Hemingway
2ba374f9ab
match json.toPretty style with NodeJS's stringify ( #5406 )
2017-02-21 20:24:55 +01:00
Araq
9303a02d6b
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-02-17 18:04:09 +01:00
fenekku
e9767d8809
Fix reverse on empty openArray ( #5407 )
...
Reversing an empty `openArray` would raise a RangeError. For instance for `a: seq[int] = @[]`, we have `a.high` return `-1` but `-1` is not a `Natural`. Leaving the array as-is is the expected behaviour.
2017-02-17 08:26:49 +01:00
Araq
5620e08563
minor documentation improvements
2017-02-17 00:00:39 +01:00
Araq
5d4ed1117d
distros.nim: brew usually doesn't require 'sudo'
2017-02-16 22:53:32 +01:00
Dominik Picheta
a336bf2395
Fixes parseHeader("foo:") != ("foo", @[""]). Refs #5344 .
2017-02-13 21:14:29 +01:00
Ruslan Mustakov
92665e6e9a
Add hash proc for cstrings ( #5386 )
2017-02-13 13:38:30 +01:00
flyx
ac9c2126e6
Added BiggestUInt ( #5378 )
2017-02-13 11:20:07 +01:00
Federico Ceratto
0d1aa9225a
Make walkDirRec docstring more clear ( #5377 )
2017-02-12 16:02:50 +01:00
Dominik Picheta
f9f86899b5
Implement streamed async/sync downloadFile and deprecate old one.
2017-02-11 14:00:53 +01:00
Dominik Picheta
1b4067a81b
Implement streamed body reading in httpclient.
2017-02-11 12:43:16 +01:00
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
Yuriy Glukhov
69fb2c6152
Fixed heapqueue.del for last elem ( #5363 )
2017-02-10 10:15:43 +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