Commit f768a54
Fix Redis 8.x timeout in Channels
redis-py 8.0.0 changed default `socket_timeout` from None to 5 seconds.
This causes a race condition with Django Channels' blocking Redis commands
(BZPOPMIN/BRPOP with 5s server-side timeout), resulting in:
`redis.exceptions.TimeoutError: Timeout reading from localhost:6379`
Fix: Set `socket_timeout: None` in CHANNEL_LAYERS config to disable
client-side timeout, allowing server-side blocking commands to complete.
Source: redis/redis-py#40911 parent c49845c commit f768a54
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
| |||
0 commit comments