Skip to content

Commit

Permalink
1.12.2: Bugfix and log message improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Tikhonov committed Aug 20, 2018
1 parent dada56d commit 483646e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2018-08-20

- 1.12.2
- [BUGFIX] Update count of scheduled bytes when adjusting size of
an already-scheduled packet.
- Emit info instead of warning messages when stream is used in
unexpected ways.

2018-08-17

- 1.12.0
Expand Down
2 changes: 1 addition & 1 deletion include/lsquic.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {

#define LSQUIC_MAJOR_VERSION 1
#define LSQUIC_MINOR_VERSION 12
#define LSQUIC_PATCH_VERSION 0
#define LSQUIC_PATCH_VERSION 2

/**
* Engine flags:
Expand Down
3 changes: 2 additions & 1 deletion src/liblsquic/lsquic_send_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,8 @@ update_for_resending (lsquic_send_ctl_t *ctl, lsquic_packet_out_t *packet_out)
assert(packet_out->po_regen_sz < packet_out->po_data_sz);
if (packet_out->po_regen_sz)
{
assert(!(packet_out->po_flags & PO_SCHED));
if (packet_out->po_flags & PO_SCHED)
ctl->sc_bytes_scheduled -= packet_out->po_regen_sz;
lsquic_packet_out_chop_regen(packet_out);
}
LSQ_DEBUG("Packet %"PRIu64" repackaged for resending as packet %"PRIu64,
Expand Down
6 changes: 3 additions & 3 deletions src/liblsquic/lsquic_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ lsquic_stream_flush_threshold (const struct lsquic_stream *stream)
if ((stream->stream_flags & (STREAM_USE_HEADERS|STREAM_HEADERS_SENT)) \
== STREAM_USE_HEADERS) \
{ \
LSQ_WARN("Attempt to write to stream before sending HTTP headers"); \
LSQ_INFO("Attempt to write to stream before sending HTTP headers"); \
errno = EILSEQ; \
return -1; \
} \
Expand All @@ -1398,7 +1398,7 @@ lsquic_stream_flush_threshold (const struct lsquic_stream *stream)
} \
if (stream->stream_flags & (STREAM_U_WRITE_DONE|STREAM_FIN_SENT)) \
{ \
LSQ_WARN("Attempt to write to stream after it was closed for " \
LSQ_INFO("Attempt to write to stream after it was closed for " \
"writing"); \
errno = EBADF; \
return -1; \
Expand Down Expand Up @@ -1847,7 +1847,7 @@ lsquic_stream_send_headers (lsquic_stream_t *stream,
}
else
{
LSQ_WARN("cannot send headers for stream %u in this state", stream->id);
LSQ_INFO("cannot send headers for stream %u in this state", stream->id);
errno = EBADMSG;
return -1;
}
Expand Down

0 comments on commit 483646e

Please sign in to comment.