-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi,
I am trying to create a redis implementation for the cache storage and I face a problem.
Since the redis client use async callback to work, then I got some problem when woden try to proxy.web the request. I get a socket hanging problem after a timeout...
Code of the redis storage for woden:
module.exports = {
get: function (key, callback) {
console.log("get key", key);
client.get(key, function (err, reply) {
console.log("get err", err);
console.log("get reply", reply);
callback(err, reply);
});
},
set: function (options, callback) {
console.log("set key", options.key);
console.log("set value", options.value);
client.set(options.key, options.value, redis.print);
callback();
}
};
error just in the self.proxy.web( req, res,...) code in woden:
error { [Error: socket hang up] code: 'ECONNRESET' }
events.js:72
throw er; // Unhandled 'error' event
^
Error: socket hang up
at createHangUpError (http.js:1477:15)
at Socket.socketCloseListener (http.js:1527:23)
at Socket.emit (events.js:95:17)
at TCP.close (net.js:466:12)
any idea ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels