From: Brian Aker Date: Thu, 5 Jan 2012 06:18:07 +0000 (-0800) Subject: Remove final UDP bits from io framework. X-Git-Tag: 1.0.3~3^2^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a0ef8ad66d16e94333d4a043ea79c99104856baf;p=m6w6%2Flibmemcached Remove final UDP bits from io framework. --- diff --git a/libmemcached/io.cc b/libmemcached/io.cc index 538f1537..ab98e486 100644 --- a/libmemcached/io.cc +++ b/libmemcached/io.cc @@ -142,10 +142,8 @@ static bool process_input_buffer(memcached_server_write_instance_st ptr) memcached_set_processing_input((memcached_st *)ptr->root, true); char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE]; - memcached_return_t error; memcached_st *root= (memcached_st *)ptr->root; - error= memcached_response(ptr, buffer, sizeof(buffer), - &root->result); + memcached_return_t error= memcached_response(ptr, buffer, sizeof(buffer), &root->result); memcached_set_processing_input(root, false); @@ -378,14 +376,7 @@ static bool io_flush(memcached_server_write_instance_st ptr, } WATCHPOINT_ASSERT(write_length == 0); - if (memcached_is_udp(ptr->root)) - { - ptr->write_buffer_offset= UDP_DATAGRAM_HEADER_LENGTH; - } - else - { - ptr->write_buffer_offset= 0; - } + ptr->write_buffer_offset= 0; return true; }