]> git.saurik.com Git - redis.git/commit - src/networking.c
Fix bug where the client is not present in server.clients when free'ing it
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Mon, 6 Sep 2010 09:27:22 +0000 (11:27 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Tue, 7 Sep 2010 08:25:34 +0000 (10:25 +0200)
commit106bd87a3ca7b90e1e6fb764398bbefccee3e4fa
tree704b651426ce353594b8511a7c49dc91d0c0d258
parentabe18d0e00f8ef15aac18ce59c17f90627b72e9e
Fix bug where the client is not present in server.clients when free'ing it

When creating the readable event results in an error (this happens when
the server hits OS limits), the client was not added to the list of
clients when freeClient was called. This results in an assertion error.
It is better to check this condition first and free the client
immediately when this condition occurs. Port of 00a90feb.
src/networking.c