Skip to content

Commit

Permalink
Release 2.18.2
Browse files Browse the repository at this point in the history
- [BUGFIX] Send prediction: lone path challenges do not get squeezed out
- Fix crash in http_client: now -K and -B can be used simultaneously
  • Loading branch information
Dmitri Tikhonov committed Jul 22, 2020
1 parent 692a910 commit b329a00
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2020-07-22
- 2.18.2
- [BUGFIX] Send prediction: lone path challenges do not get squeezed out
- Fix crash in http_client: now -K and -B can be used simultaneously

2020-07-14
- 2.18.1
- [FEATURE] Implement the "QUIC bit grease" extension.
Expand Down
17 changes: 6 additions & 11 deletions bin/http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,9 +957,7 @@ hset_create (void *hsi_ctx, lsquic_stream_t *stream, int is_push_promise)
{
struct hset *hset;

if (s_discard_response)
return (void *) 1;
else if ((hset = malloc(sizeof(*hset))))
if ((hset = malloc(sizeof(*hset))))
{
STAILQ_INIT(hset);
return hset;
Expand Down Expand Up @@ -1057,16 +1055,13 @@ hset_destroy (void *hset_p)
struct hset *hset = hset_p;
struct hset_elem *el, *next;

if (!s_discard_response)
for (el = STAILQ_FIRST(hset); el; el = next)
{
for (el = STAILQ_FIRST(hset); el; el = next)
{
next = STAILQ_NEXT(el, next);
free(el->xhdr.buf);
free(el);
}
free(hset);
next = STAILQ_NEXT(el, next);
free(el->xhdr.buf);
free(el);
}
free(hset);
}


Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = u'2.18'
# The full version, including alpha/beta/rc tags
release = u'2.18.1'
release = u'2.18.2'


# -- General configuration ---------------------------------------------------
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 2
#define LSQUIC_MINOR_VERSION 18
#define LSQUIC_PATCH_VERSION 1
#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 @@ -1696,7 +1696,8 @@ lsquic_send_ctl_next_packet_to_send_predict (struct lsquic_send_ctl *ctl)
return 0;
}
if ((packet_out->po_flags & PO_REPACKNO)
&& packet_out->po_regen_sz == packet_out->po_data_sz)
&& packet_out->po_regen_sz == packet_out->po_data_sz
&& packet_out->po_frame_types != QUIC_FTBIT_PATH_CHALLENGE)
{
LSQ_DEBUG("send prediction: packet %"PRIu64" would be dropped, "
"continue", packet_out->po_packno);
Expand Down

0 comments on commit b329a00

Please sign in to comment.