~brianaker/libmemcached/gear-clean

« back to all changes in this revision

Viewing changes to libmemcached/quit.cc

  • Committer: Continuous Integration
  • Date: 2014-02-01 22:30:50 UTC
  • mfrom: (1174.1.11 libmemcached-1.0)
  • Revision ID: ci@tangent.org-20140201223050-9oskut4own512lem
Merge lp:~brianaker/libmemcached/1251482 Build: jenkins-Libmemcached-439

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
 
121
121
  instance->close_socket();
122
122
 
123
 
  if (io_death)
 
123
  if (io_death and memcached_is_udp(instance->root))
124
124
  {
 
125
    /*
 
126
       If using UDP, we should stop using the server briefly on every IO
 
127
       failure. If using TCP, it may be that the connection went down a
 
128
       short while ago (e.g. the server failed) and we've only just
 
129
       noticed, so we should only set the retry timeout on a connect
 
130
       failure (which doesn't call this method).
 
131
       */
125
132
    memcached_mark_server_for_timeout(instance);
126
133
  }
127
134
}