You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
use the max port # in newer versions of node
This commit is contained in:
@@ -159,11 +159,11 @@ module.exports = {
|
|||||||
killConnection: function (client) {
|
killConnection: function (client) {
|
||||||
// Change the connection option to a non existing one and destroy the stream
|
// Change the connection option to a non existing one and destroy the stream
|
||||||
client.connectionOption = {
|
client.connectionOption = {
|
||||||
port: 999999,
|
port: 65535,
|
||||||
host: '127.0.0.1',
|
host: '127.0.0.1',
|
||||||
family: 4
|
family: 4
|
||||||
};
|
};
|
||||||
client.address = '127.0.0.1:999999';
|
client.address = '127.0.0.1:65535';
|
||||||
client.stream.destroy();
|
client.stream.destroy();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user