• Binbin's avatar
    Fix module unblock crash due to no timeout_callback (#13017) · 74a6e48a
    Binbin authored
    The block timeout is passed in the test case, but we do not pass
    in the timeout_callback, and it will crash when unlocking. In this
    case, in moduleBlockedClientTimedOut we will check timeout_callback.
    There is the stack:
    ```
    beforeSleep
    blockedBeforeSleep
    handleBlockedClientsTimeout
    checkBlockedClientTimeout
    unblockClientOnTimeout
    replyToBlockedClientTimedOut
    moduleBlockedClientTimedOut
    -- timeout_callback is NULL, invalidFunctionWasCalled
    bc->timeout_callback(&ctx,(void**)c->argv,c->argc);
    ```
    74a6e48a
module.c 564 KB