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