Skip to content

Commit

Permalink
Fix out of bounds in loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Sep 25, 2024
1 parent 02b3eec commit 11346cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sockets/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function c_scheduled_write(channel_task, arg, status)
aws_byte_buf_append(data, cursor)
msg.message_data = data[]
end
socket.debug && @info "[$(_id(socket))]: c_scheduled_write: sending $(data[].len) bytes in message: $(String(writebufdata[1:40]))..."
socket.debug && @info "[$(_id(socket))]: c_scheduled_write: sending $(data[].len) bytes in message: $(String(writebufdata[1:min(length(writebufdata), 40)]))..."
if aws_channel_slot_send_message(socket.slot, msgptr, AWS_CHANNEL_DIR_WRITE) != 0
aws_mem_release(msg.allocator, msgptr)
socket.debug && @error "c_scheduled_write: failed to send message"
Expand Down

0 comments on commit 11346cb

Please sign in to comment.