• Oran Agra's avatar
    Trim trailing spaces in error replies coming from rejectCommand (#7668) · 6dcd6416
    Oran Agra authored
    65a3307b added rejectCommand which takes an robj reply and passes it
    through addReplyErrorSafe to addReplyErrorLength.
    The robj contains newline at it's end, but addReplyErrorSafe converts it
    to spaces, and passes it to addReplyErrorLength which adds the protocol
    newlines.
    
    The result was that most error replies (like OOM) had extra two trailing
    spaces in them.
    
    (cherry picked from commit cdd925b2)
    6dcd6416
networking.c 122 KB