Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The feature socketTimeout works abnormally with duplicated Redis instance #1904

Open
zyf0330 opened this issue Aug 5, 2024 · 0 comments
Open

Comments

@zyf0330
Copy link

zyf0330 commented Aug 5, 2024

const options: Redis.ClusterOptions['redisOptions'] | Redis.RedisOptions = { socketTimeout: 3000,};
  
const redis = new Redis.Redis(REDIS_NODES[0], options);
const redisPublisher =  redis.duplicate();
const redisSubscriber = redis.duplicate();

The second instance keeps giving error {"error":{"stack":"Error: Socket timeout. Expecting data, but didn't receive any in 3000ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant