Sha256: a6102e89109a9e62efb90a571263dd93899f7bce207e8950e74a416f4f7e043f
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
diff -urw a/libmemcached-0.32/libmemcached/memcached_connect.c b/libmemcached-0.32/libmemcached/memcached_connect.c --- a/libmemcached-0.32/libmemcached/memcached_connect.c 2011-04-25 15:45:35.000000000 -0700 +++ b/libmemcached-0.32/libmemcached/memcached_connect.c 2011-04-25 15:45:49.000000000 -0700 @@ -235,6 +235,7 @@ if (errno == EINPROGRESS || /* nonblocking mode - first return, */ errno == EALREADY) /* nonblocking mode - subsequent returns */ { + fprintf(stderr, "entering poll. errno is %d\n", errno); struct pollfd fds[1]; fds[0].fd = ptr->fd; fds[0].events = POLLOUT; @@ -242,6 +243,7 @@ if (error != 1 || fds[0].revents & POLLERR) { + fprintf(stderr, "poll return %d. errno is %d.\n", error, errno); ptr->cached_errno = 0; if (fds[0].revents & POLLERR) @@ -258,10 +260,12 @@ } else if (errno == EISCONN) /* we are connected :-) */ { + fprintf(stderr, "connect successful. errno is %d\n", errno); break; } else if (errno != EINTR) { + fprintf(stderr, "unknown errno %d.\n", errno); (void)close(ptr->fd); ptr->fd= -1; break;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
memcached-1.2.6.pre2 | ext/libmemcached-11.patch |