Commit 14d91156 authored by Scott Vokes's avatar Scott Vokes
Browse files

Merge remote-tracking branch 'origin/develop' into develop

parents eeeebab0 a84e415c
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ bool sender_register_socket(struct sender *s, int fd, SSL *ssl) {
    info->u.add_socket.fd = fd;
    info->u.add_socket.ssl = ssl;
    BUS_LOG_SNPRINTF(b, 3, LOG_SENDER, b->udata, 64,
        "registering socket %d with SSL %p", fd, ssl);
        "registering socket %d with SSL %p", fd, (void*)ssl);
    bool res = commit_event_and_block(s, info);
    release_tx_info(s, info);
    BUS_LOG_SNPRINTF(b, 3, LOG_SENDER, b->udata, 64,
@@ -139,7 +139,7 @@ bool sender_send_request(struct sender *s, boxed_msg *box) {
    info->u.enqueue.box = box;
    
    BUS_LOG_SNPRINTF(b, 3, LOG_SENDER, b->udata, 64,
        "sending request on %d: box %p", box->fd, box);
        "sending request on %d: box %p", box->fd, (void*)box);
    bool res = commit_event_and_block(s, info);
    BUS_LOG_SNPRINTF(b, 3, LOG_SENDER, b->udata, 64,
        "sending request: releasing tx_info, res %d", res);
@@ -730,7 +730,7 @@ static ssize_t socket_write_plain(sender *s, tx_info_t *info) {

    BUS_LOG_SNPRINTF(b, 10, LOG_SENDER, b->udata, 64,
        "write %p to %d, %zd bytes (info %d)",
        &msg[sent_size], fd, rem, info->id);
        (void*)&msg[sent_size], fd, rem, info->id);
    ssize_t wrsz = write(fd, &msg[sent_size], rem);
    if (wrsz == -1) {
        if (util_is_resumable_io_error(errno)) {
@@ -817,7 +817,7 @@ static void update_sent(struct bus *b, sender *s, tx_info_t *info, ssize_t sent)
    
    BUS_LOG_SNPRINTF(b, 5, LOG_SENDER, b->udata, 64,
        "wrote %zd, msg_size %zd (%p)",
        sent, msg_size, box->out_msg);
        sent, msg_size, (void*)box->out_msg);
    if (rem == 0) { /* completed! */
        fd_info *fdi = info->u.write.fdi;

@@ -837,7 +837,7 @@ static void update_sent(struct bus *b, sender *s, tx_info_t *info, ssize_t sent)
        decrement_fd_refcount(s, fdi);

        BUS_LOG_SNPRINTF(b, 5, LOG_SENDER, b->udata, 64,
            "wrote all of %p, clearing", box->out_msg);
            "wrote all of %p, clearing", (void*)box->out_msg);
        attempt_to_enqueue_message_to_listener(s, info);
    }
}
@@ -1029,7 +1029,7 @@ static void notify_message_failure(sender *s, tx_info_t *info, bus_send_status_t
        if (bus_process_boxed_message(s->bus, box, &backpressure)) {
            BUS_LOG_SNPRINTF(b, 5, LOG_SENDER, b->udata, 64,
                "deleting box %p for info->id %d (msg failure)",
                info->u.error.box, info->id);
                (void*)info->u.error.box, info->id);
            info->u.error.box = NULL;
            info->u.error.backpressure = backpressure;
            notify_caller(s, info, false);
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ static void unexpected_msg_cb(void *msg,
    KineticLogger_LogProtobuf(3, payload->protoBuf);

    printf("\n\n\nUNEXPECTED MESSAGE: %p, seq_id %lld, bus_udata %p, socket_udata %p\n\n\n\n",
        msg, seq_id, bus_udata, socket_udata);
        msg, (long long)seq_id, bus_udata, socket_udata);

    free_payload(payload);
}