Flowise
Flowise copied to clipboard
Fix: Patching redis socket crash fix
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.