MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / process_hello_reply

Function process_hello_reply

net/net.c:4228–4240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4226
4227
4228static int process_hello_reply(netinfo_type *netinfo_ptr,
4229 host_node_type *host_node_ptr)
4230{
4231 int rc = process_hello_common(netinfo_ptr, host_node_ptr, 0);
4232 if (rc == 1) {
4233 logmsg(LOGMSG_ERROR, "rejected hello reply from %s\n", host_node_ptr->host);
4234 }
4235 if (rc != -1) {
4236 /* Only propogate IO errors backwards. */
4237 rc = 0;
4238 }
4239 return rc;
4240}
4241
4242/* Common code for processing hello and hello reply.
4243 *

Callers 1

reader_threadFunction · 0.70

Calls 2

process_hello_commonFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected