Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

Fix: Patching redis socket crash fix

Open Nek-11 opened this issue 8 months ago • 0 comments

Patch for #4377

This PR addresses an issue where Redis connections would unexpectedly close after periods of inactivity, particularly with @redis/client instances.

The key changes:

  • Added both TCP-level keepAlive AND Redis protocol-level pingInterval for @redis/client instances
  • Both settings use the same REDIS_KEEP_ALIVE environment variable for simplicity
  • The fix maintains backward compatibility with previous configurations

The error occurred because the newer @redis/client library requires both socket.keepAlive and pingInterval to maintain connections during idle periods, while the ioredis library manages protocol pings internally.

Nek-11 avatar May 15 '25 16:05 Nek-11