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