Commit cf4d08d
authored
server: Exit consume-redis-stream loop on error (#5948)
* server: Exit consume-redis-stream loop on error
Recently a yield was added to the consume-redis-stream loop. It is
possible that when the fiber is scheduled again, things have changed
(likely because the redis acks fiber caused a shutdown of the socket).
If so we will exit from the loop instead of trying to read from a
possibly closed socket.
Signed-off-by: Abhijat Malviya <[email protected]>1 parent 85f21b6 commit cf4d08d
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
707 | 718 | | |
708 | 719 | | |
709 | 720 | | |
| |||
0 commit comments