Avoid responding to the wrong fd after client disconnection
Slightly adapted from a proposed change by @majklik on GitHub in issue #212 (one invalid read fixed and a memory leak avoided). This marks an inflight cmd's fd as -1 when the HTTP client disconnects, which prevents the later response from Redis from being sent to a new client which has connected in the meantime and been assigned the same client fd.master
parent
545c56c4cb
commit
d28dd3ec80
Loading…
Reference in New Issue