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