Skip to content

Commit

Permalink
We need to do a quit on the server also an UDP
Browse files Browse the repository at this point in the history
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
dpaneda committed Jan 26, 2012
1 parent f3813dc commit 02bb026
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libmemcached/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 02bb026

Please sign in to comment.