commit | 4be4e69f0128b7d9b0a29651ef4b79d806ae3ce7 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@android.com> | Thu Mar 17 17:14:46 2011 -0700 |
committer | Brad Fitzpatrick <bradfitz@android.com> | Thu Mar 17 17:14:46 2011 -0700 |
tree | 7ea32b884c407264ff50b4b857e51b94a5fcf825 | |
parent | 51101e86dce3c512a915308274406968aa5d0760 [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