--- memcached.c.orig 2006-09-10 03:10:21.000000000 +1000 +++ memcached.c 2006-11-12 05:39:25.000000000 +1100 @@ -1554,7 +1554,7 @@ * assemble it into a msgbuf list (this will be a single-entry * list for TCP or a two-entry list for UDP). */ - if (c->iovused == 0) { + if (c->iovused == 0 || (c->udp && c->iovused == 1)) { if (add_iov(c, c->wcurr, c->wbytes) || c->udp && build_udp_headers(c)) { if (settings.verbose > 0)