** otherwise we might get a partial write.
**/
if (ptr->type == MEMCACHED_CONNECTION_UDP && with_flush && ptr->write_buffer_offset > UDP_DATAGRAM_HEADER_LENGTH)
+ {
memcached_io_write(ptr, NULL, 0, true);
+ }
sent_length= memcached_io_write(ptr, command, command_length, with_flush);