Ray Imber
bef1c4437d
fixes based on code review by @dom96
...
- For clarity: Changed the unregister if statement to use the in operator instead of
the set intersection operator in ioselectors_epoll.nim and
ioselectors_select.nim.
- Fixed unregister of Event.User case on the Android branch.
2019-10-16 14:13:09 -07:00
Ray Imber
233455a685
Remove unnecessary change to ioselectors_kqueue.nim found by @cheatfate.
2019-10-11 12:24:29 -07:00
Ray Imber
4e6f2b5313
Fix drain to correctly take into account hasPendingOperations and the timeout value
2019-10-10 17:53:44 -07:00
Ray Imber
aa84d35d86
Fix io slector unregister for windows as well.
2019-10-10 16:50:36 -07:00
Ray Imber
0338516e70
Additional fix for User key unregister in the KQueue backend
2019-10-06 17:33:58 -07:00
Ray Imber
adc1419499
Test + fix for epoll and kqueue selector modules to properly unregister
...
event handles that have the key type "User"
2019-10-06 16:02:12 -07:00
Andreas Rumpf
60d64d1aef
use system.move instead of system.shallowCopy if the GC mode requires it
2019-10-04 09:48:45 +02:00
Andreas Rumpf
68ce808db1
minor optimization for asynchttpserver.nim
2019-10-04 09:48:45 +02:00
Ridho Pratama
678775601a
Fixed sizeOf to sizeof ( #12347 )
2019-10-03 19:38:37 +02:00
Andrew Smith
0d94ee15c0
Updated the code example in the os module to use better grammar. ( #12328 )
2019-10-02 00:43:38 -04:00
Tomohiro
64d5e25821
Fix how relativePath handle case sensitiviy ( #12312 ) [backport]
2019-10-01 09:09:59 +02:00
narimiran
5732bb41ef
[backport] run nimpretty on the remaining files
2019-09-30 13:58:17 +02:00
narimiran
34d0be2ec1
[backport] run nimpretty on os-related stuff
2019-09-30 13:58:15 +02:00
narimiran
dcf3181bd1
[backport] run nimpretty on string stuff
2019-09-30 13:58:13 +02:00
narimiran
0ca9cc7419
[backport] run nimpretty on web stuff
2019-09-30 13:58:11 +02:00
narimiran
15895ebc3f
[backport] run nimpretty on hashes
2019-09-30 13:58:10 +02:00
narimiran
b17ed2ca9c
[backport] run nimpretty on parsers
2019-09-30 13:58:08 +02:00
narimiran
6c994b2498
[backport] run nimpretty on numbers stuff
2019-09-30 13:58:05 +02:00
narimiran
aa513d78e7
[backport] run nimpretty on async
2019-09-30 13:57:58 +02:00
Clyybber
16c39f9b2e
More of StringStream now works at compile time ( #12284 )
...
* readLine of StringStream now works at compile time
* Work for js backend only at compile time
* readAll now works at CT
* readAll works in js ct now
* Add test
2019-09-29 22:20:00 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Jjp137
e065e51245
threadpool: fix link in docs [ci skip] ( #12258 ) [backport]
...
[backport]
2019-09-25 07:12:08 +02:00
narimiran
f7a8fc46c0
Revert "improvements for httpcore ( #12228 )"
...
This reverts commit b865c2a54b .
2019-09-23 19:06:55 +02:00
Andreas Rumpf
b865c2a54b
improvements for httpcore ( #12228 )
...
* improvements for httpcore
* further improvements, now stable API but needs extensions later on
2019-09-23 12:38:35 +02:00
Ray Imber
6e681b546f
fixes #9026 adds a readLineImpl to streams so that FileStreams can be fast ( #12234 )
2019-09-23 08:25:26 +02:00
PMunch
2565d3d102
Fix issue with long wait for passed timer [bugfix] ( #12221 )
...
* Fix issue with long wait for passed timer [bugfix]
This fixes a small issue where a timer that had been completed while
code executed would still wait for more events before being considered
completed. This would in some scenarios incur a 500ms delay to the
completion of a timer.
* Refactor logic into
* Add test case based on original issue
* Use longer timeouts to be more lenient in checking
* Revert to short timeouts, but widen the accepted range
* Widen accepted range further, it is meant to check for a 500ms delay after all
* Increase poll timeout to make it easier to detect mistakes
2019-09-22 07:24:14 +02:00
Andreas Rumpf
c2fced129f
makes tests green again
2019-09-21 06:43:37 +02:00
Araq
5abe880469
last stdlib cleanups
2019-09-21 06:43:37 +02:00
Araq
9776f926a2
htmlgen update; don't use deprecated callsite feature
2019-09-21 06:43:37 +02:00
Araq
908b553215
asyndispatch: removed deprecated setEvent proc
2019-09-21 06:43:37 +02:00
Araq
96b3bae99b
json: removed deprecatedGet pragma
2019-09-21 06:43:37 +02:00
Araq
dea9e38d26
removed the deprecatedGet pragma
2019-09-21 06:43:37 +02:00
Araq
f576df2bcc
smtp: renamed starttls to startTls
2019-09-21 06:43:37 +02:00
Araq
05e80e1cda
lib\pure\htmlgen.nim
...
avoid callsite for htmlgen
2019-09-21 06:43:37 +02:00
Araq
7839658323
mark events.nim as unstable
2019-09-21 06:43:37 +02:00
Araq
f8000d4ba1
fixes #12186
2019-09-18 12:16:52 +02:00
Araq
48537fec81
fixes #12209
2019-09-18 12:16:52 +02:00
Miran
618316beb9
fix #12200 , cannot 'inc' CountTable by a negative value ( #12208 )
...
* fix #12200 , cannot 'inc' CountTable by a negative value
* use Positive
2019-09-17 21:29:25 +02:00
Andreas Rumpf
e134a722de
fixes #12152 ( #12165 )
...
* fixes #12152
* makes test green
2019-09-11 20:28:24 +02:00
Andreas Rumpf
1fa1024ddf
typo
2019-09-10 08:36:24 +02:00
Andreas Rumpf
58077450cc
parsejson: typo
2019-09-10 08:36:24 +02:00
Araq
4bbafb47dc
streams.nim: indentation change
2019-09-08 13:08:41 +02:00
pgkos
5a8fddf29b
Fix mode_t posix definitions ( fixes #12119 ) ( #12132 )
...
* fixes #12119
2019-09-06 20:15:07 +02:00
Araq
0882a09986
fixes a subtle tables.nim regression
2019-09-05 16:45:07 +02:00
Andreas Rumpf
58bcf6cd46
fixes #12121 ( #12126 )
2019-09-05 08:21:01 +02:00
Araq
fa5707e7e2
fixes #11713 , fixes #1034
2019-09-04 11:20:30 +02:00
Chris Heller
35f1519ad6
Add delOutputFormatter proc to unittest.nim ( #12032 )
2019-09-03 08:14:19 +01:00
narimiran
545ddf4a4f
mark nimprof as used when profiling
2019-09-02 16:00:26 +02:00
Miran
ab48d7901e
hashes: implement murmur3 ( #12022 )
...
* hashes: implement murmur3
* refactoring; there is only one murmurHash and it works at compile-time via VM hooks
* fixes JS tests
* makes toOpenArrayByte work with C++
* make it bootstrap in C++ mode for 0.20
2019-09-01 00:04:10 +02:00
Andreas Rumpf
d4af0554c4
remove unicode.Rune16 without deprecation period; fixes https://github.com/nim-lang/RFCs/issues/151 ( #12072 )
2019-08-28 10:25:13 +02:00