ptr->server_failure_counter= 0;
}
memcached_io_close(ptr);
-
- ptr->fd= -1;
- ptr->write_buffer_offset= (size_t) ((ptr->type == MEMCACHED_CONNECTION_UDP) ? UDP_DATAGRAM_HEADER_LENGTH : 0);
- ptr->read_buffer_length= 0;
- ptr->read_ptr= ptr->read_buffer;
- memcached_server_response_reset(ptr);
}
- if(io_death) ptr->server_failure_counter++;
+ ptr->fd= -1;
+ ptr->write_buffer_offset= (size_t) ((ptr->type == MEMCACHED_CONNECTION_UDP) ? UDP_DATAGRAM_HEADER_LENGTH : 0);
+ ptr->read_buffer_length= 0;
+ ptr->read_ptr= ptr->read_buffer;
+ memcached_server_response_reset(ptr);
+
+ if(io_death)
+ {
+ ptr->server_failure_counter++;
+ }
}
void memcached_quit(memcached_st *ptr)