From: Brian Aker Date: Sat, 12 Feb 2011 07:14:02 +0000 (-0800) Subject: Commit additional test for remote... X-Git-Tag: 0.51~43^2~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d46b596b82e290141fd97e3c5381efdb792756a4;p=m6w6%2Flibmemcached Commit additional test for remote... --- diff --git a/libmemcached/io.c b/libmemcached/io.c index 6ecac245..3b5d44f5 100644 --- a/libmemcached/io.c +++ b/libmemcached/io.c @@ -660,9 +660,11 @@ static ssize_t io_flush(memcached_server_write_instance_st ptr, case ENOTCONN: case EPIPE: default: + fprintf(stderr, "%s %u %u %u\n", ptr->hostname, ptr->port, ptr->io_bytes_sent, ptr->server_failure_counter); fprintf(stderr, "%s:%d (%s)(%s)\n", __FILE__, __LINE__,__func__, strerror(errno));fflush(stdout); memcached_quit_server(ptr, true); *error= MEMCACHED_ERRNO; + assert(ptr->fd == -1); return -1; } }