• Binbin's avatar
    Fix timeout not being set in module blockClient case (#13011) · 45a35a79
    Binbin authored
    This was introduced in #13004, missing this assignment.
    It causes timeout to be a random value (may be less than now),
    and then in `Unblock by timer` test, the client is unblocked
    and then it call timeout_callback, since the callback is NULL,
    the server will crash.
    
    The crash stack is:
    ```
    beforesleep
    handleBlockedClientsTimeout
    checkBlockedClientTimeout
    unblockClientOnTimeout
    replyToBlockedClientTimedOut
    moduleBlockedClientTimedOut
    -- the timeout_callback is NULL, invalidFunctionWasCalled
    bc->timeout_callback(&ctx,(void**)c->argv,c->argc);
    ```
    45a35a79
module.c 564 KB