~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to libtest/gearmand.cc

  • Committer: Continuous Integration
  • Date: 2012-10-22 05:56:09 UTC
  • mfrom: (1086.1.8 libmemcached-1.0)
  • Revision ID: ci@tangent.org-20121022055609-cbooaw9bcdal4qge
Merge lp:~tangent-org/libmemcached/1.0-build Build: jenkins-Libmemcached-1.0-87

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    gearman_client_st *client= gearman_client_create(NULL);
77
77
    if (client == NULL)
78
78
    {
79
 
      Error << "Could not allocate memory for gearman_client_create()";
 
79
      error("Could not allocate memory for gearman_client_create()");
80
80
      return false;
81
81
    }
82
 
    gearman_client_set_timeout(client, 3000);
 
82
    gearman_client_set_timeout(client, 4000);
83
83
 
84
84
    if (gearman_success(gearman_client_add_server(client, hostname().c_str(), port())))
85
85
    {
93
93
      
94
94
      if (out_of_ban_killed() == false)
95
95
      {
96
 
        Error << hostname().c_str() << ":" << port() << " " << gearman_client_error(client);
 
96
        error(gearman_client_error(client));
97
97
      }
98
98
    }
99
99
    else
100
100
    {
101
 
      Error << "gearman_client_add_server() " << gearman_client_error(client);
 
101
      error(gearman_client_error(client));
102
102
    }
103
103
 
104
104
    gearman_client_free(client);