Mark Summerfield
3eff1b7765
Minor doc fix as per issue #5523 ( #5533 )
2017-03-14 15:06:06 +01:00
Andreas Rumpf
e32f08d05b
sequtils: removed outdated note
2017-03-14 08:40:02 +01:00
c-blake
d59441340d
Fixes incorrect fd==0 test on Unix; Conserves handles by default. ( #5512 )
...
* Fix 2 problems. First, 0 is a valid fd on Unix (easily gotten if user first
closes all fds and then starts using memfiles). Use -1 instead for an invalid
fd. Second, it is best practice to conserve open fds on Unix and file handles
on Windows. These handles are not needed unless the user wants to remap the
memory with ``mapMem`` (or a hypothetical future ``proc resize``). Adding a
new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly
in a "mostly" backward compatible way. This is only "mostly" because the
default ``false`` case does not keep unneeded resources allocated, but that
most sensible default means that any ``mapMem`` callers need to fix all their
open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim.
* Include backwards compatibility note.
2017-03-12 20:45:10 +01:00
Anatoly Galiulin
cb9d554ac9
Fix typo ( #5501 )
2017-03-10 16:18:56 +01:00
Emery Hemingway
fecad72e02
SMTP sync/async deduplication
...
Deduplicate synchronous and asynchronous code with the multisync pragma.
Pass address and port at connect rather than ``new(Async)Smtp``.
2017-03-07 12:10:18 -06:00
David Krause
7dc8dcb581
fixes #5487 ( #5494 )
2017-03-07 16:58:38 +01:00
Anatoly Galiulin
24ec36f097
Fix iconv import on freebsd and netbsd ( #5490 )
2017-03-07 09:56:16 +01:00
David Krause
643b7f8650
Fix for #5482 , let OrderedTable accept multiple keys ( #5485 )
2017-03-05 20:17:43 +01:00
Fabian Keller
d1d32f657a
tiny docstring fix; fixes #5483 ( #5484 )
2017-03-05 10:44:25 +01:00
Rayner De Los Santos F
d5d975ceef
Only remove scheme when there's a TLS request ("https")
...
If condition, for not removing the scheme when proxied connection isn't a TLS request ("http://...").
2017-03-03 08:47:13 -04:00
Andreas Rumpf
5d125ca716
Merge branch 'devel' into faster-nimsuggest
2017-03-03 13:00:09 +01:00
Simon Krauter
a42801d100
Make countLines() the same as len(splitLines(s)) ( #5470 )
...
The result of countLines() is now increased by 1 compared to the old
version.
Fixes #5460 .
2017-03-03 01:31:17 +01:00
Ruslan Mustakov
a81247dcbe
Add compute proc for SharedTable ( #5385 )
2017-03-02 15:31:30 +01:00
Rokas Kupstys
cd2721242a
Fix waiting on coroutines ( #5463 )
...
Public coroutine API returns a safe reference to specific running coroutine. Fixes bug where multiple coroutines executing same procedure would identify as same coroutine.
Greatly optimizes `alive()` (and as a result of that `wait()`) calls.
Coroutine struct is allocated together with stack as memory unmanaged by GC.
2017-03-02 14:53:50 +01:00
Florent
9965123098
Fixes #5457 - StdLib base64 encodeInternal crashes with out of bound exception ( #5464 )
2017-03-02 08:54:45 +01:00
Dominik Picheta
37abcf18f8
Merge pull request #5466 from yglukhov/asynchttpserver-bad-content-length
...
Dont assert on malformed requests
2017-03-01 19:14:02 +00:00
Yuriy Glukhov
f842f9d6aa
Dont assert on malformed requests
2017-03-01 17:11:39 +02:00
Yuriy Glukhov
28a7c874b7
Revert "Listen on ipv6" ( #5461 )
2017-03-01 15:03:10 +01:00
Federico Ceratto
dd4d47c671
Add gethostname to nativesockets ( #5443 )
2017-03-01 09:44:24 +01:00
Andrey Sobolev
78de355ec6
Fix async timers execution. ( #5448 )
2017-03-01 09:43:24 +01:00
Araq
3d46600a90
nimsuggest supports prefix matching (first version)
2017-02-28 09:03:40 +01:00
Andreas Rumpf
2b0ad99af0
Merge pull request #5442 from FedericoCeratto/patch-24
...
Add comment on return value
2017-02-27 16:37:35 +01:00
Andreas Rumpf
c3d6819bad
Merge pull request #5446 from endragor/mt-defaultsslcontext
...
Ensure default SSL context is always initialized
2017-02-27 16:29:46 +01:00
Ruslan Mustakov
ef508047bf
Ensure default SSL context is always initialized
2017-02-27 16:42:51 +07:00
Ruslan Mustakov
2096d399b1
Explicitly mark log() method as gcsafe
2017-02-27 16:40:43 +07:00
Araq
b724f46f6f
make tests green again
2017-02-26 23:25:50 +01:00
Araq
51ece61f03
documentation for strscans.scanp; fixes #5154
2017-02-26 23:25:50 +01:00
Andreas Rumpf
895e2aea15
Merge pull request #5317 from rokups/feature/coroutines
...
Coroutine improvements
2017-02-26 23:24:29 +01:00
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
Federico Ceratto
a49d88f18a
Add comment on return value
2017-02-26 14:34:08 +00: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
Rokas Kupstys
5aef77a3d3
Removed test code from coro.nim and created three real tests for coroutines
2017-02-20 17:54:15 +02:00
Rokas Kupstys
f80ddbbcc6
Use constant nimCoroutines instead of defined(nimCoroutines)
...
Variable
2017-02-20 17:24:19 +02:00
Rokas Kupstys
c3d1b732d6
Reworked gc support for coroutines. Nim now bootstraps with -d:nimCoroutines
...
Added gc test to coro.nim
Lots of misc improvements and comments in coro.nim
2017-02-20 17:24:19 +02:00
Rokas Kupstys
ce4e9846f0
Iterators test in coroutines
2017-02-20 17:24:19 +02:00