Files
255018c000 Fix module blocking of RESP3 Pub/Sub clients (#4863)
moduleBlockClient() treated every subscribed client as unblockable because getClientType() returns CLIENT_TYPE_PUBSUB. A RESP3 client can still run commands while subscribed, so ValkeyModule_BlockClient and ValkeyModule_BlockClientOnAuth returned NULL with ENOTSUP and queued no reply. Allow blocking those clients again, matching the processCommand rule that only RESP2 Pub/Sub clients are restricted. Keyspace notifications still cannot block them.

Introduced by PR 1819 (8.1.1). Restores the pre-8.1.1 behavior for RESP3 subscribed clients; no change for RESP2 clients or keyspace-notification contexts.

Fixes #4862

---------

Signed-off-by: quanyeyang <quanyemostima@gmail.com>
Signed-off-by: Rain Valentine <rsg000@gmail.com>
Co-authored-by: Rain Valentine <rsg000@gmail.com>
Co-authored-by: Roshan Khatri <117414976+roshkhatri@users.noreply.github.com>
2026-10-27 12:26:02 -07:00
..
2026-10-21 13:06:44 -07:00
2026-08-11 17:01:48 -07:00
2026-10-21 13:06:44 -07:00
2026-10-21 07:51:37 -07:00