Commit additional test for remote...
authorBrian Aker <brian@tangent.org>
Sat, 12 Feb 2011 07:14:02 +0000 (23:14 -0800)
committerBrian Aker <brian@tangent.org>
Sat, 12 Feb 2011 07:14:02 +0000 (23:14 -0800)
libmemcached/io.c

index 6ecac2457bb64b44dfcd8f4a94fb814e4eda89f7..3b5d44f570e2003313963a6c70a1600287f382ba 100644 (file)
@@ -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;
       }
     }