This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix apr_memcache multiget to prevent spinning
(issue #1048) in the case where if (strncmp(MS_VALUE, conn->buffer, MS_VALUE_LEN) == 0) { and else if (strncmp(MS_END, conn->buffer, MS_END_LEN) == 0) { both fail, it was possible for queries_sent to never decrement. This patch sets rv to APR_EGENERAL in this case, decrements the queries_sent, and closes the connection. According to the trace from betabrand this is where the hang is. Patch applied from apr dev mailing list (http://www.mail-archive.com/dev%40apr.apache.org/msg26265.html)
- Loading branch information
Showing
1 changed file
with
53 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters