Changeset 630
- Timestamp:
- 11/12/07 17:48:54 (1 year ago)
- Files:
-
- trunk/server/ChangeLog (modified) (1 diff)
- trunk/server/memcached.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/server/ChangeLog
r629 r630 1 2007-11-12 Steven Grimm <sgrimm@facebook.com> 2 3 * Patch from Tomash Brechko <tomash.brechko@gmail.com>: Always send 4 "SERVER_ERROR out of memory" when memory exhausted. 5 1 6 2007-10-15 Paul Lindner <lindner@inuus.com> 2 7 trunk/server/memcached.c
r629 r630 1191 1191 if (settings.verbose > 1) 1192 1192 fprintf(stderr, ">%d END\n", c->sfd); 1193 add_iov(c, "END\r\n", 5); 1194 1195 if (c->udp && build_udp_headers(c) != 0) { 1193 1194 Â Â Â /* 1195 Â Â Â Â Â If the loop was terminated because of out-of-memory, it is not 1196 Â Â Â Â Â reliable to add END\r\n to the buffer, because it might not end 1197 Â Â Â Â Â in \r\n. Â So we send SERVER_ERROR instead. 1198 Â Â Â */ 1199 Â Â Â if (key_token->value != NULL || add_iov(c, "END\r\n", 5) != 0 1200 Â Â Â Â Â Â Â || (c->udp && build_udp_headers(c) != 0)) { 1196 1201 out_string(c, "SERVER_ERROR out of memory"); 1197 1202 }
