commit | 3549b0dc2829184f9911d27a6ab0cf39b19764f1 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@android.com> | Thu Mar 17 17:14:46 2011 -0700 |
committer | Brad Fitzpatrick <bradfitz@android.com> | Tue Mar 22 14:03:11 2011 -0700 |
tree | 7667b9535a0f4d95d755f2e544182f04e9993879 | |
parent | 13aa8ad44570bceef73115cea749b11f30888530 [diff] |
Fix potential race introduced in Icd7f5f03 Digit wrote: "You probably don't want to close the socket here without updating c->socket as well. Otherwise, another thread holding a handle to the client after the c->decRef() could end up sending a message to a different socket, if the file descriptor index is reused by another client in the meantime." Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7