From 092fc74b65236e6ef2c6f9f1cacf23e6c84d3071 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Fri, 30 Dec 2011 17:37:27 -0800 Subject: [PATCH] Add back in the UDP header creation. --- libmemcached/server.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmemcached/server.cc b/libmemcached/server.cc index 03426c8a..f08f8bf0 100644 --- a/libmemcached/server.cc +++ b/libmemcached/server.cc @@ -131,6 +131,12 @@ memcached_server_st *__server_create_with(memcached_st *memc, _server_init(self, const_cast(memc), hostname, port, weight, type); + if (memc and memcached_is_udp(memc)) + { + self->write_buffer_offset= UDP_DATAGRAM_HEADER_LENGTH; + memcached_io_init_udp_header(self, 0); + } + if (memc) { set_hostinfo(self); -- 2.30.2