guybe7 e58118cda6
Fix edge-case when a module client is unblocked (#8618)
Scenario:
1. A module client is blocked on keys with a timeout
2. Shortly before the timeout expires, the key is being populated and signaled
   as ready
3. Redis calls moduleTryServeClientBlockedOnKey (which replies to client) and
   then moduleUnblockClient
4. moduleUnblockClient doesn't really unblock the client, it writes to
   server.module_blocked_pipe and only marks the BC as unblocked.
5. beforeSleep kics in, by this time the client still exists and techincally
   timed-out. beforeSleep replies to the timeout client (double reply) and
   only then moduleHandleBlockedClients is called, reading from module_blocked_pipe
   and calling unblockClient

The solution is similar to what was done in moduleTryServeClientBlockedOnKey: we
should avoid re-processing an already-unblocked client
2021-03-08 19:00:19 +02:00
..
2012-04-13 17:52:33 -07:00
2020-11-09 21:48:56 -08:00
2016-06-07 16:46:00 -04:00
2021-03-05 09:54:34 -08:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2018-07-03 18:19:46 +02:00
2019-02-24 21:38:15 +01:00
2021-01-04 17:02:57 +02:00
2020-10-27 15:04:18 +02:00
2021-02-24 10:10:02 +02:00
2020-05-05 23:35:08 -04:00
2021-02-24 10:10:02 +02:00
2020-09-29 15:52:13 +03:00
2019-11-19 17:23:47 +08:00
2014-08-08 10:05:32 +02:00
2019-10-02 11:30:20 +02:00
2020-07-24 14:40:19 +08:00
2021-01-28 18:17:39 +02:00
2021-03-05 09:32:11 -08:00
2021-03-05 09:54:34 -08:00
2015-04-27 12:07:49 +02:00
2015-04-27 12:07:49 +02:00
2021-01-04 17:02:57 +02:00
2014-07-02 16:31:22 +02:00
2021-01-28 16:19:43 +02:00
2020-07-21 08:13:05 +03:00
2021-03-03 10:08:06 +02:00
2021-03-07 14:14:23 +02:00