…n of how the client is used and can be used int a given application.
…ss (null) or error state (non-null)
All callback operations now have three parameters: event, code and results. The event describes the actual event, code is how successful (or not) the operation executed and results is the VoltTable or other result. This allows you to have one common handler for all events and operations or as finely grained as a handler for each query execution. Fixed several errors in coding conventions. Removed all logging statements from the driver. Added session event types. All callbacks are invoked through Event.emit Cleaned up the constructors to make unit tests easier to write. Moved all constants from message.js to voltconstants.js
…will hopefully never do that again.
Changed the contractor of voltmessagemanager and cleaned out an associative array removing the volt query from exports.
This patch improves the throughput of the voter app from 7-8k TPS on a single core to 11-12 TPS on my machine. It does it by combining multiple outgoing messages into a single buffer. Previously each message (~50 bytes) was sent individually, so a lot of time was wasted in libuv and kernel space to deal with the overhead of sending many messages this small. NOTE: This patch needs more work. You probably want to add a timer that flushes pending messages after a while if the configured threshold is not reached. The patch also error handling in case socket.write() fails (there needs to be a try..catch block in the _flush method).
-Changed all derivation to use until.inherits. --Changed the query timeout loop to execute once per minute and age out 10 minute old queries. This removed all the setTimeout calls. -Removed all the retry operations because they were duplicating queries.
Fixed several memory leaks suggested by various issues Removed unnecessary retry that was leading to duplicate queries suggested from issues Updated the package.json to include the github repository Fixed a bug that login messages were being added to the timeout handler Unit test for positive/negative testing of connections and data types.