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