Ruben Bridgewater
a2255d7fe2
Fix error messages not being visible in the stack trace of AbortErrors
8 years ago
Ruben Bridgewater
c4b9b4ea26
Fix test on windows
8 years ago
Ruben Bridgewater
8688986051
Add issue to corresponding spec
8 years ago
Ruben Bridgewater
db0e8c53cc
Fixed parser not being reset in case the redis connection
closed ASAP for overcoming of output buffer limits.
Fixes #1190
8 years ago
Ruben Bridgewater
dffa8a6aee
Fix parser being reset in case (p)message_buffer is attached
without the parser set to return buffers.
This might result in corrupt data if the listener is attached
while the parser holds partial data.
8 years ago
Ruben Bridgewater
b9540d4965
Fix monitor mode not working with IPv6, sockets or lua scripts
Fixes #1189
Fixes #1037
8 years ago
Ruben Bridgewater
4e98cb9442
Improve error message
8 years ago
Ruben Bridgewater
41d26dc0c8
Fix domain handling and tls camelCase settings
Fixes #1106
Fixes #1103
Closes #1104
8 years ago
Ruben Bridgewater
0c6edbd8a6
Make test idempotent
8 years ago
Ruben Bridgewater
de0a9628aa
Fire the individual original callbacks when using transactions
Fixes #1089
8 years ago
Ruben Bridgewater
7eaba8c10d
Add tests to make sure no invalid function names get exported
9 years ago
Ruben Bridgewater
a41cfa9aae
Add good stack traces tests and fix stack traces in debug mode
9 years ago
Ruben Bridgewater
a0c7431787
Inherit the name property in the error classes
9 years ago
Ruben Bridgewater
25aa8f6710
Fix monitoring mode not always activating soon enough
9 years ago
Ruben Bridgewater
8b6f2dd35e
Refactor command parsing
9 years ago
Ruben Bridgewater
899f9b7fe4
Fix hungry developer typo
9 years ago
Ruben Bridgewater
a90b791295
Only run detect_buffers tests once
9 years ago
Ruben Bridgewater
55528d8b1b
Revert 228573b8d7
Not inheriting from the prototype is a BC
9 years ago
Ruben Bridgewater
fe00bf271d
Update redis-parser to v.2.0.0
Update all code accordingly
9 years ago
Ruben Bridgewater
27eac2f594
Prevent a race condition by just forcefully ending the connection in the test
9 years ago
Ruben Bridgewater
03f1a606f7
Improve error handling
Added individual error classes
Don't silently fail for commands without callback from now on
General polishing (e.g. better error messages)
Fix typos
9 years ago
Ruben Bridgewater
ce1678c778
Improve coverage; make tests ready for Redis 3.2
Add command sanity check
9 years ago
Ruben Bridgewater
eae16938cd
Add monitor transaction warning / error
9 years ago
Ruben Bridgewater
625f14e6ba
Fix address always set to 127.0.0.1:6379 in case the host/port is set in the tls options
9 years ago
Ruben Bridgewater
f500398cab
Run tests only with the js parser instead of hiredis and js parser from now on
This removes the optional-dev-dependency as this is not needed from now on anymore
9 years ago
Ruben Bridgewater
0dc45bd0a3
Improve pub sub mode further
9 years ago
Ruben Bridgewater
5fac5958c3
Fix async test executed sync
9 years ago
Ruben Bridgewater
a857829a36
Improve error handling
Arguments are now passed to an command error in case they exist
An error is only emitted if that very same error is not already handled in a callback
9 years ago
Ruben Bridgewater
97ae78877b
Implement CLIENT REPLY ON|OFF|SKIP
9 years ago
Ruben Bridgewater
3038c9043d
Make sure all individual handled command work in multi context the same
Fix quit possibly resulting in reconnections
9 years ago
Ruben Bridgewater
0424cb0bf3
Move pub sub command into individual commands and use call_on_write
9 years ago
Ruben Bridgewater
683815de9d
Refactor pipelining
9 years ago
Ruben Bridgewater
5d12659583
Fix typos / comments
9 years ago
Ruben Bridgewater
cd58e1fd89
Implement message_buffer and pmessage_buffer events
9 years ago
Ruben Bridgewater
a9d565b8f4
Fix auth regression
Fixes #1028
9 years ago
Ruben Bridgewater
aff765adf0
Fix execution order
If the command_queue and the offline_queue holds commands,
the offline_queue should be choosen instead of the command_queue.
9 years ago
Ruben Bridgewater
8e24380d53
Add optional callback option to duplicate function
9 years ago
Ruben Bridgewater
d2b8f2f391
Add support for camelCase
Fixes missing `EXEC_BATCH` on multi
9 years ago
Ruben Bridgewater
228573b8d7
Support __proto__ and similar as object attribute in hgetall
9 years ago
Ruben Bridgewater
14170f9d02
Improve tests a bit
Reduce timeouts if possible
Extend timeouts if needed (windows tests need their time)
Don't expose the redis socket to others than the owner
Don't create the stunnel log
9 years ago
Ruben Bridgewater
79c1767f86
Fix pubsub further
Unsubscribing from all channels did not work properly with reconnect
Pub sub did not work properly with the new `string_numbers` option
9 years ago
Ruben Bridgewater
3fd865bbb3
Move the exposed and documented api into a separate file
9 years ago
Ruben Bridgewater
861749f4d6
Fix send_command working with hooked internal functions
9 years ago
Ruben Bridgewater
48481552c9
Calling quit should always close the connection
9 years ago
Ruben Bridgewater
0c5947be51
Add string_numbers option to handle very big numbers
9 years ago
Ruben Bridgewater
2e68a7a270
Make test more robust by waiting till redis answered
The former fix was actually not working as expected
9 years ago
Ruben Bridgewater
68f2a8894e
Make test more robust
The redis server ends the connection and the stream end might be triggered
before the quit command returned and is therefor racy.
9 years ago
Ruben Bridgewater
94e9f1fcfc
Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
9 years ago
Ruben Bridgewater
12579e5e8e
Test pubsub numsub
Closes #740
9 years ago
Ruben Bridgewater
7a5a4aa535
Fix pub sub mode
There is likely a better and more performant way to fix this but this works so far
and should be good enough to release and improve later.
Make test more robust
Add another test
9 years ago