Write event handler. Just send data to the client. */
| 1966 | |
| 1967 | /* Write event handler. Just send data to the client. */ |
| 1968 | void sendReplyToClient(connection *conn) { |
| 1969 | client *c = (client*)connGetPrivateData(conn); |
| 1970 | if (writeToClient(c,1) == C_ERR) |
| 1971 | { |
| 1972 | AeLocker ae; |
| 1973 | c->lock.lock(); |
| 1974 | ae.arm(c); |
| 1975 | if (c->flags & CLIENT_CLOSE_ASAP) |
| 1976 | { |
| 1977 | if (!freeClient(c)) |
| 1978 | c->lock.unlock(); |
| 1979 | } |
| 1980 | } |
| 1981 | } |
| 1982 | |
| 1983 | void ProcessPendingAsyncWrites() |
| 1984 | { |
nothing calls this directly
no test coverage detected