From: Brian Aker Date: Sat, 31 Dec 2011 01:37:27 +0000 (-0800) Subject: Add back in the UDP header creation. X-Git-Tag: 1.0.3~3^2~1^2~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=092fc74b65236e6ef2c6f9f1cacf23e6c84d3071;p=m6w6%2Flibmemcached Add back in the UDP header creation. --- 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);