Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Feb 26, 2025
1 parent bbd1f2c commit feb104f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/darwin/nw_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1953,9 +1953,11 @@ static int s_socket_read_fn(struct aws_socket *socket, struct aws_byte_buf *read
*amount_read += to_copy;
read_node->current_offset += to_copy;
if (read_node->current_offset == size) {
AWS_LOGF_DEBUG(AWS_LS_IO_SOCKET, "id=%p: dispatch_data_apply callback used all data, moving to next buffer", (void *)nw_socket);
read_node->current_offset = 0;
return true;
}
AWS_LOGF_DEBUG(AWS_LS_IO_SOCKET, "id=%p: dispatch_data_apply callback did not use all data, early-outing. Must restart next read.", (void *)nw_socket);
return false;
});

Expand Down

0 comments on commit feb104f

Please sign in to comment.