Skip to content

Commit 32a0aa3

Browse files
author
Dmitri Tikhonov
committed
Release 2.27.7
- [BUGFIX] Infinite loop in stream: returned HQ frame can be at any point on the list. - [BUGFIX] Fail push promise immediately if STREAM_NOPUSH is set.
1 parent 5650ee6 commit 32a0aa3

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2021-03-06
2+
- 2.27.7
3+
- [BUGFIX] Infinite loop in stream: returned HQ frame can be at any
4+
point on the list.
5+
- [BUGFIX] Fail push promise immediately if STREAM_NOPUSH is set.
6+
17
2021-01-27
28
- 2.27.6
39
- [BUGFIX] Replace dispatch read/write events assertion with a check.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# The short X.Y version
2727
version = u'2.27'
2828
# The full version, including alpha/beta/rc tags
29-
release = u'2.27.6'
29+
release = u'2.27.7'
3030

3131

3232
# -- General configuration ---------------------------------------------------

include/lsquic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C" {
2525

2626
#define LSQUIC_MAJOR_VERSION 2
2727
#define LSQUIC_MINOR_VERSION 27
28-
#define LSQUIC_PATCH_VERSION 6
28+
#define LSQUIC_PATCH_VERSION 7
2929

3030
/**
3131
* Engine flags:

src/liblsquic/lsquic_stream.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,8 @@ static void
26662666
stream_hq_frame_put (struct lsquic_stream *stream,
26672667
struct stream_hq_frame *shf)
26682668
{
2669-
assert(STAILQ_FIRST(&stream->sm_hq_frames) == shf);
2670-
STAILQ_REMOVE_HEAD(&stream->sm_hq_frames, shf_next);
2669+
/* In vast majority of cases, the frame to put is at the head: */
2670+
STAILQ_REMOVE(&stream->sm_hq_frames, shf, stream_hq_frame, shf_next);
26712671
if (frame_in_stream(stream, shf))
26722672
memset(shf, 0, sizeof(*shf));
26732673
else
@@ -5357,7 +5357,9 @@ lsquic_stream_push_promise (struct lsquic_stream *stream,
53575357
ssize_t nw;
53585358

53595359
assert(stream->sm_bflags & SMBF_IETF);
5360-
assert(lsquic_stream_can_push(stream));
5360+
5361+
if (stream->stream_flags & STREAM_NOPUSH)
5362+
return -1;
53615363

53625364
bits = vint_val2bits(promise->pp_id);
53635365
len = 1 << bits;

0 commit comments

Comments
 (0)