Updated THANKS file.
+ * Changed default timeout to 1 second for poll timeouts
* Wheel uses less memory/dynamic allocation for size (no longer limited to
512 hosts by default.
* memslap memory leak fix
Patrick Galbraith - work on C++ interface
Ross McFarland - Idea for sorting servers.
Marcelo Fernandez - TCP/IP timeout pieces
+Yin Chen - Ketama support
fds[0].events= POLLOUT | POLLERR;
error= poll(fds, 1, ptr->root->connect_timeout);
- if (error != 1)
+ if (error == 0)
+ {
+ goto handle_retry;
+ }
+ else if (error != 1)
{
ptr->cached_errno= errno;
WATCHPOINT_ERRNO(ptr->cached_errno);
case EISCONN: /* We were spinning waiting on connect */
break;
default:
+handle_retry:
ptr->cached_errno= errno;
WATCHPOINT_ERRNO(ptr->cached_errno);
close(ptr->fd);
#define MEMCACHED_POINTS_PER_SERVER 100
#define MEMCACHED_CONTINUUM_SIZE MEMCACHED_POINTS_PER_SERVER*100 /* This would then set max hosts to 100 */
#define MEMCACHED_STRIDE 4
-#define MEMCACHED_DEFAULT_TIMEOUT INT32_MAX
+#define MEMCACHED_DEFAULT_TIMEOUT 1000
#define MEMCACHED_CONTINUUM_ADDITION 10 /* How many extra slots we should build for in the continuum */
typedef enum {