Bryce Baril
92ed0befc1
In nested MULTIBULK buffers, correctly recurse on an incomplete read buffer.
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-03-09 19:27:33 -05:00
Bryce Baril
9127f34393
Parser should only catch parser errors and bubble the rest to the caller.
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-03-09 19:27:33 -05:00
Bryce Baril
0c172f425c
Fix parser incorrect buffer skip for MULTI/EXEC transaction errors with WATCH.
...
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com >
2013-03-09 19:27:33 -05:00
Matt Ranney
f367b8a03c
Another version bump because 0.8.1 didn't get applied properly for some mysterious reason.
...
Sorry about that.
Changed name of "faster" parser to "javascript".
2012-11-02 14:17:53 -07:00
Michael Jackson
7f3f11f9b1
Make return_buffers work with ints
2012-10-26 20:35:19 -07:00
Luigi Pinca
f03e673338
Fix cases where the offset is out of range (javascript parser)
...
The exception for the "too far" error was not thrown if the offset was bigger
than the buffer length, screwing up the parser. Fix #277
Signed-off-by: DTrejo <david.trejo@voxer.com >
2012-09-21 20:52:58 -04:00
Jerry Sievert
1dbe587fca
remove null for rewind and use throw mechanism, should help with #273
...
Fix #275
Signed-off-by: DTrejo <david.trejo@voxer.com >
2012-09-21 20:48:31 -04:00
Jerry Sievert
668dfdead6
fix null key response: issue #267
2012-09-11 11:43:18 -07:00
Matt Ranney
670c256e35
Whitespace and other JSHint changes.
2012-09-10 22:50:54 -07:00
Jerry Sievert
3d27cb23ee
update for style changes
2012-08-23 13:09:05 -07:00
Jerry Sievert
8be55fb304
fix all but lrange 20k
2012-08-22 21:53:18 -07:00
Jerry Sievert
34568a4bb3
added fallback if missing Buffer.concat()
2012-07-08 14:54:48 -07:00
Jerry Sievert
8d0f2e7239
some microbenchmark updates, slight speed improvement
2012-07-08 08:32:33 -07:00
Jerry Sievert
4048349115
some cleanup and comments
2012-07-08 05:16:36 -07:00
Jerry Sievert
7ec1815188
generally faster javascript parser
2012-07-07 02:44:51 -07:00
Zachary Scott
c83c285213
remove double 'util' and 'Queue' from requires
...
ex: require('./lib/util').util;
2011-11-16 10:37:38 -10:00
Matt Ranney
0c8646bc61
Use number literals for case labels to help V8 go faster.
2011-11-13 18:12:28 -10:00
Matt Ranney
f9e17556d2
Performance improvements and backpressure controls.
...
Simply and speed up command argument processing logic.
Commands now return the true/false value from the underlying socket write(s).
Implement command_queue high water and low water for more better control of queueing.
2011-06-30 14:12:35 -06:00
Matt Ranney
aa3cefe506
Allocate new Arrays with known size instead of dynamically growing them.
2010-12-13 15:55:30 -08:00
Matt Ranney
202df58b93
Re-throw callback errors on nextTick
...
Otherwise an error thrown in a callback would be throw on the parser's stack.
2010-12-13 12:46:54 -08:00
Matt Ranney
36c40ee03d
JavaScript parser passes all tests when returning strings.
...
JS is still way too slow for large mb replies. Hiredis is fast for strings of large replies,
but slow for buffers.
2010-12-07 00:23:31 -08:00
Matt Ranney
b907364573
Support for multiple reply parsers including hiredis.
...
Several parsing bugs fixed in JavaScript.
Some new config options that need to be better documented.
2010-12-06 09:11:16 -08:00
Pieter Noordhuis
a5381964d9
Add option to specify whether to return strings or buffers for bulk data
2010-11-30 23:10:02 +01:00
Pieter Noordhuis
1e698e3fce
Move the reply parser to its own file
2010-11-30 22:29:16 +01:00