goto error;
}
- DBG3("Relayd sending command %d", cmd);
+ DBG3("Relayd sending command %d of size %" PRIu64, cmd, buf_size);
error:
free(buf);
{
int ret;
- DBG3("Relayd waiting for reply...");
+ DBG3("Relayd waiting for reply of size %ld", size);
ret = sock->ops->recvmsg(sock, data, size, 0);
if (ret < 0) {
goto error;
}
- /* Recevie response */
+ /* Waiting for reply */
ret = recv_reply(sock, (void *) &reply, sizeof(reply));
if (ret < 0) {
goto error;
/*
* After that call, the metadata data MUST be sent to the relayd so the
* receive size on the other end matches the len of the metadata packet
- * header.
+ * header. This is why we don't wait for a reply here.
*/
error:
assert(sock);
assert(hdr);
- DBG3("Relayd sending data header...");
+ DBG3("Relayd sending data header of size %ld", size);
/* Again, safety net */
if (size == 0) {