CHANGELOG revision e1b8f1a8
12021-03-08
2    - 2.29.4
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
72021-03-03
8    - 2.29.3
9    - [BUGFIX] Do not send RESET_STREAM if writing to stream is already
10      finished.
11    - perf_client: wait for all ACKs before exiting.
12    - Improve how generated RESET_STREAM is logged.
13    - Fix compilation in different combos of adv_tick/conn_stats flags.
14    - Move qpack warning disablement into src/liblsquic/CMakeLists.txt.
15
162021-02-23
17    - 2.29.2
18    - Fix regression in gQUIC server: bug #234.
19
202021-02-18
21    - 2.29.1
22    - Make it possible to build the library and unit tests without
23      libevent.
24    - Build all command-line utilities in bin/
25    - Add perf_client and perf_server command-line utilities to test
26      performance according to the "perf" protocol.
27
282021-02-10
29    - 2.29.0
30    - [FEATURE] QUIC and HTTP/3 Internet Draft 34 support and v1 support.
31      The latter is turned off by default.
32    - Drop support for ID-28 and ID-32.
33    - [BUGFIX] IETF QUIC mini conn receive history (trechist): allow
34      unlimited inserts by dropping smallest elements.
35    - [BUGFIX] gQUIC: set STTL to correct value, issue #226.
36    - [BUGFIX] Account for poison packet gap when MTU probe was too large.
37
382021-02-03
39    - 2.28.0
40    - [API] lsquic_ssl_sess_to_resume_info() is the new way to get
41      session info.
42    - [API] Add user pointer to ea_generate_scid callback.
43    - [API] Add lsquic_dcid_from_packet() -- a fast function to parse
44      out DCID.
45    - [API] Add es_max_batch_size to control outgoing packet batch size.
46    - [BUGFIX] Disallow sending of header while promise is being written.
47    - [BUGFIX] Flush stream when buffered bytes exhaust stream cap.
48    - [BUGFIX] Deactivate HQ frame if writing push promise fails.
49    - Perform sanity check on peer transport parameters and fail the
50      handshake if some flow control limits are too low.  This can be
51      turned off, see es_check_tp_sanity.
52    - http_server: fix how requests are read in "hq" mode.
53
542021-01-27
55    - 2.27.6
56    - [BUGFIX] Replace dispatch read/write events assertion with a check.
57    - [BUGFIX] gQUIC connection close: there is no HEADERS stream without
58      HTTP flag, see issue #220.
59    - http_client, http_server: add hq protocol support and other flags
60      for use with QUIC Interop Runner.
61    - Fix: use IP_PMTUDISC_PROBE (not IP_PMTUDISC_DO) on Linux to set
62      Don't-Fragment flag on outgoing packets.
63    - Fix send_packets_one_by_one on Windows platform when sending
64      multiple iovs, see issue #218.
65    - Exit echo_client on Windows immediately, see issue #219.
66
672021-01-18
68    - 2.27.5
69    - [BUGFIX] Assertion in send controller when path validation fails.
70    - [BUGFIX] Assertion in BBR when sending out-of-order packets is
71      detected.
72    - [BUGFIX] Drop overflow receive history ranges when cloning.
73    - Log correct size of the incoming packet.
74    - Fix internal stream function.
75
762021-01-13
77    - 2.27.4
78    - [API] Add lsquic_conn_get_sni(), fixes issue #203.
79
802021-01-08
81    - 2.27.3
82    - [BUGFIX] gQUIC: do not destroy critical streams when connection is
83      closed.  See issue #201.
84    - [BUGFIX] Drop #if LSQUIC_CONN_STATS from lsquic.h.  See issue #211.
85    - [BUGFIX] Challenge cancellation when path validation fails.
86    - [BUGFIX] Do not send FIN if RST is scheduled to be sent on a stream.
87    - [BUGFIX] gQUIC's is_tickable() when connection is closing.
88    - [BUGFIX] Q050 processing of GOAWAY frames.
89
902021-01-06
91    - 2.27.2
92    - [BUGFIX] Memory corruption in receive history copy-ranges function.
93
942021-01-06
95    - 2.27.1
96    - [API] New knob to set outgoing packet batch size.
97    - Aborted connection now become tickable immediately.
98    - Abort connection when HTTP/3 frame cannot be opened (can only happen
99      when malloc fails).
100
1012020-12-31
102    - 2.27.0
103    - [API] Remove keylog callbacks.  See issue #188.
104    - Add a bit more ALPN logging.
105
1062020-12-23
107    - 2.26.2
108    - [BUGFIX] Do not drop incoming data when STOP_SENDING is received.
109    - [BUGFIX] Receipt of STOP_SENDING should not cause read-reset.
110    - [BUGFIX] Allow stream writes after receiving RESET.
111    - [BUGFIX] Typo in stream: ANDing enum with wrong flag.
112    - [BUGFIX] Reset elision: do not use zero as special stream ID value,
113      for zero is a valid stream ID in IETF QUIC.
114    - [API] Add optional on_conncloseframe_received() callback.
115    - Use zero error code in RESET stream sent in response to STOP_SENDING.
116
1172020-12-17
118    - 2.26.1
119    - [BUGFIX] Migration corner cases: drop or pad over path challenge
120      and response frames when necessary.
121    - Fix stream unit test.
122
1232020-12-09
124    - 2.26.0
125    - [OPTIMIZATION] Adjust packet reordering threshold when spurious losses
126      are detected.
127    - [API] Pass pointer to local sockaddr to ea_get_ssl_ctx() callback.
128
1292020-12-04
130    - 2.25.0
131    - [API, FEATURE] Add es_delay_onclose option to delay on_close until all
132      data is ACKed.  Use new function lsquic_stream_has_unacked_data() to
133      learn whether peer acknowledged all data written to stream.
134    - [API] Add optional on_reset() stream callback to get notifications
135      when RESET or STOP_SENDING frames are received.
136    - [BUGFIX] On STOP_SENDING, make conn tickable is _writeable_, not
137      readable.
138
1392020-11-24
140    - 2.24.5
141    - [FEATURE] Improve Delayed ACKs extension and turn it on by default.
142    - Limit receive history to a finite amount of memory.
143
1442020-11-18
145    - 2.24.4
146    - [BUGFIX] Check whether ECN counts are set in ACK struct before using
147      them.
148    - [BUGFIX] Calculate TLP timer correctly when only one packet is in
149      flight.
150    - [BUGFIX] Min RTO delay is 200 milliseconds, not 1 second.
151    - [BUGFIX] Memory leak in QPACK decoder handler: discard hset when
152      necessary.
153    - Allow retired and drained CIDs to be reused after a timeout.
154
1552020-11-11
156    - 2.24.3
157    - [BUGFIX] Get rough RTT estimate on receipt of Handshake packet.
158      This prevents BBR on the client from miscalculating pacing rate,
159      slowing down sending of ACK packets.
160    - [BUGFIX] Packets sent during handshake are app-limited.
161    - [BUGFIX] Bandwidth sampler starts in app-limited mode.
162    - [BUGFIX] Memory leak: free QPACK handler context in stream dtor.
163    - Logging improvements.
164
1652020-11-05
166    - 2.24.2
167    - [BUGFIX] Allow peer to migrate when its SCID is zero-length.
168    - [BUGFIX] PADDING size calculation: only one Short packet can be
169      coalesced.  (This should have been part of the fix in 2.24.1).
170    - Abort connect if received NEW_CONNECTION_ID but current DCID is
171      zero-length.
172    - Improve log messages
173
1742020-11-04
175    - 2.24.1
176    - [API] Allow use of ea_get_ssl_ctx() on the client (optional).  PR #186.
177    - [BUGFIX] Expand datagram with ack-eliciting Initial to 1200 bytes
178      after connection promotion.
179    - [BUGFIX] Discard CRYPTO frames from lower encryption levels after
180      connection promotion.
181    - [BUGFIX] Cancel path response if path could not be initialized.
182
1832020-10-28
184    - 2.24.0
185    - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.  Drop ID-30
186      and ID-31 support.
187    - [BUGFIX] Divide-by-zero in newly enabled conn stats code when no
188      packets were sent.
189    - [BUGFIX] Memory leak in gQUIC client when server hello cannot be
190      parsed.
191    - [BUGFIX] Server Initial packet size calculation.
192    - Log user-agent and CONN_CLOSE reason when peer reports error.
193    - Example programs: Specify ALPN for echo and md5 clients and servers
194      (issue #184).
195    - Example programs: Don't add "QUIC_" prefix to lines in keylog file
196      (issue #185).
197    - http_server: Fix fd leak in preadv mode; fix preadv() usage when
198      reading from disk.
199
2002020-10-22
201    - 2.23.3
202    - [BUGFIX] Update packetization threshold when writing to stream
203      after packet size is reduced following an RTO.
204
2052020-10-21
206    - 2.23.2
207    - Add QPACK stats collection and experimentation mode, see the new
208      es_qpack_experiment setting.
209    - Log busy connection stats every second using the new "conn-stats"
210      log module.
211    - Log about skipping only once.
212    - Update HTTP/3 greased frame type formula.
213    - Use ls-qpack v2.2.1.
214
2152020-10-13
216    - 2.23.1
217    - [FEATURE] IETF Client 0-RTT support.
218    - [BUGFIX] Do not schedule MTU probe on first tick.
219    - [BUGFIX] Parsing DATAGRAM frame.
220    - [BUGFIX] If push promise fails, do not invoke hset destructor.
221    - [BUGFIX] Client: When connections are IDed by port number, check DCID.
222      Fixes issue #176.
223    - [BUGFIX] Regression introduced in 2.22.0: use correct number of
224      PNSs for IETF mini conn during promotion.
225    - Revert the 2.22.1 lsquic_is_valid_hs_packet change.  All that was
226      necessary is a change to the way we call it in lsquic_engine.  No
227      change to the function itself is required.
228
2292020-10-08
230    - 2.22.1
231    - [BUGFIX] Function that checks validity of handshake packets.
232
2332020-10-07
234    - 2.22.0
235    - [FEATURE] Extensible HTTP Priorities (HTTP/3 only).
236    - [FEATURE] Add conn context to packet-out memory interface (PR #175).
237    - [BUGFIX] gQUIC proof generation: allocate buffer big enough for
238      signature (issue #173).
239    - [BUGFIX] Make library thread-safe: drop use of global variables
240      (issue #133, issue #167).
241    - [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame.
242    - [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX,
243      instead of keeping them in a separate hash, potentially leading
244      to mismatches.
245    - [BUGFIX] Stream data discard infinite loop: break on FIN.
246    - cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171).
247    - Support randomized packet number to begin a connection.
248    - Mini and full IETF connection size optimization.
249    - http_client: specify HTTP priorities based on stream conditions.
250
2512020-09-29
252    - 2.21.0
253    - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.
254    - [API] Let user generate Souce Connection IDs.
255    - [FEATURE] Allow building lsquic as shared library.
256    - [OPTIMIZATION] Receive history: use a single contiguous memory
257      block for everything.
258    - Deprecate QUIC versions ID-27 and ID-30.
259
2602020-09-25
261    - 2.20.2
262    - [BUGFIX] Memory leak: free pushed promise when refcnt is zero.
263    - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets.
264
2652020-09-23
266    - 2.20.1
267    - [BUGFIX] Typo in new "validate peer addr by DCID" code.  It is
268      a benign bug (works either way), but better to fix it.
269    - Simplify Stream Priority Iterator (SPI).
270    - Minor documentation updates.
271
2722020-09-15
273    - 2.20.0
274    - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support.
275    - [FEATURE] Unreliable Datagram Extension support.
276    - [FEATURE] Adaptive congestion controller.
277    - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams.
278    - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO
279      data comes in.
280    - [BUGFIX] Spin bit is now strictly per path; value is reset on
281      DCID change.
282    - [BUGFIX] Check that max value of max_streams_uni and
283      max_streams_bidi TPs is 2^60.
284    - [BUGFIX] Close IETF mini conn immediately if crypto session
285      cannot be initialized.
286    - Deprecate ID-28 (no browser uses it): it's no longer in the
287      default versions list.
288    - New programs duck_server and duck_client that implement the
289      experimental siduck-00 protocol.  They quack!
290    - IETF crypto streams: don't limit ourselves from sending.
291    - Command-line programs: turn off QL loss bits if -G is used, as
292      Wireshark cannot decrypt QUIC packets when this extension is used.
293    - Turn all h3 framing unit tests back on.
294    - Fix malo initialization when compiled in no-pool mode.
295
2962020-09-08
297    - 2.19.10
298    - [FEATURE] Add lsquic_stream_pwritev().  This function allows one to
299      reduce the number of system calls required to read a file from disk
300      by using lsquic_stream_pwritev() together with preadv(2).
301    - [BUGFIX] When stream is reset, it is writeable -- let user collect
302      the error.
303    - [BUGFIX] Calculate correct conn flow control if reading ends early.
304    - [BUGFIX] Remove stream from read and write queues on internal
305      shutdown.  This is a regression introduced in 2.19.7.
306    - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation.
307    - Turn off mini conn history when compiling with Visual Studio; this
308      allows the project to compile on Windows again.
309    - http_client: Add -3 flag to stop reading from streams early; code
310      cleanup.
311    - Don't use -Werror.
312
3132020-09-02
314    - 2.19.8
315    - [FEATURE] Update the timestamp extension to latest version.
316    - [FEATURE] Cope with appearance of ECN blackholes.
317    - [OPTIMIZATION] return packno offset and size when header is generated.
318    - [BUGFIX] ignore old ACK frames in mini conns.
319    - [BUGFIX] Mark initial server path as initialized.
320    - [BUGFIX] Do not merge ACK if ECN counts do not match.
321    - Turn incoming packet number history in mini conn back on.
322    - Record mini conn event history again when compiled in debug mode.
323    - IETF mini conn: log when ACK is queued.
324    - Clean up and refactor code in several places.
325
3262020-08-26
327    - 2.19.7
328    - Handle ECT-CE event: issue a loss event.
329    - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE.
330    - Use Max Push ID in GOAWAY frame to cancel promises.
331    - Add support for HTTP/3 CANCEL_PUSH frame.
332    - lsquic_stream_is_pushed: streams without headers are never pushed.
333    - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down.
334    - Improve logic whether to generate CONNECTION_CLOSE.
335
3362020-08-20
337    - 2.19.6
338    - Don't process incoming ECN marks if ECN is not enabled.
339    - Schedule ACK when incoming packet is marked with CE.
340
3412020-08-11
342    - 2.19.5
343    - [BUGFIX] Generate frame record when moving an ACK from one buffered
344      packet to another.
345
3462020-08-06
347    - 2.19.4
348    - [BUGFIX] Do not return an oversize MTU probe to connection twice.
349    - [FEATURE] Delayed Acks updated to latest draft.  Still experimental.
350    - Minor code cleanup in IETF full connection.
351
3522020-08-04
353    - 2.19.3
354    - [BUGFIX] Regression in 2.19.1 that breaks Q050
355
3562020-07-30
357    - 2.19.2
358    - [BUGFIX] Do not reduce PLPMTU size by network overhead.
359    - [BUGFIX] Windows build.
360
3612020-07-29
362    - 2.19.1
363    - [FEATURE] DPLPMTUD support.  IETF connections now search for the
364      maximum packet size, improving throughput.
365    - [DEBUG] Record event in stream history when on_close() is called
366      in dtor.
367
3682020-07-22
369    - 2.18.2
370    - [BUGFIX] Send prediction: lone path challenges do not get squeezed out
371    - Fix crash in http_client: now -K and -B can be used simultaneously
372
3732020-07-14
374    - 2.18.1
375    - [FEATURE] Implement the "QUIC bit grease" extension.
376    - [BUGFIX] Selecting CID used for logging on client.
377    - [BUGFIX] Header protection assertion.
378    - [BUGFIX] Server: enable SSL key logging when cert lookup callback
379      is not set.
380    - Remove some dead code.
381
3822020-07-06
383    - 2.18.0
384    - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT"
385      always refers to early data, meaning a request that the server can
386      reply to in the very first return flight.  A more appropriate name
387      for what we support on the client site is "session resumption," which
388      is standard TLS terminology.  Later, when we add support for 0-RTT
389      (early data), we can use the 0-RTT terminology again, this time in
390      proper context.
391    - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL.
392    - [BUGFIX] Make connection tickable when it's marked as closed.
393    - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode.
394    - Several documentation fixes and improvements.
395    - Minor code cleanup.
396
3972020-06-24
398    - 2.17.2
399    - [BUGFIX] Infinite loop in stream: advance read offset when discarding
400      data.
401    - [OPTIMIZATION] Header protection: only initialize cipher once.
402    - [OPTIMIZATION] Batch header protection application.
403
4042020-06-18
405    - 2.17.1
406    - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support.
407    - [BUGFIX] Check that scheduled packets are also sendable when
408      calculating a connection's "tickable" property.
409    - [BUGFIX] Don't count scheduled packets as in-flight when pacer is
410      checked on tick.
411    - gQUIC: delay calling on_new for pushed stream until headers are
412      available.
413    - Allow nested calls to lsquic_engine_connect().
414
4152020-06-15
416    - 2.16.3
417    - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn
418      instead of dropping them.
419    - [BUGFIX] Crash: check decrypt context before using it.  This regression
420      was introduced in 2.16.2.
421
4222020-06-12
423    - 2.16.2
424    - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in
425      ClientHello.  This change requires using a newer version of BoringSSL.
426    - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor.
427    - [BUGFIX] IETF QUIC client: narrow migration check to a single path.
428    - [BUGFIX] NULL dereference: set function pointers for alarm for path
429      challenges 2 and 3.
430    - [BUGFIX] HTTP/3 headers may be followed immediately by trailers.
431    - [BUGFIX] Log messages when SCID changes.
432
4332020-06-09
434    - 2.16.1
435    - [FEATURE] Use "no-progress timeout" after which connection is closed.
436    - [BUGFIX] Select new SCID when current SCID is retired.
437    - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during
438      mini/full handoff.
439    - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated.
440    - [BUGFIX] Mini conn: consider amplification when deciding to return
441      TICK_SEND.
442    - [BUGFIX] Don't double-count tag length in amplification logic.
443    - [BUGFIX] Don't squeeze out lone path challenges.
444    - [BUGFIX] Log messages dealing with scheduled packet queue squeezing.
445    - [BUGFIX] don't wipe current path if no path challenge responses
446      come back.
447    - [BUGFIX] When path is reset, don't lose path_id which is used for
448      logging.
449    - Downgrade flow control violations to info log level from warnings.
450    - Fix connection cap extra check, avoid checks in nested calls.
451    - Fix some unit tests when extra checks are enabled.
452    - Use ls-hpack 2.2.1.
453    - Turn off unconditional extra checks for IETF clients.
454    - Extra checks: don't verify sent size of hello packets.  Client
455      changes DCID length and this check will fail.
456
4572020-06-03
458    - 2.16.0
459    - [API] Use lsxpack_header v206.
460    - [FEATURE] Windows supported.
461    - [BUGFIX] Fix uninitialized variable use in client (regression in
462      2.15.0).
463    - Use ls-hpack 2.2.0.
464    - Use ls-qpack 2.2.0.
465    - Sample programs: fix the way maximum number of packets is
466      calculated.
467    - Remove some dead code.
468
4692020-05-27
470    - 2.15.0
471    - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support.
472    - [BUGFIX] Ignore Retry packets after other packets are decrypted
473      successfully.
474    - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte
475      length minimum.
476    - http_client: fix and optimize lsxpack_header allocator.
477    - Drop support for Internet Draft 25.
478
4792020-05-19
480    - 2.14.8
481    - Support Android.
482    - Rerrange tree: move command-line examples into bin/ and unit
483      tests into tests/ from test/unittests/.
484
4852020-05-12
486    - 2.14.7
487    - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050.
488    - [BUGFIX] Frame reader: skip headers if target stream is closed.
489
4902020-05-06
491    - 2.14.6
492    - [BUGFIX] Fix amplification mitigation in 0-RTT case.
493    - [BUGFIX] IETF mini connection should not tickable if cannot send
494      a packet due to amplification.
495    - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2.
496    - [BUGFIX] Qlog server certificates for IETF QUIC connections.
497    - [BUGFIX] Uninitialized struct padding usage in tokgen (benign).
498    - [BUGFIX] Incorrect argument to shi_lookup() (benign).
499
5002020-04-29
501    - 2.14.5
502    - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match.
503    - [BUGFIX] Frame reader: skip headers if target stream is not found.
504    - [BUGFIX] Log message in QPACK decoder handler.
505
5062020-04-24
507    - 2.14.4
508    - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams.
509    - [BUGFIX] IETF client: set correct flags on bidirectional streams.
510    - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned
511      streams.
512    - [BUGFIX] Do not call header callbacks after stream is closed.
513    - Use ls-qpack 2.1.1
514
5152020-04-15
516    - 2.14.3
517    - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback.
518    - [BUGFIX] Use ls-hpack 2.1.1
519    - Improve stream code readability.
520    - Use ls-qpack 2.0.5
521
5222020-04-08
523    - 2.14.2
524    - [BUGFIX] Use ls-qpack 2.0.4
525    - [BUGFIX] Honor max packet size on the client and when path changes.
526    - http_server: fix prepare_decode() function.
527
5282020-04-07
529    - 2.14.1
530    - [BUGFIX] Place connections on tickable queue when sending is reenabled.
531    - [BUGFIX] A connection is tickable if it has unsent packets.
532    - [BUGFIX] Heed peer's max_packet_size transport parameter.
533
5342020-03-30
535    - 2.14.0
536    - [API] Use lsxpack_header structure to send HTTP headers.
537    - [OPTIMIZATION] nocopy's readable_bytes() function.
538    - http_server: fix typo in error message
539    - Use ls-hpack 2.1.0.
540    - Use ls-qpack 2.0.0.
541
5422020-03-23
543    - 2.13.3
544    - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked.
545
5462020-03-13
547    - 2.13.2
548    - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode().
549
5502020-03-12
551    - 2.13.1
552    - [API] Use lsxpack_header structure to process incoming headers.
553    - [BUGFIX] Fix assertion when zero-padding Initial packet.
554    - [BUGFIX] Use idle timeout before we learn of peer's value.
555    - Use ls-hpack 2.0.1 -- has lsxpack_header changes.
556    - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not
557      used yet).
558    - Code cleanup: prefix exported functions with "lsquic_".
559
5602020-03-02
561    - 2.12.0
562    - [FEATURE] QUIC timestamps extension.
563    - [API] New: ea_alpn that is used when not in HTTP mode.
564    - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC.
565    - [BUGFIX] Benign double-free -- issue #110.
566    - [BUGFIX] Printing of transport parameters.
567
5682020-02-24
569    - 2.11.1
570    - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support.
571    - [FEATURE] Add experimental delayed ACKs extension.
572    - Drop support for Internet Draft 24.
573    - Code cleanup.
574
5752020-02-14
576    - 2.10.6
577    - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error.
578    - [BUGFIX] Send gap warning due to missing poisoned packet.
579    - Stream unit test for scenario in issue #106.
580
5812020-02-13
582    - 2.10.5
583    - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct
584      time.
585    - Refactor transport parameters module.
586    - Minor code cleanup.
587
5882020-02-11
589    - 2.10.4
590    - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received.
591    - [BUGFIX] Don't treat garbage UDP padding as library error; ignore
592      it instead.
593    - [BUGFIX] Fix compilation on FreeBSD (missing header).
594    - Code cleanup: remove unnecessary #includes.
595
5962020-01-31
597    - 2.10.3
598    - [BUGFIX] Cancel path responses and challenges on old path when
599      switching to new path
600    - Logging network path information.
601
6022020-01-30
603    - 2.10.2
604    - [BUGFIX] Do not delay ACKs for Initial and Handshake packets.
605    - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn
606      promotion.
607    - Logging improvements.
608    - http_client: discard data faster.
609
6102020-01-29
611    - 2.10.1
612    - [BUGFIX] Coalesced packets could get longer than normal packet
613      size.
614    - Add spin bit configuration option es_spin (-o spin=[01]).
615    - Disable spin bit in 1/16 of connections.
616    - Improve logging a bit.
617
6182020-01-28
619    - 2.10.0
620    - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support.
621    - [API] Drop support for ID-23.
622    - [BUGFIX] Set key phase bit on outgoing packets correctly.
623    - Code cleanup.
624
6252020-01-20
626    - 2.9.0
627    - [API] Drop support for Q039.
628    - Improve ACK-queuing logic.  Send an ACK once in a while if
629      peer keeps on sending non-ack-eliciting packets.
630    - Improve Alt-Svc string: Q050 and later are not included in
631      the old-style "quic" string.
632    - Send stateless resets if connection could not be promoted.
633    - Schedule MAX_DATA if needed when DATA_BLOCKED is received.
634    - Use ls-qpack 0.11.2 -- needed for server push optimization.
635    - Code cleanup: handle some error cases, improve logging.
636
6372020-01-16
638    - 2.8.9
639    - [BUGFIX] Use ls-qpack 0.11.1
640    - [OPTIMIZATION] Generate random bytes in batches.
641    - Change loss_bits transport parameter ID to 0x1057 following
642      latest draft.
643    - Randomize period with which PINGs are sent to elicit ACKs.
644    - Some refactoring and code cleanup.
645
6462020-01-14
647    - 2.8.8
648    - [BUGFIX] Invalid read when parsing IETF transport parameters
649      (this was benign).
650    - [OPTIMIZATION] Frame bundling when using buffered packets in
651      IETF QUIC: a) flush QPACK decoder stream and b) include ACKs
652      in opportunistic fashion.
653    - Fix HTTP/3 framing unit test.
654    - Code cleanup.
655
6562020-01-09
657    - 2.8.7
658    - [BUGFIX] Initial packet size check for IETF mini conn applies to
659      UDP payload, not QUIC packet.
660    - Support old and new school loss_bits transport parameter.
661    - Use Q run length of 64 as suggested in the loss bits Draft.
662    - Undo square wave count when packet is delayed.
663    - Code cleanup; minor fixes.
664
6652020-01-06
666    - 2.8.5
667    - [HTTP3] Verify number of bytes in incoming DATA frames against
668      content-length.
669    - [HTTP3] Stop issuing streams credits if peer stops opening QPACK
670      decoder window.  This addresses a potential attack whereby client
671      can cause the server to keep allocating memory.  See Security
672      Considerations in the QPACK draft.
673    - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later.
674    - [BUGFIX] Init IETF connection flow controller using correct setting.
675    - [BUGFIX] Fix unintended sign extension when removing header protection.
676    - Code cleanup and minor fixes.
677
6782019-12-30
679    - 2.8.1
680    - [FEATURE] Use occasional packet number gaps to detect optimistic
681      ACK attacks.
682    - [BUGFIX] Q050 client: all packet numbers are in the App PNS.
683    - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range
684      ACK frames.
685    - IETF QUIC: use RTT estimate in ack timeout calculation.
686    - IETF handshake: abort conn when unexpected errors occur.
687    - Use PING rather than MAX_DATA frames to elicit ACKs from peer.
688    - Server: enforce 1200 byte Initial minimum packet size.
689    - [CLEANUP] Remove code to disable gQUIC crypto.
690    - [CLEANUP] Remove n_timestamps from ACK info struct.
691    - Optimize driver: reuse previous ancillary message when possible.
692
6932019-12-23
694    - 2.8.0
695    - [FEATURE] Add support for Q050.
696    - [OPTIMIZATION] Reduce mallocs in gQUIC handshake.
697    - [BUGFIX] Disable redo of failed STREAM frame insertion with debug
698      logging.
699
7002019-12-18
701    - 2.7.3
702    - [DEBUG] Further dedup next advisory tick messages when reason is
703      the same.
704    - [BUGFIX] Update size of `a` array in TP struct.  Fixes (benign)
705      GitHub bug #94.
706    - Use Cubic by default again instead of BBR, as it delivers more
707      consistent performance.
708
7092019-12-11
710    - 2.7.2
711    - [BUGFIX] Send controller: update scheduled bytes when DCID length
712      changes (IETF client).
713    - [BUGFIX] Drop alarm check from sanity test.  It no longer works now
714      that we use loss chains.
715    - [PORTABILITY] Fix build on Alpine Linux.
716    - [PORTABILITY] Fix build using XCode.
717    - Client initial DCID length: use RAND_bytes() instead of rand(3).
718    - Add unit tests for connection min heap.
719    - [DEBUG] Log CID in gQUIC handshake module
720    - [DEBUG] Turn on extra checks for IETF client send controller.
721    - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer.
722    - [DEBUG] QPACK decoder handler: log header error code.
723
7242019-12-05
725    - 2.7.1
726    - [BUGFIX] client: don't call ignore_init() in middle of batch send.
727      ignore_init() makes an assumption that the send controller has access
728      to all outgoing packets.  This change wraps a few IETF full connection
729      methods to delay calling ignore_init() until the engine returns all
730      outgoing packets that were batched.
731    - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them.
732      This needs to be done because the value of errno may be lost on
733      some platforms.
734    - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes.
735    - [BUGFIX] Do not cancel header block processing after failure, as
736      QPACK releases the reference in that case.
737    - [CLEANUP] IETF encrypt: replace assert(0) with a warning.
738    - Several small improvements to the test server.
739
7402019-11-27
741    - 2.7.0
742    - [API, FEATURE] Close connection immediately when ea_packets_out()
743      fails with errno != EAGAIN.  The API change is that errno is now
744      examined.  Make sure to set it if using something other than
745      sendmsg() to send packets.
746    - [CLEANUP] Immediate close logic in IETF full conn.
747    - [CLEANUP] Fix bogus warning about uninitialized `pair' variable.
748
7492019-11-22
750    - 2.6.7
751    - [FEATURE] Implement the QL extension (offered by default).
752    - [BUGFIX] Abort when encountering unexpected HTTP/3 frames.
753    - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly.
754    - [DEBUG] Turn on debug message for next advisory tick.
755
7562019-11-20
757    - 2.6.6
758    - [BUGFIX] Using HTTP/3 to HTTP/1.x converter.
759    - [BUGFIX] Truncate log messages instead of throwing them away.
760
7612019-11-15
762    - 2.6.5
763    - [BUGFIX] High priority buffered packet queue length.
764    - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds.
765
7662019-11-12
767    - 2.6.3
768    - [BUGFIX] Close DATA frames with empty payload correctly.
769
7702019-11-11
771    - 2.6.2
772    - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular
773      packets.
774    - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets.
775    - [BUGFIX] Truncate ACK frame rather instead of aborting IETF
776      connection.
777    - [BUGFIX] Client: don't send duplicate reset tokens.
778    - [BUGFIX] Remove invalid assertion in H3 framing code.
779    - Silence a warning in send ctl by restructuring switch() statement.
780
7812019-11-08
782    - 2.6.1
783    - [BUGFIX] set retry token on all resubmitted packets.
784    - Event log: log sent packet flags.  In particular, this allows one
785      to see whether token was sent.
786    - Don't migrate client if es_allow_migration is false.
787
7882019-11-07
789    - 2.6.0
790    - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support
791
7922019-11-07
793    - 2.5.2
794    - [BUGFIX] argument order to gQUIC client constructor.  Regression
795      introduced in 2.5.0.
796    - [BUGFIX] split buffered packet error recovery: destroy the correct
797      packet.
798
7992019-11-04
800    - 2.5.1
801    - [BUGFIX] Fix double-free when emptying a packet number space.
802    - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly.
803    - [BUGFIX] Use random values in bits 4 and 5 of the first byte of
804      verneg packets (regression introduced in 2.5.0).
805    - [OPTIMIZATION] Don't compile in expensive attq checks by default.
806    - [OPTIMIZATION] http_server: compile regexes only once.
807
8082019-10-31
809    - 2.5.0
810    - [API] lsquic_engine_connect() can now be passed QUIC version to use.
811    - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent.
812    - [BUGFIX] Don't evict streams from priority iterator if there is
813      only one queue.
814    - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes.
815    - Use ls-qpack v0.10.7.
816
8172019-10-24
818    - 2.4.10
819    - [BUGFIX] IETF QUIC server: fix uninitialized variable use.
820    - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object.
821    - [BUGFIX] Use issuer name and serial number to cache certs (SKID
822      values are not unique).
823    - [BUGFIX] Always set the idle alarm in IETF connection so that it
824      can time out.
825    - Use ls-qpack v0.10.6, as it silences some warnings.
826
8272019-10-21
828    - 2.4.8
829    - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5.
830
8312019-10-15
832    - 2.4.7
833    - Add echo client and server to the distibution.
834    - Add MD5 client and server to the distibution.
835    - Fix http_client: check command-line arguments better, prevent crash.
836    - Fix IETF conn: can_write_ack() should only care about APP PNS.
837    - Client: delay stream creation until handshake succeds.
838    - Reset HTTP stream whose write end is closed prematurely.
839    - Fix tickable(): mirror behavior of tick() wrt buffered packets.
840    - Log reason why engine is tickable.
841
8422019-10-11
843    - 2.4.6
844    - Minor code cleanup and logging improvements.
845    - Server and client programs: include library version (e.g. 2.4.6)
846      into `server' and `user-agent' headers.
847
8482019-10-08
849    - 2.4.5
850    - [OPTIMIZATION]: flush encoder stream only when necessary.
851    - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix.
852    - [BUGFIX] Typo in IETF conn SETTINGS writer.
853    - Use latest BoringSSL.
854
8552019-10-08
856    - 2.4.4
857    - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header.
858    - [BUGFIX] NULL dereference when H3 frame header would be split.
859    - [BUGFIX] Do not close fixed-size H3 frame prematurely.
860    - [BUGFIX] Allow PING frames in IETF mini conn.
861    - [BUGFIX] Mini conns: don't send any packets after receiving
862      CONNECTION_CLOSE.
863    - [BUGFIX] Client migration: reserve slot for DCID from transport params.
864    - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there.
865    - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a
866      valid stream number).
867    - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected.
868    - [OPTIMIZATION] Closed connection only gets one chance to send packets.
869    - [OPTIMIZATION] Flush headers stream before packetizing stream data.
870    - [OPTIMIZATION] process QPACK encoder STREAM frames immediately.
871    - Update ls-qpack to v0.10.1.
872
8732019-09-30
874    - 2.4.3
875    - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header.
876      For example, h3-Q043.  Chrome will switch to using this format at
877      some point in the future.
878    - [BUGFIX] Send correct value in max_streams_uni transport param
879    - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set
880      to 0xFFFFFFFF
881
8822019-09-23
883    - 2.4.2
884    - [BUGFIX] H3 framing: fix zero-byte write when space is available
885    - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream
886      is closed
887    - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY
888    - [BUGFIX] Fix use-after-free in IETF full conn
889    - [OPTIMIZATION] Wait for session tickets for two seconds and then drop
890      SSL object and crypto streams.
891
8922019-09-18
893    - 2.4.0
894    - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support
895
8962019-09-13
897    - 2.3.1
898    - [BUGFIX] Fix memory leaks
899    - [BUGFIX] Fix unit tests
900
9012019-09-12
902    - 2.3.0
903    - [FEATURE] BBR congestion control is on by default
904    - [BUGFIX] BBR app-limited logic
905    - [BUGFIX] Fix uninitialized warnings in IETF
906    - [BUGFIX] Update ls-qpack to v0.9.14
907    - [CLEANUP] Code cleanup
908
9092019-09-11
910    - 2.2.0
911    - [FEATURE] Server code is included in the library
912    - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22)
913
9142019-05-13
915    - 1.21.2
916    - [OPTIMIZATION] HPACK: use history to improve compression performance
917
9182019-05-06
919    - 1.21.1
920    - [BUGFIX] If FIN or RST not received, don't delay stream destruction.
921    - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to
922      search static and dynamic tables.
923
9242019-04-12
925    - 1.21.0
926    - [FEATURE] Add qlog log module.
927
9282019-04-01
929    - 1.20.0
930    - [FEATURE] Add support for Q046.
931
9322019-03-19
933    - 1.19.6
934    - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we
935      send.  ACK frames placed in packets in buffered queues (optimization
936      introduced in 1.17.15) can be preceded by an ACK frame generated later.
937      In this case, the older ACK frame should not be sent out, as Chromium-
938      based servers flags decrease in the ACK frame's Largest Observed value
939      as an error.
940
9412019-03-05
942    - 1.19.5
943    - [BUGFIX] Use correct public key from PUBS based on KEXS index.
944    - [BUGFIX] Check flags before dispatching writes, avoiding assert.
945    - [BUGFIX] Set :scheme to "https" (instead of "HTTP").
946
9472019-02-25
948    - 1.19.4
949    - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob.
950    - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed.
951    - Log number of pacer calls at DEBUG, rather than NOTICE, level.
952
9532019-02-18
954    - 1.19.3
955    - [BUGFIX] Q044: don't encode packet number in 6 bytes.  Six-byte
956      packet number encoding does not exist in Q044.  This fixes a
957      regression introduced in '[BUGFIX] Buffered packets can contain
958      ACK frames' -- we need to keep QUIC version in mind when selecting
959      the longest possible packet number encoding used for the buffered
960      packet that carries the ACK.
961    - [BUGFIX] Do not increase CWND when timeout occurs.
962    - http_client: support setting handshake timeout on command line.
963      Use -o handshake_to=timeout.
964    - http_client: use -k to connect UDP socket to pick up ICMP errors.
965    - http_client: allow pathless mode, when only handshake is performed
966      without issuing any requests.  This can be done by simply not
967      specifying a -p flag on the command line.
968
9692019-02-11
970    - 1.19.2
971    - [BUGFIX] Begin negotiation with version provided in 0-RTT info.
972    - [BUGFIX] Version checking in zero_rtt deserialize function.
973
9742019-02-04
975    - 1.19.1
976    - [BUGFIX] Fix Windows build.
977
9782019-02-04
979    - 1.19.0
980    - [FEATURE, API Change] 0-RTT support.  Add function to export 0-RTT
981      information; it can be supplied to a subsequent connect() call.
982    - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support.
983    - [BUGFIX] Resuscitate the Windows build.
984    - [BUGFIX] Send HTTP settings (max header list size) if necessary.
985    - [BUGFIX] Buffered packets can contain ACK frames.
986    - [BUGFIX] Make packet writeable once all STREAM frames are elided.
987    - [BUGFIX] Fix potential null dereference when realloc fails.
988    - cmake: simplify build configuration.
989
9902019-01-28
991    - 1.18.0
992    - [API Change] Can specify clock granularity in engine settings.
993    - [BUGFIX] Pacer uses fixed clock granularity.  Since the change on
994      2018-04-09, it is not necessary to try to approximate the next tick
995      time in the pacer: it can use fix clock granularity specified by
996      the user.
997    - [BUGFIX] Do not tick constantly before handshake is done.
998    - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK.  Even
999      if we cannot allocate *more* packets, we could still be able to write
1000      to one already allocated.
1001    - [BUGFIX] Do not schedule pacer if there are no lost packets.
1002
10032019-01-17
1004    - 1.17.15
1005    - [BUGFIX] http_client: make sure only one read per on_read() callback
1006      is performed in the header conversion bypass (-B) mode.
1007    - http_client: with -E, assign random priority when stream is created.
1008    - [OPTIMIZATION] On immediate write, place an ACK frame into the first
1009      buffered packet if an ACK is queued.  This reduces the number of
1010      standalone ACK packets.
1011    - [OPTIMIZATION] Allow placing more than one STREAM frame from the same
1012      stream into an outgoing packet.  This change minimizes the number of
1013      buffered packets required to store several small HTTP messages by
1014      virtue of allowing more than one STREAM frame from HEADERS stream in
1015      the same packet.
1016    - [OPTIMIZATION] Flush headers when writing to buffered packets.  This
1017      causes the headers to be written to the same buffered packet queue,
1018      thereby improving packet utilization, especially for small HTTP
1019      messages.
1020
10212019-01-16
1022    - 1.17.14
1023    - [FEATURE] http_client can now collect stats: time to connect, TTFB,
1024      time to download, requests per seconds, and bandwidth.  See -t flag.
1025    - [BUGFIX] http_client: -B, -K, and -r can be used at the same time.
1026    - [BUGFIX] http_client: do not display cert chain before each request.
1027      Now this is only done once per connection, if the handshake is
1028      successful and -a option is given.
1029    - [BUGFIX] Do not wait to dispatch on_close() after reading.  If a
1030      stream is scheduled to be closed after on_read() callback returns,
1031      close it immediately instead of waiting until the end of the tick.
1032      If client creates new request from on_close() event, they will be
1033      processed in the same tick instead of waiting for the next one.
1034    - [BUGFIX] HEADERS stream is critical: always treat it with highest
1035      priority.
1036
10372019-01-10
1038    - 1.17.12
1039    - [FEATURE] http_client can now issue parallel requests in the context
1040      of a single connection.  See -w option.
1041
10422019-01-03
1043    - 1.17.11
1044    - Fix strict aliasing warning in optimized compilation.
1045
10462018-12-27
1047    - 1.17.10
1048    - Fix the example program to be able to use parallel connections
1049      again.  (See the -n argument.)
1050
10512018-12-18
1052    - 1.17.9
1053    - [BUGFIX] Engine: reduce minimum batch size from 256 to 4
1054
10552018-12-10
1056    - 1.17.8
1057    - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux
1058
10592018-12-03
1060    - 1.17.7
1061    - [BUGFIX] Do not unset PING alarm before ringing expired alarms.
1062      This prevented PING from ever being sent.
1063
10642018-11-29
1065    - 1.17.6
1066    - Add failsafe: resume sending packets after some time
1067
1068      The change puts a 1-second limit on the amount of time the engine
1069      will not send packets after some packets are delayed.  This makes
1070      the library robust in case the user does not unblock the engine
1071      explicitly using lsquic_engine_send_unsent_packets() call.
1072
1073    - [BUGFIX] Handle corner cases in send controller when packets are
1074      a) delayed or b) dropped during repackaging.
1075    - [BUGFIX] Memory leak: destroy buffered packets during controller
1076      cleanup.
1077
10782018-11-16
1079    - 1.17.3
1080    - [BUGFIX] Do not send STOP_WAITING frames when using Q044
1081
10822018-10-19
1083    - 1.17.2
1084    - [BUGFIX] Memory leak in test_frame_rw unit test.
1085    - [BUGFIX] Parsing packets with short IETF header: do not overwrite
1086      flags.  (Only a problem in unit tests -- benign otherwise.)
1087
10882018-10-16
1089    - 1.17.0
1090    - [API Change] Packet out Memory Interface (PMI) update:
1091      - Split PMI pool return into pmi_release and pmi_return
1092      - PMI callbacks take peer_ctx and is_ipv6 arguments
1093    - [BUGFIX] Fix use-after-free when certificate is updated
1094    - Silence gcc warning in optimized mode by performing useless
1095      initialization
1096    - cmake: use the standard variable CMAKE_BUILD_TYPE instead of
1097      DEVEL_MODE
1098
10992018-10-03
1100    - 1.16.0
1101    - [API Change] Add lsquic_conn_n_avail_streams()
1102    - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on
1103
11042018-09-27
1105    - 1.15.0
1106    - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses
1107    - [BUGFIX] free uncompressed headers correctly when error occurs
1108
11092018-09-12
1110    - 1.14.3
1111    - [BUGFIX] Do not abort conn on STREAM frame for a reset stream
1112    - [BUGFIX] Drop packets that would become empty due to repackaging.
1113      Packets on the scheduled queue may be marked for repackaging.
1114      Frames such as ACK frame that are never resent are removed from
1115      repackaged packets.  We must check that the newly repackaged packet
1116      would not be empty.  If it would be, it is destroyed instead and
1117      the next packet on the scheduled queue is used.  Note that this
1118      change only affects the logic to return the next packet to be sent.
1119      Lost packets that are being rescheduled are already processed in
1120      this fashion.
1121    - Byteswap CID before logging it - this makes it match Chrome CIDs.
1122      (Except Q035, which is the last little-endian GQUIC version we
1123      support.)
1124
11252018-09-06
1126    - 1.14.0
1127    - [API Change] Disable packet sending if full batch cannot be sent
1128      If lsquic_packets_out_f() cannot send the whole batch, disable
1129      packet sending until lsquic_engine_send_unsent_packets() is called.
1130    - [BUGFIX] Handle case when STREAM frame does not fit.
1131    - [BUGFIX] Always allow incoming STREAM frames to overlap.  Peers
1132      may send overlapping STREAM frames even if using versions older
1133      than Q043.
1134    - Custom header set fixes:
1135      - set "FIN reached" flag when custom header with FIN flag is
1136        claimed;
1137      - do not return custom header set for a reset stream.
1138
11392018-08-27
1140
1141    - 1.13.0
1142    - [FEATURE, API Change] Add ability to create custom header set
1143      objects via callbacks.  This avoids reading and re-parsing
1144      headers from the stream.
1145
11462018-08-27
1147
1148    - 1.12.4
1149    - Fix memory leak when engine is destroyed
1150    - Fix memory leak in http_client
1151    - Fix gcc warning in unit tests
1152
11532018-08-22
1154
1155    - 1.12.3
1156    - [BUGFIX] Fix duplicate STREAM frame detection
1157
11582018-08-20
1159
1160    - 1.12.2
1161    - [BUGFIX] Update count of scheduled bytes when adjusting size of
1162      an already-scheduled packet.
1163    - Emit info instead of warning messages when stream is used in
1164      unexpected ways.
1165
11662018-08-17
1167
1168    - 1.12.0
1169    - [FEATURE, API Change] Add support for certificate verification
1170
11712018-08-16
1172
1173    - 1.11.1
1174    - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code
1175
11762018-08-15
1177
1178    - 1.11.0
1179    - [FEATURE] Add support for Q044.
1180
11812018-08-09
1182
1183    - 1.10.2
1184    - [BUGFIX] Don't go over limit when creating delayed streams
1185
11862018-07-10
1187
1188    - 1.10.1
1189    - [BUGFIX]  process connections after each batch of packets is read
1190      This avoids a problem of accumulating a very large list of packets
1191      (possible when speeds are high and socket's receive buffer is large)
1192      and processing it all at once.
1193    - If glibc is older than 2.17, link with rt.  This is necessary for
1194      clock_getres(2).
1195    - Add version macros to lsquic.h; remove unnecessary includes.
1196
11972018-06-13
1198
1199    - [BUGFIX] allow multiple parallel connections by default
1200
1201      Use the original method of tracking connections by CIDs by default.
1202      If zero-sized CID support is turned on, connections are tracked by
1203      the address.  A new connection is not created if another connection
1204      is using the same network address
1205
12062018-05-30
1207
1208    - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets
1209
12102018-05-24
1211
1212    - Close connection properly when packet encryption fails
1213
12142018-05-23
1215
1216    - [BUGFIX] Do not produce packet sequence gaps due to delayed packets
1217
12182018-05-21
1219
1220    - [API Change] Add optional callback to call when handshake is done
1221    - [API Change, BUGFIX] After send failure, wait until transport available
1222
12232018-05-18
1224
1225    - [API] Expose useful lsquic_ver2str[] in lsquic.h
1226    - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision
1227    - Improve checks of number of incoming streams limit and associated
1228      error reporting.
1229    - [BUGFIX] Command-line option `-6` now works correctly.
1230
12312018-05-16
1232
1233    - [FEATURE] DNS resolution
1234    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
1235    - http_client: fix priority range generated by -E flag
1236
12372018-05-09
1238
1239    - [FEATURE] Add support for Q043.
1240    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
1241    - Fix typo in debug message.
1242    - Fix code indentation.
1243    - Add /* fallthru */ comment to stop newer gcc from complaining.
1244    - Logger: fix compilation of optimized Windows build.
1245
12462018-05-04
1247
1248    - [FEATURE] Add support for Q042.
1249    - Remove comment: MSPC is obsolete (no code changes)
1250    - Prog: use lsquic_str2ver() when processing -o version flag
1251    - Remove unused CTIM and SRBF transport parameters
1252    - Disable QUIC versions Q037 and Q038 by default
1253    - Fix Windows compilation by including compat header file in
1254      lshpack.c
1255    - Address warnings produced by newer versions of gcc
1256    - Future-proof: turn off -Werror
1257
12582018-05-02
1259
1260    - [BUGFIX] Make lsquic_conn_quic_version() available
1261    - Switch to using ls-hpack 1.1
1262    - [BUGFIX] Do not ignore stream resets after receiving FIN
1263
12642018-04-27
1265
1266    - HPACK: do not allow header block to end with table size update.
1267
12682018-04-25
1269
1270    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
1271      packets.
1272    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
1273    - [BUGFIX] connections with blocked scheduled packets are not tickable
1274      for sending.
1275    - [BUGFIX] Conn is tickable if it wants to send a connection-level
1276      frame.
1277
12782018-04-23
1279
1280    - Fix busy loop: tickable must make progress.  When connection is
1281      self-reporting as tickable, it must make progress when ticked.  There
1282      are two issues:
1283        1. If there are buffered packets, the connection is only tickable if
1284           they can be sent out.
1285        2. A connection is tickable if there are streams on the servicing
1286           queue.  When the tick occurs, we must service the stream
1287           independent of whether any packets are sent.
1288    - Fix assertion in pacer which can be incorrect under some
1289      conditions.
1290    - cmake: do not turn on address sanitizer if in Travis.
1291
12922018-04-20
1293
1294    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
1295      changes.
1296
12972018-04-19
1298
1299    - [BUGFIX] Add connection to Tickable Queue on stream write
1300    - cmake: use MSVC variable instead of trying to detect
1301    - engine: improve connection incref/decref logging
1302    - stream: don't ignore errors that may occur on triggered flush
1303    - connection: remove obsolete method
1304    - engine: indicate connection as tickable if previous call went
1305      over threshold
1306
13072018-04-09
1308
1309    [API Change, OPTIMIZATION] Only process conns that need to be processed
1310
1311    The API is simplified: do not expose the user code to several
1312    queues.  A "connection queue" is now an internal concept.
1313    The user processes connections using the single function
1314    lsquic_engine_process_conns().  When this function is called,
1315    only those connections are processed that need to be processed.
1316    A connection needs to be processed when:
1317
1318        1. New incoming packets have been fed to the connection.
1319        2. User wants to read from a stream that is readable.
1320        3. User wants to write to a stream that is writeable.
1321        4. There are buffered packets that can be sent out.  (This
1322           means that the user wrote to a stream outside of the
1323           lsquic library callback.)
1324        5. A control frame (such as BLOCKED) needs to be sent out.
1325        6. A stream needs to be serviced or delayed stream needs to
1326           be created.
1327        7. An alarm rings.
1328        8. Pacer timer expires.
1329
1330    To achieve this, the library places the connections into two
1331    priority queues (min heaps):
1332
1333        1. Tickable Queue; and
1334        2. Advisory Tick Time queue (ATTQ).
1335
1336    Each time lsquic_engine_process_conns() is called, the Tickable
1337    Queue is emptied.  After the connections have been ticked, they are
1338    queried again: if a connection is not being closed, it is placed
1339    either in the Tickable Queue if it is ready to be ticked again or
1340    it is placed in the Advisory Tick Time Queue.  It is assumed that
1341    a connection always has at least one timer set (the idle alarm).
1342
1343    The connections in the Tickable Queue are arranged in the least
1344    recently ticked order.  This lets connections that have been quiet
1345    longer to get their packets scheduled first.
1346
1347    This change means that the library no longer needs to be ticked
1348    periodically.  The user code can query the library when is the
1349    next tick event and schedule it exactly.  When connections are
1350    processed, only the tickable connections are processed, not *all*
1351    the connections.  When there are no tick events, it means that no
1352    timer event is necessary -- only the file descriptor READ event
1353    is active.
1354
1355    The following are improvements and simplifications that have
1356    been triggered:
1357
1358        - Queue of connections with incoming packets is gone.
1359        - "Pending Read/Write Events" Queue is gone (along with its
1360          history and progress checks).  This queue has become the
1361          Tickable Queue.
1362        - The connection hash no longer needs to track the connection
1363          insertion order.
1364
13652018-04-02
1366
1367    - [FEATURE] Windows support
1368
1369    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
1370
13712018-03-09
1372
1373    - [OPTIMIZATION] Merge series of ACKs if possible
1374
1375      Parsed single-range ACK frames (that is the majority of frames) are
1376      saved in the connection and their processing is deferred until the
1377      connection is ticked.  If several ACKs come in a series between
1378      adjacent ticks, we check whether the latest ACK is a strict superset
1379      of the saved ACK.  If it is, the older ACK is not processed.
1380
1381      If ACK frames can be merged, they are merged and only one of them is
1382      either processed or saved.
1383
1384    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
1385
1386      Never generate a gap in the sent packet number sequence.  This reduces
1387      the send history to a single number instead of potentially a series of
1388      packet ranges and thereby speeds up ACK verification.
1389
1390      By default, detecting a gap in the send history is not fatal: only a
1391      single warning is generated per connection.  The connection can continue
1392      to operate even if the ACK verification code is not able to detect some
1393      inconsistencies.
1394
1395    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
1396
1397      The first part of struct lsquic_send_ctl now consists of members that
1398      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
1399      which is the normal case).  To speed up reads and writes, we no longer
1400      try to save space by using 8- and 16-bit integers.  Use regular integer
1401      width for everything.
1402
1403    - [OPTIMIZATION] Cache size of sent packet.
1404
1405    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
1406
1407      Instead of parsing our own ACK frames when packet has been acked,
1408      use the value saved in the packet_out structure when the ACK frame
1409      was generated.
1410
1411    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
1412
1413    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
1414
1415    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
1416
1417    - Fix: http_client: fix -I flag; switch assert() to abort()
1418
14192018-02-26
1420    - [API Change] lsquic_engine_connect() returns pointer to the connection
1421      object.
1422    - [API Change] Add lsquic_conn_get_engine() to get engine object from
1423      connection object.
1424    - [API Change] Add lsquic_conn_status() to query connection status.
1425    - [API Change] Add add lsquic_conn_set_ctx().
1426    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
1427    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
1428      arrives.
1429    - [OPTIMIZATION] Do not compile expensive send controller sanity check
1430      by default.
1431    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
1432    - [OPTIMIZATION] Only make squeeze function call if necessary.
1433    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
1434    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
1435    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
1436    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
1437    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
1438      ordered.
1439    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
1440    - Fix: reset incoming streams that arrive after we send GOAWAY.
1441    - Fix: delay client on_new_conn() call until connection is fully set up.
1442    - Fixes to buffered packets logic: splitting, STREAM frame elision.
1443    - Fix: do not dispatch on_write callback if no packets are available.
1444    - Fix WINDOW_UPDATE send and resend logic.
1445    - Fix STREAM frame extension code.
1446    - Fix: Drop unflushed data when stream is reset.
1447    - Switch to tracking CWND using bytes rather than packets.
1448    - Fix TCP friendly adjustment in cubic.
1449    - Fix: do not generate invalid STOP_WAITING frames during high packet
1450      loss.
1451    - Pacer fixes.
1452
14532017-12-18
1454
1455    - Fix: better follow cubic curve after idle period
1456    - Fix: add missing parts to outgoing packet splitting code
1457    - Fix: compilation using gcc 4.8.4
1458
14592017-10-31
1460
1461    - Add APIs.txt -- describes LSQUIC APIs
1462
14632017-10-31
1464
1465    - [API Change] Sendfile-like functionality is gone.  The stream no
1466      longer opens files and deals with file descriptors.  (Among other
1467      things, this makes the code more portable.)  Three writing functions
1468      are provided:
1469
1470        lsquic_stream_write
1471        lsquic_stream_writev
1472        lsquic_stream_writef    (NEW)
1473
1474      lsquic_stream_writef() is given an abstract reader that has function
1475      pointers for size() and read() functions which the user can implement.
1476      This is the most flexible way.  lsquic_stream_write() and
1477      lsquic_stream_writev() are now both implemented as wrappers around
1478      lsquic_stream_writef().
1479
1480    - [OPTIMIZATION] When writing to stream, be it within or without the
1481      on_write() callback, place data directly into packet buffer,
1482      bypassing auxiliary data structures.  This reduces amount of memory
1483      required, for the amount of data that can be written is limited
1484      by the congestion window.
1485
1486      To support writes outside the on_write() callback, we keep N
1487      outgoing packet buffers per connection which can be written to
1488      by any stream.  One half of these are reserved for the highest
1489      priority stream(s), the other half for all other streams.  This way,
1490      low-priority streams cannot write instead of high-priority streams
1491      and, on the other hand, low-priority streams get a chance to send
1492      their packets out.
1493
1494      The algorithm is as follows:
1495
1496      - When user writes to stream outside of the callback:
1497        - If this is the highest priority stream, place it onto the
1498          reserved N/2 queue or fail.
1499            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
1500             rather than N/2, allowing high-priority streams to write as
1501             much as can be sent.)
1502        - If the stream is not the highest priority, try to place the
1503          data onto the reserved N/2 queue or fail.
1504      - When tick occurs *and* more packets can be scheduled:
1505        - Transfer packets from the high N/2 queue to the scheduled
1506          queue.
1507        - If more scheduling is allowed:
1508          - Call on_write callbacks for highest-priority streams,
1509            placing resulting packets directly onto the scheduled queue.
1510        - If more scheduling is allowed:
1511          - Transfer packets from the low N/2 queue to the scheduled
1512            queue.
1513        - If more scheduling is allowed:
1514          - Call on_write callbacks for non-highest-priority streams,
1515            placing resulting packets directly onto the scheduled queue
1516
1517      The number N is currently 20, but it could be varied based on
1518      resource usage.
1519
1520    - If stream is created due to incoming headers, make headers readable
1521      from on_new.
1522
1523    - Outgoing packets are no longer marked non-writeable to prevent placing
1524      more than one STREAM frame from the same stream into a single packet.
1525      This property is maintained via code flow and an explicit check.
1526      Packets for stream data are allocated using a special function.
1527
1528    - STREAM frame elision is cheaper, as we only perform it if a reset
1529      stream has outgoing packets referencing it.
1530
1531    - lsquic_packet_out_t is smaller, as stream_rec elements are now
1532      inside a union.
1533
15342017-10-12
1535
1536    - Do not send RST_STREAM when stream is closed for reading
1537    - Raise maximum header size from 4K to 64K
1538    - Check header name and value lengths against maximum imposed by HPACK
1539    - Fix NULL dereference in stream flow controller
1540
15412017-10-09
1542
1543    - Hide handshake implementation behind a set of function pointers
1544    - Use monotonically increasing clock
1545    - Make sure that retx delay is not larger than the max of 60 seconds
1546
15472017-09-29
1548
1549    - A few fixes to code and README
1550
15512017-09-28
1552
1553    - Add support for Q041; drop support for Q040
1554
15552017-09-27
1556
1557    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
1558
15592017-09-26
1560
1561    - Add support for Mac OS
1562    - Add support for Raspberry Pi
1563    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
1564
15652017-09-22
1566
1567    - Initial release
1568