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