Commit Graph

3518 Commits

Author SHA1 Message Date
Jason Livesay
8d1c4a23de Allow multi/exec replies so transactions work. 2014-04-04 16:11:43 -07:00
Dominik Picheta
5a4afbef84 Proper handling of disconnections during reading in httpclient. 2014-04-03 20:06:59 +01:00
Dominik Picheta
4399895d2e Async httpclient should now work. Changed recv behaviour.
asyncdispatch.recv no longer guarantees that it will read ALL the data
requested. The underlying WinAPI function doesn't guarantee this and it
already wasn't guaranteed anyway since the socket could disconnect
mid-transmission.
2014-04-03 20:02:42 +01:00
Dominik Picheta
e4e87f1cb2 Refactored createCb in asyncdispatch. 2014-04-02 21:28:45 +01:00
Andreas Rumpf
843693d676 Merge pull request #1048 from gradha/pr_adds_convenience_uncompress_to_zlib
Adds convenience uncompress and inflate procs to zlib.
2014-04-02 19:57:05 +02:00
Andreas Rumpf
cc9230824a Merge pull request #1052 from rleisti/devel
Remove exception from TEventEmitter.emit
2014-04-02 19:55:31 +02:00
Simon Hafner
71b69a627f added $ for arrays 2014-03-31 15:58:52 -05:00
Simon Hafner
ffb36db5a6 Merge branch 'devel' of github.com:Araq/Nimrod into seq_toString 2014-03-31 15:49:04 -05:00
Ron Leisti
f3d7c452d2 events.TEventEmitter.emit no longer throws an exception if the named event does not exist 2014-03-29 19:51:56 -04:00
Dominik Picheta
aae774a279 Fix docgen. 2014-03-29 22:01:20 +00:00
Dominik Picheta
227c54c786 Replaced idents with genSym in asyncdispatch. 2014-03-29 21:28:01 +00:00
Araq
3afb42496b Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-29 14:47:43 +01:00
Araq
b6d5f18c93 iterators check seqs/strings are not resized during iteration 2014-03-29 13:50:07 +01:00
Grzegorz Adam Hankiewicz
20e55fc5d4 Uses finally as statement to release zlib memory. Refs #1048. 2014-03-29 12:29:17 +01:00
Grzegorz Adam Hankiewicz
a6f8bae69f Uses swap() to avoid variable copies. Refs #1048. 2014-03-29 12:27:18 +01:00
Grzegorz Adam Hankiewicz
d41988d8b2 Modifies inflate() to return a discardable bool. Refs #1048. 2014-03-29 12:24:54 +01:00
Grzegorz Adam Hankiewicz
cc718435b3 Adds convenience uncompress and inflate procs to zlib.
The new uncompress() version doesn't require you to know the size of the
inflated destination buffer. The inflate() proc wraps it for convenience
on a var string type.
2014-03-29 01:14:33 +01:00
Andreas Rumpf
05421cf84b Merge pull request #1045 from barcharcraz/lowerBound
fixed doc comment
2014-03-28 23:13:41 +01:00
Araq
5a51a25fd0 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-27 21:24:53 +01:00
Charlie Barto
76dfa611ed fixed doc comment 2014-03-27 15:13:10 -04:00
Varriount
f40625f5c4 Merge pull request #1032 from barcharcraz/lowerBound
Added lowerBound function to the stdlib
2014-03-27 15:08:19 -04:00
Araq
de5d18188f ENDB: got rid of deprecated 'nil' stmt 2014-03-27 19:59:31 +01:00
Charlie Barto
491291ae24 added usage example for lower bound 2014-03-27 00:21:19 -04:00
Jason Livesay
cabc5c80d3 Calling randomize() again within 1 second will now provide a different seed 2014-03-26 18:54:34 -07:00
Dominik Picheta
783087fd57 Implemented async for httpclient. 2014-03-26 16:43:32 +00:00
Dominik Picheta
4ed1ac0078 Move asyncdispatch tests to asyncnet. 2014-03-26 10:31:16 +00:00
Araq
8755792077 mongodb wrapper properly removed from core 2014-03-25 01:25:17 +01:00
Araq
bf2f6397c8 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-24 18:42:31 +01:00
Zahary Karadjov
e8c50640d7 failing test case preventing the use of --gc:v2: tsymchoicefield 2014-03-24 12:17:22 +02:00
Araq
ee1192679e VM: endless loop prevention 2014-03-24 08:43:57 +01:00
Charlie Barto
976fb18a8f made the default comparator for lowerBound unqualified, so the user can customize via two phase lookup 2014-03-23 18:30:54 -04:00
Charlie Barto
baa304f370 added lowerBound function to algorithm library 2014-03-23 18:28:05 -04:00
Dominik Picheta
d310b01db1 Moved the global dispatcher to asyncdispatch. 2014-03-23 18:24:11 +00:00
Dominik Picheta
10f205bb52 Fixes tasyncawait and the net module on Linux. 2014-03-23 11:39:24 +00:00
Dominik Picheta
192e11e7b7 Many renames. Created high level asyncnet module. 2014-03-22 22:33:53 +00:00
Dominik Picheta
2ce9f1c77f Copied most blocking socket operations to the net module. 2014-03-22 22:33:53 +00:00
Dominik Picheta
5bf45d9285 Clean up IP address code in net module. 2014-03-22 22:33:52 +00:00
Dominik Picheta
ca6b4bf0f9 Asyncio2 doc improvements. Changed recvLine's behaviour.
recvLine had an edge case where it would return a partial line if the
socket were to be disconnected in the middle of a line being read. The
behaviour now is that the data is simply lost as it likely will be
unparsable by the protocol anyway.
2014-03-22 22:33:51 +00:00
Araq
5aac789e0e Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-22 02:52:33 +01:00
Araq
fb5ece805f added mapMem/unmapMem to memfiles; untested 2014-03-22 02:51:03 +01:00
Araq
a431207e52 bugfix: reprEnum for enums with negative values 2014-03-22 02:49:51 +01:00
Andreas Rumpf
261a6ca017 Merge pull request #999 from zielmicha/zlib_abi_version
Provide zlib version explicitly on Linux.
2014-03-16 22:09:49 +01:00
Andreas Rumpf
c27fb4116e Merge pull request #1000 from gradha/pr_adds_likely_example_983
Adds example to likely/unlikely docstring. Refs #983.
2014-03-16 22:09:28 +01:00
Dominik Picheta
de64e8ec22 PFuture[void] now works.
Return types can also be completely ommitted. PFuture[void] will then be
implicitly deduced.
2014-03-15 00:11:01 +00:00
Dominik Picheta
0519afba1d Merge pull request #972 from Matthias247/ipaddress
Added a IpAddress structure to the net module
2014-03-14 21:27:00 +00:00
Matthias Einwag
95e4ab99e7 Make the IP address exceptions more detailed 2014-03-14 22:17:44 +01:00
Dominik Picheta
afb7dbf81a Fixes compilation of asyncio2 on Windows.
Added a close(PDispatcher, TSocketHandle) implementation which unregisters
the handle.
2014-03-14 20:18:51 +00:00
Dominik Picheta
1a75b17cd0 File descriptors are now removed from fds list explicitly in close().
Fixes tasyncawait on linux.
2014-03-14 18:46:08 +00:00
Araq
3e056afb1c fixes #993 2014-03-13 22:29:48 +01:00
Grzegorz Adam Hankiewicz
dd18c0ddd5 Adds example to likely/unlikely docstring. Refs #983. 2014-03-13 19:56:11 +01:00