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