~mordred/debian/sid/gearmand/packaging

« back to all changes in this revision

Viewing changes to libgearman/connection.c

  • Committer: Monty Taylor
  • Date: 2010-05-13 12:23:50 UTC
  • mfrom: (330.2.8 gearmand)
  • Revision ID: mordred@inaugust.com-20100513122350-s7o5ez3vewqrjmhn
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
{
116
116
  connection= gearman_connection_create(gearman, connection, NULL);
117
117
 
118
 
  if (from || connection == NULL)
 
118
  if (from == NULL || connection == NULL)
119
119
    return connection;
120
120
 
121
121
  connection->options.ready= from->options.ready;
616
616
          }
617
617
          else if (errno == EINTR)
618
618
            continue;
619
 
          else if (errno == EPIPE || errno == ECONNRESET)
 
619
          else if (errno == EPIPE || errno == ECONNRESET || errno == EHOSTDOWN)
620
620
          {
621
621
            if (! (connection->options.ignore_lost_connection))
622
622
            {
875
875
      }
876
876
      else if (errno == EINTR)
877
877
        continue;
878
 
      else if (errno == EPIPE || errno == ECONNRESET)
 
878
      else if (errno == EPIPE || errno == ECONNRESET || errno == EHOSTDOWN)
879
879
      {
880
880
        if (! (connection->options.ignore_lost_connection))
881
881
        {