Browse files

We need to do a quit on the server also an UDP

This is because if we don't do that, when the UDP server gives a timeout, the UDP reads keeps looping forever trying it again and again
  • Loading branch information...
1 parent f3813dc commit 02bb026725553bd5c82132280d90d997c60e51b2 @dpaneda committed Jan 26, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 libmemcached/io.c
View
4 libmemcached/io.c
@@ -304,9 +304,7 @@ memcached_return_t memcached_io_read(memcached_server_write_instance_st ptr,
/* fall through */
default:
{
- if (! ((rc == MEMCACHED_TIMEOUT) && ptr->root->flags.use_udp)) {
- memcached_quit_server(ptr, true);
- }
+ memcached_quit_server(ptr, true);
*nread= -1;
return rc;
}

0 comments on commit 02bb026

Please sign in to comment.