Skip to content

Commit

Permalink
emit wrote_all flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Jan 29, 2025
1 parent ebcfde2 commit f59a382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -4348,12 +4348,13 @@ quicly_error_t quicly_send_stream(quicly_stream_t *stream, quicly_send_context_t
is_fin = 0;
}

QUICLY_PROBE(STREAM_AFTER_SEND_EMIT, stream->conn, stream->conn->stash.now, stream, *s->dst, off, dst, len);
QUICLY_PROBE(STREAM_AFTER_SEND_EMIT, stream->conn, stream->conn->stash.now, stream, *s->dst, off, dst, len, wrote_all);
QUICLY_LOG_CONN(stream_after_send_emit, stream->conn, {
PTLS_LOG_ELEMENT_SIGNED(stream_id, stream->stream_id);
PTLS_LOG_ELEMENT_UNSIGNED(frame_type, *s->dst);
PTLS_LOG_ELEMENT_UNSIGNED(frame_offset, off);
PTLS_LOG_APPDATA_ELEMENT_HEXDUMP(data, dst - len, len);
PTLS_LOG_ELEMENT_BOOL(wrote_all, wrote_all);
});

/* update s->dst now that frame construction is complete */
Expand Down
2 changes: 1 addition & 1 deletion quicly-probes.d
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ provider quicly {
probe stream_on_send_emit(struct st_quicly_conn_t *conn, int64_t at, struct st_quicly_stream_t *stream, size_t off,
size_t capacity);
probe stream_after_send_emit(struct st_quicly_conn_t *conn, int64_t at, struct st_quicly_stream_t *stream, uint8_t frame_type,
uint64_t frame_offset, const void *data, size_t data_len);
uint64_t frame_offset, const void *data, size_t data_len, int wrote_all);
probe stream_on_send_stop(struct st_quicly_conn_t *conn, int64_t at, struct st_quicly_stream_t *stream, int64_t err);
probe stream_on_receive(struct st_quicly_conn_t *conn, int64_t at, struct st_quicly_stream_t *stream, size_t off,
const void *src, size_t src_len);
Expand Down

0 comments on commit f59a382

Please sign in to comment.