CHANGELOG revision 758aff32
12020-10-21
2    - 2.23.2
3    - Add QPACK stats collection and experimentation mode, see the new
4      es_qpack_experiment setting.
5    - Log busy connection stats every second using the new "conn-stats"
6      log module.
7    - Log about skipping only once.
8    - Update HTTP/3 greased frame type formula.
9    - Use ls-qpack v2.2.1.
10
112020-10-13
12    - 2.23.1
13    - [FEATURE] IETF Client 0-RTT support.
14    - [BUGFIX] Do not schedule MTU probe on first tick.
15    - [BUGFIX] Parsing DATAGRAM frame.
16    - [BUGFIX] If push promise fails, do not invoke hset destructor.
17    - [BUGFIX] Client: When connections are IDed by port number, check DCID.
18      Fixes issue #176.
19    - [BUGFIX] Regression introduced in 2.22.0: use correct number of
20      PNSs for IETF mini conn during promotion.
21    - Revert the 2.22.1 lsquic_is_valid_hs_packet change.  All that was
22      necessary is a change to the way we call it in lsquic_engine.  No
23      change to the function itself is required.
24
252020-10-08
26    - 2.22.1
27    - [BUGFIX] Function that checks validity of handshake packets.
28
292020-10-07
30    - 2.22.0
31    - [FEATURE] Extensible HTTP Priorities (HTTP/3 only).
32    - [FEATURE] Add conn context to packet-out memory interface (PR #175).
33    - [BUGFIX] gQUIC proof generation: allocate buffer big enough for
34      signature (issue #173).
35    - [BUGFIX] Make library thread-safe: drop use of global variables
36      (issue #133, issue #167).
37    - [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame.
38    - [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX,
39      instead of keeping them in a separate hash, potentially leading
40      to mismatches.
41    - [BUGFIX] Stream data discard infinite loop: break on FIN.
42    - cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171).
43    - Support randomized packet number to begin a connection.
44    - Mini and full IETF connection size optimization.
45    - http_client: specify HTTP priorities based on stream conditions.
46
472020-09-29
48    - 2.21.0
49    - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.
50    - [API] Let user generate Souce Connection IDs.
51    - [FEATURE] Allow building lsquic as shared library.
52    - [OPTIMIZATION] Receive history: use a single contiguous memory
53      block for everything.
54    - Deprecate QUIC versions ID-27 and ID-30.
55
562020-09-25
57    - 2.20.2
58    - [BUGFIX] Memory leak: free pushed promise when refcnt is zero.
59    - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets.
60
612020-09-23
62    - 2.20.1
63    - [BUGFIX] Typo in new "validate peer addr by DCID" code.  It is
64      a benign bug (works either way), but better to fix it.
65    - Simplify Stream Priority Iterator (SPI).
66    - Minor documentation updates.
67
682020-09-15
69    - 2.20.0
70    - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support.
71    - [FEATURE] Unreliable Datagram Extension support.
72    - [FEATURE] Adaptive congestion controller.
73    - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams.
74    - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO
75      data comes in.
76    - [BUGFIX] Spin bit is now strictly per path; value is reset on
77      DCID change.
78    - [BUGFIX] Check that max value of max_streams_uni and
79      max_streams_bidi TPs is 2^60.
80    - [BUGFIX] Close IETF mini conn immediately if crypto session
81      cannot be initialized.
82    - Deprecate ID-28 (no browser uses it): it's no longer in the
83      default versions list.
84    - New programs duck_server and duck_client that implement the
85      experimental siduck-00 protocol.  They quack!
86    - IETF crypto streams: don't limit ourselves from sending.
87    - Command-line programs: turn off QL loss bits if -G is used, as
88      Wireshark cannot decrypt QUIC packets when this extension is used.
89    - Turn all h3 framing unit tests back on.
90    - Fix malo initialization when compiled in no-pool mode.
91
922020-09-08
93    - 2.19.10
94    - [FEATURE] Add lsquic_stream_pwritev().  This function allows one to
95      reduce the number of system calls required to read a file from disk
96      by using lsquic_stream_pwritev() together with preadv(2).
97    - [BUGFIX] When stream is reset, it is writeable -- let user collect
98      the error.
99    - [BUGFIX] Calculate correct conn flow control if reading ends early.
100    - [BUGFIX] Remove stream from read and write queues on internal
101      shutdown.  This is a regression introduced in 2.19.7.
102    - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation.
103    - Turn off mini conn history when compiling with Visual Studio; this
104      allows the project to compile on Windows again.
105    - http_client: Add -3 flag to stop reading from streams early; code
106      cleanup.
107    - Don't use -Werror.
108
1092020-09-02
110    - 2.19.8
111    - [FEATURE] Update the timestamp extension to latest version.
112    - [FEATURE] Cope with appearance of ECN blackholes.
113    - [OPTIMIZATION] return packno offset and size when header is generated.
114    - [BUGFIX] ignore old ACK frames in mini conns.
115    - [BUGFIX] Mark initial server path as initialized.
116    - [BUGFIX] Do not merge ACK if ECN counts do not match.
117    - Turn incoming packet number history in mini conn back on.
118    - Record mini conn event history again when compiled in debug mode.
119    - IETF mini conn: log when ACK is queued.
120    - Clean up and refactor code in several places.
121
1222020-08-26
123    - 2.19.7
124    - Handle ECT-CE event: issue a loss event.
125    - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE.
126    - Use Max Push ID in GOAWAY frame to cancel promises.
127    - Add support for HTTP/3 CANCEL_PUSH frame.
128    - lsquic_stream_is_pushed: streams without headers are never pushed.
129    - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down.
130    - Improve logic whether to generate CONNECTION_CLOSE.
131
1322020-08-20
133    - 2.19.6
134    - Don't process incoming ECN marks if ECN is not enabled.
135    - Schedule ACK when incoming packet is marked with CE.
136
1372020-08-11
138    - 2.19.5
139    - [BUGFIX] Generate frame record when moving an ACK from one buffered
140      packet to another.
141
1422020-08-06
143    - 2.19.4
144    - [BUGFIX] Do not return an oversize MTU probe to connection twice.
145    - [FEATURE] Delayed Acks updated to latest draft.  Still experimental.
146    - Minor code cleanup in IETF full connection.
147
1482020-08-04
149    - 2.19.3
150    - [BUGFIX] Regression in 2.19.1 that breaks Q050
151
1522020-07-30
153    - 2.19.2
154    - [BUGFIX] Do not reduce PLPMTU size by network overhead.
155    - [BUGFIX] Windows build.
156
1572020-07-29
158    - 2.19.1
159    - [FEATURE] DPLPMTUD support.  IETF connections now search for the
160      maximum packet size, improving throughput.
161    - [DEBUG] Record event in stream history when on_close() is called
162      in dtor.
163
1642020-07-22
165    - 2.18.2
166    - [BUGFIX] Send prediction: lone path challenges do not get squeezed out
167    - Fix crash in http_client: now -K and -B can be used simultaneously
168
1692020-07-14
170    - 2.18.1
171    - [FEATURE] Implement the "QUIC bit grease" extension.
172    - [BUGFIX] Selecting CID used for logging on client.
173    - [BUGFIX] Header protection assertion.
174    - [BUGFIX] Server: enable SSL key logging when cert lookup callback
175      is not set.
176    - Remove some dead code.
177
1782020-07-06
179    - 2.18.0
180    - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT"
181      always refers to early data, meaning a request that the server can
182      reply to in the very first return flight.  A more appropriate name
183      for what we support on the client site is "session resumption," which
184      is standard TLS terminology.  Later, when we add support for 0-RTT
185      (early data), we can use the 0-RTT terminology again, this time in
186      proper context.
187    - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL.
188    - [BUGFIX] Make connection tickable when it's marked as closed.
189    - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode.
190    - Several documentation fixes and improvements.
191    - Minor code cleanup.
192
1932020-06-24
194    - 2.17.2
195    - [BUGFIX] Infinite loop in stream: advance read offset when discarding
196      data.
197    - [OPTIMIZATION] Header protection: only initialize cipher once.
198    - [OPTIMIZATION] Batch header protection application.
199
2002020-06-18
201    - 2.17.1
202    - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support.
203    - [BUGFIX] Check that scheduled packets are also sendable when
204      calculating a connection's "tickable" property.
205    - [BUGFIX] Don't count scheduled packets as in-flight when pacer is
206      checked on tick.
207    - gQUIC: delay calling on_new for pushed stream until headers are
208      available.
209    - Allow nested calls to lsquic_engine_connect().
210
2112020-06-15
212    - 2.16.3
213    - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn
214      instead of dropping them.
215    - [BUGFIX] Crash: check decrypt context before using it.  This regression
216      was introduced in 2.16.2.
217
2182020-06-12
219    - 2.16.2
220    - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in
221      ClientHello.  This change requires using a newer version of BoringSSL.
222    - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor.
223    - [BUGFIX] IETF QUIC client: narrow migration check to a single path.
224    - [BUGFIX] NULL dereference: set function pointers for alarm for path
225      challenges 2 and 3.
226    - [BUGFIX] HTTP/3 headers may be followed immediately by trailers.
227    - [BUGFIX] Log messages when SCID changes.
228
2292020-06-09
230    - 2.16.1
231    - [FEATURE] Use "no-progress timeout" after which connection is closed.
232    - [BUGFIX] Select new SCID when current SCID is retired.
233    - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during
234      mini/full handoff.
235    - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated.
236    - [BUGFIX] Mini conn: consider amplification when deciding to return
237      TICK_SEND.
238    - [BUGFIX] Don't double-count tag length in amplification logic.
239    - [BUGFIX] Don't squeeze out lone path challenges.
240    - [BUGFIX] Log messages dealing with scheduled packet queue squeezing.
241    - [BUGFIX] don't wipe current path if no path challenge responses
242      come back.
243    - [BUGFIX] When path is reset, don't lose path_id which is used for
244      logging.
245    - Downgrade flow control violations to info log level from warnings.
246    - Fix connection cap extra check, avoid checks in nested calls.
247    - Fix some unit tests when extra checks are enabled.
248    - Use ls-hpack 2.2.1.
249    - Turn off unconditional extra checks for IETF clients.
250    - Extra checks: don't verify sent size of hello packets.  Client
251      changes DCID length and this check will fail.
252
2532020-06-03
254    - 2.16.0
255    - [API] Use lsxpack_header v206.
256    - [FEATURE] Windows supported.
257    - [BUGFIX] Fix uninitialized variable use in client (regression in
258      2.15.0).
259    - Use ls-hpack 2.2.0.
260    - Use ls-qpack 2.2.0.
261    - Sample programs: fix the way maximum number of packets is
262      calculated.
263    - Remove some dead code.
264
2652020-05-27
266    - 2.15.0
267    - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support.
268    - [BUGFIX] Ignore Retry packets after other packets are decrypted
269      successfully.
270    - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte
271      length minimum.
272    - http_client: fix and optimize lsxpack_header allocator.
273    - Drop support for Internet Draft 25.
274
2752020-05-19
276    - 2.14.8
277    - Support Android.
278    - Rerrange tree: move command-line examples into bin/ and unit
279      tests into tests/ from test/unittests/.
280
2812020-05-12
282    - 2.14.7
283    - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050.
284    - [BUGFIX] Frame reader: skip headers if target stream is closed.
285
2862020-05-06
287    - 2.14.6
288    - [BUGFIX] Fix amplification mitigation in 0-RTT case.
289    - [BUGFIX] IETF mini connection should not tickable if cannot send
290      a packet due to amplification.
291    - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2.
292    - [BUGFIX] Qlog server certificates for IETF QUIC connections.
293    - [BUGFIX] Uninitialized struct padding usage in tokgen (benign).
294    - [BUGFIX] Incorrect argument to shi_lookup() (benign).
295
2962020-04-29
297    - 2.14.5
298    - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match.
299    - [BUGFIX] Frame reader: skip headers if target stream is not found.
300    - [BUGFIX] Log message in QPACK decoder handler.
301
3022020-04-24
303    - 2.14.4
304    - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams.
305    - [BUGFIX] IETF client: set correct flags on bidirectional streams.
306    - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned
307      streams.
308    - [BUGFIX] Do not call header callbacks after stream is closed.
309    - Use ls-qpack 2.1.1
310
3112020-04-15
312    - 2.14.3
313    - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback.
314    - [BUGFIX] Use ls-hpack 2.1.1
315    - Improve stream code readability.
316    - Use ls-qpack 2.0.5
317
3182020-04-08
319    - 2.14.2
320    - [BUGFIX] Use ls-qpack 2.0.4
321    - [BUGFIX] Honor max packet size on the client and when path changes.
322    - http_server: fix prepare_decode() function.
323
3242020-04-07
325    - 2.14.1
326    - [BUGFIX] Place connections on tickable queue when sending is reenabled.
327    - [BUGFIX] A connection is tickable if it has unsent packets.
328    - [BUGFIX] Heed peer's max_packet_size transport parameter.
329
3302020-03-30
331    - 2.14.0
332    - [API] Use lsxpack_header structure to send HTTP headers.
333    - [OPTIMIZATION] nocopy's readable_bytes() function.
334    - http_server: fix typo in error message
335    - Use ls-hpack 2.1.0.
336    - Use ls-qpack 2.0.0.
337
3382020-03-23
339    - 2.13.3
340    - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked.
341
3422020-03-13
343    - 2.13.2
344    - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode().
345
3462020-03-12
347    - 2.13.1
348    - [API] Use lsxpack_header structure to process incoming headers.
349    - [BUGFIX] Fix assertion when zero-padding Initial packet.
350    - [BUGFIX] Use idle timeout before we learn of peer's value.
351    - Use ls-hpack 2.0.1 -- has lsxpack_header changes.
352    - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not
353      used yet).
354    - Code cleanup: prefix exported functions with "lsquic_".
355
3562020-03-02
357    - 2.12.0
358    - [FEATURE] QUIC timestamps extension.
359    - [API] New: ea_alpn that is used when not in HTTP mode.
360    - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC.
361    - [BUGFIX] Benign double-free -- issue #110.
362    - [BUGFIX] Printing of transport parameters.
363
3642020-02-24
365    - 2.11.1
366    - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support.
367    - [FEATURE] Add experimental delayed ACKs extension.
368    - Drop support for Internet Draft 24.
369    - Code cleanup.
370
3712020-02-14
372    - 2.10.6
373    - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error.
374    - [BUGFIX] Send gap warning due to missing poisoned packet.
375    - Stream unit test for scenario in issue #106.
376
3772020-02-13
378    - 2.10.5
379    - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct
380      time.
381    - Refactor transport parameters module.
382    - Minor code cleanup.
383
3842020-02-11
385    - 2.10.4
386    - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received.
387    - [BUGFIX] Don't treat garbage UDP padding as library error; ignore
388      it instead.
389    - [BUGFIX] Fix compilation on FreeBSD (missing header).
390    - Code cleanup: remove unnecessary #includes.
391
3922020-01-31
393    - 2.10.3
394    - [BUGFIX] Cancel path responses and challenges on old path when
395      switching to new path
396    - Logging network path information.
397
3982020-01-30
399    - 2.10.2
400    - [BUGFIX] Do not delay ACKs for Initial and Handshake packets.
401    - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn
402      promotion.
403    - Logging improvements.
404    - http_client: discard data faster.
405
4062020-01-29
407    - 2.10.1
408    - [BUGFIX] Coalesced packets could get longer than normal packet
409      size.
410    - Add spin bit configuration option es_spin (-o spin=[01]).
411    - Disable spin bit in 1/16 of connections.
412    - Improve logging a bit.
413
4142020-01-28
415    - 2.10.0
416    - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support.
417    - [API] Drop support for ID-23.
418    - [BUGFIX] Set key phase bit on outgoing packets correctly.
419    - Code cleanup.
420
4212020-01-20
422    - 2.9.0
423    - [API] Drop support for Q039.
424    - Improve ACK-queuing logic.  Send an ACK once in a while if
425      peer keeps on sending non-ack-eliciting packets.
426    - Improve Alt-Svc string: Q050 and later are not included in
427      the old-style "quic" string.
428    - Send stateless resets if connection could not be promoted.
429    - Schedule MAX_DATA if needed when DATA_BLOCKED is received.
430    - Use ls-qpack 0.11.2 -- needed for server push optimization.
431    - Code cleanup: handle some error cases, improve logging.
432
4332020-01-16
434    - 2.8.9
435    - [BUGFIX] Use ls-qpack 0.11.1
436    - [OPTIMIZATION] Generate random bytes in batches.
437    - Change loss_bits transport parameter ID to 0x1057 following
438      latest draft.
439    - Randomize period with which PINGs are sent to elicit ACKs.
440    - Some refactoring and code cleanup.
441
4422020-01-14
443    - 2.8.8
444    - [BUGFIX] Invalid read when parsing IETF transport parameters
445      (this was benign).
446    - [OPTIMIZATION] Frame bundling when using buffered packets in
447      IETF QUIC: a) flush QPACK decoder stream and b) include ACKs
448      in opportunistic fashion.
449    - Fix HTTP/3 framing unit test.
450    - Code cleanup.
451
4522020-01-09
453    - 2.8.7
454    - [BUGFIX] Initial packet size check for IETF mini conn applies to
455      UDP payload, not QUIC packet.
456    - Support old and new school loss_bits transport parameter.
457    - Use Q run length of 64 as suggested in the loss bits Draft.
458    - Undo square wave count when packet is delayed.
459    - Code cleanup; minor fixes.
460
4612020-01-06
462    - 2.8.5
463    - [HTTP3] Verify number of bytes in incoming DATA frames against
464      content-length.
465    - [HTTP3] Stop issuing streams credits if peer stops opening QPACK
466      decoder window.  This addresses a potential attack whereby client
467      can cause the server to keep allocating memory.  See Security
468      Considerations in the QPACK draft.
469    - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later.
470    - [BUGFIX] Init IETF connection flow controller using correct setting.
471    - [BUGFIX] Fix unintended sign extension when removing header protection.
472    - Code cleanup and minor fixes.
473
4742019-12-30
475    - 2.8.1
476    - [FEATURE] Use occasional packet number gaps to detect optimistic
477      ACK attacks.
478    - [BUGFIX] Q050 client: all packet numbers are in the App PNS.
479    - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range
480      ACK frames.
481    - IETF QUIC: use RTT estimate in ack timeout calculation.
482    - IETF handshake: abort conn when unexpected errors occur.
483    - Use PING rather than MAX_DATA frames to elicit ACKs from peer.
484    - Server: enforce 1200 byte Initial minimum packet size.
485    - [CLEANUP] Remove code to disable gQUIC crypto.
486    - [CLEANUP] Remove n_timestamps from ACK info struct.
487    - Optimize driver: reuse previous ancillary message when possible.
488
4892019-12-23
490    - 2.8.0
491    - [FEATURE] Add support for Q050.
492    - [OPTIMIZATION] Reduce mallocs in gQUIC handshake.
493    - [BUGFIX] Disable redo of failed STREAM frame insertion with debug
494      logging.
495
4962019-12-18
497    - 2.7.3
498    - [DEBUG] Further dedup next advisory tick messages when reason is
499      the same.
500    - [BUGFIX] Update size of `a` array in TP struct.  Fixes (benign)
501      GitHub bug #94.
502    - Use Cubic by default again instead of BBR, as it delivers more
503      consistent performance.
504
5052019-12-11
506    - 2.7.2
507    - [BUGFIX] Send controller: update scheduled bytes when DCID length
508      changes (IETF client).
509    - [BUGFIX] Drop alarm check from sanity test.  It no longer works now
510      that we use loss chains.
511    - [PORTABILITY] Fix build on Alpine Linux.
512    - [PORTABILITY] Fix build using XCode.
513    - Client initial DCID length: use RAND_bytes() instead of rand(3).
514    - Add unit tests for connection min heap.
515    - [DEBUG] Log CID in gQUIC handshake module
516    - [DEBUG] Turn on extra checks for IETF client send controller.
517    - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer.
518    - [DEBUG] QPACK decoder handler: log header error code.
519
5202019-12-05
521    - 2.7.1
522    - [BUGFIX] client: don't call ignore_init() in middle of batch send.
523      ignore_init() makes an assumption that the send controller has access
524      to all outgoing packets.  This change wraps a few IETF full connection
525      methods to delay calling ignore_init() until the engine returns all
526      outgoing packets that were batched.
527    - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them.
528      This needs to be done because the value of errno may be lost on
529      some platforms.
530    - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes.
531    - [BUGFIX] Do not cancel header block processing after failure, as
532      QPACK releases the reference in that case.
533    - [CLEANUP] IETF encrypt: replace assert(0) with a warning.
534    - Several small improvements to the test server.
535
5362019-11-27
537    - 2.7.0
538    - [API, FEATURE] Close connection immediately when ea_packets_out()
539      fails with errno != EAGAIN.  The API change is that errno is now
540      examined.  Make sure to set it if using something other than
541      sendmsg() to send packets.
542    - [CLEANUP] Immediate close logic in IETF full conn.
543    - [CLEANUP] Fix bogus warning about uninitialized `pair' variable.
544
5452019-11-22
546    - 2.6.7
547    - [FEATURE] Implement the QL extension (offered by default).
548    - [BUGFIX] Abort when encountering unexpected HTTP/3 frames.
549    - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly.
550    - [DEBUG] Turn on debug message for next advisory tick.
551
5522019-11-20
553    - 2.6.6
554    - [BUGFIX] Using HTTP/3 to HTTP/1.x converter.
555    - [BUGFIX] Truncate log messages instead of throwing them away.
556
5572019-11-15
558    - 2.6.5
559    - [BUGFIX] High priority buffered packet queue length.
560    - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds.
561
5622019-11-12
563    - 2.6.3
564    - [BUGFIX] Close DATA frames with empty payload correctly.
565
5662019-11-11
567    - 2.6.2
568    - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular
569      packets.
570    - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets.
571    - [BUGFIX] Truncate ACK frame rather instead of aborting IETF
572      connection.
573    - [BUGFIX] Client: don't send duplicate reset tokens.
574    - [BUGFIX] Remove invalid assertion in H3 framing code.
575    - Silence a warning in send ctl by restructuring switch() statement.
576
5772019-11-08
578    - 2.6.1
579    - [BUGFIX] set retry token on all resubmitted packets.
580    - Event log: log sent packet flags.  In particular, this allows one
581      to see whether token was sent.
582    - Don't migrate client if es_allow_migration is false.
583
5842019-11-07
585    - 2.6.0
586    - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support
587
5882019-11-07
589    - 2.5.2
590    - [BUGFIX] argument order to gQUIC client constructor.  Regression
591      introduced in 2.5.0.
592    - [BUGFIX] split buffered packet error recovery: destroy the correct
593      packet.
594
5952019-11-04
596    - 2.5.1
597    - [BUGFIX] Fix double-free when emptying a packet number space.
598    - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly.
599    - [BUGFIX] Use random values in bits 4 and 5 of the first byte of
600      verneg packets (regression introduced in 2.5.0).
601    - [OPTIMIZATION] Don't compile in expensive attq checks by default.
602    - [OPTIMIZATION] http_server: compile regexes only once.
603
6042019-10-31
605    - 2.5.0
606    - [API] lsquic_engine_connect() can now be passed QUIC version to use.
607    - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent.
608    - [BUGFIX] Don't evict streams from priority iterator if there is
609      only one queue.
610    - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes.
611    - Use ls-qpack v0.10.7.
612
6132019-10-24
614    - 2.4.10
615    - [BUGFIX] IETF QUIC server: fix uninitialized variable use.
616    - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object.
617    - [BUGFIX] Use issuer name and serial number to cache certs (SKID
618      values are not unique).
619    - [BUGFIX] Always set the idle alarm in IETF connection so that it
620      can time out.
621    - Use ls-qpack v0.10.6, as it silences some warnings.
622
6232019-10-21
624    - 2.4.8
625    - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5.
626
6272019-10-15
628    - 2.4.7
629    - Add echo client and server to the distibution.
630    - Add MD5 client and server to the distibution.
631    - Fix http_client: check command-line arguments better, prevent crash.
632    - Fix IETF conn: can_write_ack() should only care about APP PNS.
633    - Client: delay stream creation until handshake succeds.
634    - Reset HTTP stream whose write end is closed prematurely.
635    - Fix tickable(): mirror behavior of tick() wrt buffered packets.
636    - Log reason why engine is tickable.
637
6382019-10-11
639    - 2.4.6
640    - Minor code cleanup and logging improvements.
641    - Server and client programs: include library version (e.g. 2.4.6)
642      into `server' and `user-agent' headers.
643
6442019-10-08
645    - 2.4.5
646    - [OPTIMIZATION]: flush encoder stream only when necessary.
647    - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix.
648    - [BUGFIX] Typo in IETF conn SETTINGS writer.
649    - Use latest BoringSSL.
650
6512019-10-08
652    - 2.4.4
653    - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header.
654    - [BUGFIX] NULL dereference when H3 frame header would be split.
655    - [BUGFIX] Do not close fixed-size H3 frame prematurely.
656    - [BUGFIX] Allow PING frames in IETF mini conn.
657    - [BUGFIX] Mini conns: don't send any packets after receiving
658      CONNECTION_CLOSE.
659    - [BUGFIX] Client migration: reserve slot for DCID from transport params.
660    - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there.
661    - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a
662      valid stream number).
663    - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected.
664    - [OPTIMIZATION] Closed connection only gets one chance to send packets.
665    - [OPTIMIZATION] Flush headers stream before packetizing stream data.
666    - [OPTIMIZATION] process QPACK encoder STREAM frames immediately.
667    - Update ls-qpack to v0.10.1.
668
6692019-09-30
670    - 2.4.3
671    - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header.
672      For example, h3-Q043.  Chrome will switch to using this format at
673      some point in the future.
674    - [BUGFIX] Send correct value in max_streams_uni transport param
675    - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set
676      to 0xFFFFFFFF
677
6782019-09-23
679    - 2.4.2
680    - [BUGFIX] H3 framing: fix zero-byte write when space is available
681    - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream
682      is closed
683    - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY
684    - [BUGFIX] Fix use-after-free in IETF full conn
685    - [OPTIMIZATION] Wait for session tickets for two seconds and then drop
686      SSL object and crypto streams.
687
6882019-09-18
689    - 2.4.0
690    - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support
691
6922019-09-13
693    - 2.3.1
694    - [BUGFIX] Fix memory leaks
695    - [BUGFIX] Fix unit tests
696
6972019-09-12
698    - 2.3.0
699    - [FEATURE] BBR congestion control is on by default
700    - [BUGFIX] BBR app-limited logic
701    - [BUGFIX] Fix uninitialized warnings in IETF
702    - [BUGFIX] Update ls-qpack to v0.9.14
703    - [CLEANUP] Code cleanup
704
7052019-09-11
706    - 2.2.0
707    - [FEATURE] Server code is included in the library
708    - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22)
709
7102019-05-13
711    - 1.21.2
712    - [OPTIMIZATION] HPACK: use history to improve compression performance
713
7142019-05-06
715    - 1.21.1
716    - [BUGFIX] If FIN or RST not received, don't delay stream destruction.
717    - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to
718      search static and dynamic tables.
719
7202019-04-12
721    - 1.21.0
722    - [FEATURE] Add qlog log module.
723
7242019-04-01
725    - 1.20.0
726    - [FEATURE] Add support for Q046.
727
7282019-03-19
729    - 1.19.6
730    - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we
731      send.  ACK frames placed in packets in buffered queues (optimization
732      introduced in 1.17.15) can be preceded by an ACK frame generated later.
733      In this case, the older ACK frame should not be sent out, as Chromium-
734      based servers flags decrease in the ACK frame's Largest Observed value
735      as an error.
736
7372019-03-05
738    - 1.19.5
739    - [BUGFIX] Use correct public key from PUBS based on KEXS index.
740    - [BUGFIX] Check flags before dispatching writes, avoiding assert.
741    - [BUGFIX] Set :scheme to "https" (instead of "HTTP").
742
7432019-02-25
744    - 1.19.4
745    - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob.
746    - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed.
747    - Log number of pacer calls at DEBUG, rather than NOTICE, level.
748
7492019-02-18
750    - 1.19.3
751    - [BUGFIX] Q044: don't encode packet number in 6 bytes.  Six-byte
752      packet number encoding does not exist in Q044.  This fixes a
753      regression introduced in '[BUGFIX] Buffered packets can contain
754      ACK frames' -- we need to keep QUIC version in mind when selecting
755      the longest possible packet number encoding used for the buffered
756      packet that carries the ACK.
757    - [BUGFIX] Do not increase CWND when timeout occurs.
758    - http_client: support setting handshake timeout on command line.
759      Use -o handshake_to=timeout.
760    - http_client: use -k to connect UDP socket to pick up ICMP errors.
761    - http_client: allow pathless mode, when only handshake is performed
762      without issuing any requests.  This can be done by simply not
763      specifying a -p flag on the command line.
764
7652019-02-11
766    - 1.19.2
767    - [BUGFIX] Begin negotiation with version provided in 0-RTT info.
768    - [BUGFIX] Version checking in zero_rtt deserialize function.
769
7702019-02-04
771    - 1.19.1
772    - [BUGFIX] Fix Windows build.
773
7742019-02-04
775    - 1.19.0
776    - [FEATURE, API Change] 0-RTT support.  Add function to export 0-RTT
777      information; it can be supplied to a subsequent connect() call.
778    - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support.
779    - [BUGFIX] Resuscitate the Windows build.
780    - [BUGFIX] Send HTTP settings (max header list size) if necessary.
781    - [BUGFIX] Buffered packets can contain ACK frames.
782    - [BUGFIX] Make packet writeable once all STREAM frames are elided.
783    - [BUGFIX] Fix potential null dereference when realloc fails.
784    - cmake: simplify build configuration.
785
7862019-01-28
787    - 1.18.0
788    - [API Change] Can specify clock granularity in engine settings.
789    - [BUGFIX] Pacer uses fixed clock granularity.  Since the change on
790      2018-04-09, it is not necessary to try to approximate the next tick
791      time in the pacer: it can use fix clock granularity specified by
792      the user.
793    - [BUGFIX] Do not tick constantly before handshake is done.
794    - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK.  Even
795      if we cannot allocate *more* packets, we could still be able to write
796      to one already allocated.
797    - [BUGFIX] Do not schedule pacer if there are no lost packets.
798
7992019-01-17
800    - 1.17.15
801    - [BUGFIX] http_client: make sure only one read per on_read() callback
802      is performed in the header conversion bypass (-B) mode.
803    - http_client: with -E, assign random priority when stream is created.
804    - [OPTIMIZATION] On immediate write, place an ACK frame into the first
805      buffered packet if an ACK is queued.  This reduces the number of
806      standalone ACK packets.
807    - [OPTIMIZATION] Allow placing more than one STREAM frame from the same
808      stream into an outgoing packet.  This change minimizes the number of
809      buffered packets required to store several small HTTP messages by
810      virtue of allowing more than one STREAM frame from HEADERS stream in
811      the same packet.
812    - [OPTIMIZATION] Flush headers when writing to buffered packets.  This
813      causes the headers to be written to the same buffered packet queue,
814      thereby improving packet utilization, especially for small HTTP
815      messages.
816
8172019-01-16
818    - 1.17.14
819    - [FEATURE] http_client can now collect stats: time to connect, TTFB,
820      time to download, requests per seconds, and bandwidth.  See -t flag.
821    - [BUGFIX] http_client: -B, -K, and -r can be used at the same time.
822    - [BUGFIX] http_client: do not display cert chain before each request.
823      Now this is only done once per connection, if the handshake is
824      successful and -a option is given.
825    - [BUGFIX] Do not wait to dispatch on_close() after reading.  If a
826      stream is scheduled to be closed after on_read() callback returns,
827      close it immediately instead of waiting until the end of the tick.
828      If client creates new request from on_close() event, they will be
829      processed in the same tick instead of waiting for the next one.
830    - [BUGFIX] HEADERS stream is critical: always treat it with highest
831      priority.
832
8332019-01-10
834    - 1.17.12
835    - [FEATURE] http_client can now issue parallel requests in the context
836      of a single connection.  See -w option.
837
8382019-01-03
839    - 1.17.11
840    - Fix strict aliasing warning in optimized compilation.
841
8422018-12-27
843    - 1.17.10
844    - Fix the example program to be able to use parallel connections
845      again.  (See the -n argument.)
846
8472018-12-18
848    - 1.17.9
849    - [BUGFIX] Engine: reduce minimum batch size from 256 to 4
850
8512018-12-10
852    - 1.17.8
853    - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux
854
8552018-12-03
856    - 1.17.7
857    - [BUGFIX] Do not unset PING alarm before ringing expired alarms.
858      This prevented PING from ever being sent.
859
8602018-11-29
861    - 1.17.6
862    - Add failsafe: resume sending packets after some time
863
864      The change puts a 1-second limit on the amount of time the engine
865      will not send packets after some packets are delayed.  This makes
866      the library robust in case the user does not unblock the engine
867      explicitly using lsquic_engine_send_unsent_packets() call.
868
869    - [BUGFIX] Handle corner cases in send controller when packets are
870      a) delayed or b) dropped during repackaging.
871    - [BUGFIX] Memory leak: destroy buffered packets during controller
872      cleanup.
873
8742018-11-16
875    - 1.17.3
876    - [BUGFIX] Do not send STOP_WAITING frames when using Q044
877
8782018-10-19
879    - 1.17.2
880    - [BUGFIX] Memory leak in test_frame_rw unit test.
881    - [BUGFIX] Parsing packets with short IETF header: do not overwrite
882      flags.  (Only a problem in unit tests -- benign otherwise.)
883
8842018-10-16
885    - 1.17.0
886    - [API Change] Packet out Memory Interface (PMI) update:
887      - Split PMI pool return into pmi_release and pmi_return
888      - PMI callbacks take peer_ctx and is_ipv6 arguments
889    - [BUGFIX] Fix use-after-free when certificate is updated
890    - Silence gcc warning in optimized mode by performing useless
891      initialization
892    - cmake: use the standard variable CMAKE_BUILD_TYPE instead of
893      DEVEL_MODE
894
8952018-10-03
896    - 1.16.0
897    - [API Change] Add lsquic_conn_n_avail_streams()
898    - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on
899
9002018-09-27
901    - 1.15.0
902    - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses
903    - [BUGFIX] free uncompressed headers correctly when error occurs
904
9052018-09-12
906    - 1.14.3
907    - [BUGFIX] Do not abort conn on STREAM frame for a reset stream
908    - [BUGFIX] Drop packets that would become empty due to repackaging.
909      Packets on the scheduled queue may be marked for repackaging.
910      Frames such as ACK frame that are never resent are removed from
911      repackaged packets.  We must check that the newly repackaged packet
912      would not be empty.  If it would be, it is destroyed instead and
913      the next packet on the scheduled queue is used.  Note that this
914      change only affects the logic to return the next packet to be sent.
915      Lost packets that are being rescheduled are already processed in
916      this fashion.
917    - Byteswap CID before logging it - this makes it match Chrome CIDs.
918      (Except Q035, which is the last little-endian GQUIC version we
919      support.)
920
9212018-09-06
922    - 1.14.0
923    - [API Change] Disable packet sending if full batch cannot be sent
924      If lsquic_packets_out_f() cannot send the whole batch, disable
925      packet sending until lsquic_engine_send_unsent_packets() is called.
926    - [BUGFIX] Handle case when STREAM frame does not fit.
927    - [BUGFIX] Always allow incoming STREAM frames to overlap.  Peers
928      may send overlapping STREAM frames even if using versions older
929      than Q043.
930    - Custom header set fixes:
931      - set "FIN reached" flag when custom header with FIN flag is
932        claimed;
933      - do not return custom header set for a reset stream.
934
9352018-08-27
936
937    - 1.13.0
938    - [FEATURE, API Change] Add ability to create custom header set
939      objects via callbacks.  This avoids reading and re-parsing
940      headers from the stream.
941
9422018-08-27
943
944    - 1.12.4
945    - Fix memory leak when engine is destroyed
946    - Fix memory leak in http_client
947    - Fix gcc warning in unit tests
948
9492018-08-22
950
951    - 1.12.3
952    - [BUGFIX] Fix duplicate STREAM frame detection
953
9542018-08-20
955
956    - 1.12.2
957    - [BUGFIX] Update count of scheduled bytes when adjusting size of
958      an already-scheduled packet.
959    - Emit info instead of warning messages when stream is used in
960      unexpected ways.
961
9622018-08-17
963
964    - 1.12.0
965    - [FEATURE, API Change] Add support for certificate verification
966
9672018-08-16
968
969    - 1.11.1
970    - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code
971
9722018-08-15
973
974    - 1.11.0
975    - [FEATURE] Add support for Q044.
976
9772018-08-09
978
979    - 1.10.2
980    - [BUGFIX] Don't go over limit when creating delayed streams
981
9822018-07-10
983
984    - 1.10.1
985    - [BUGFIX]  process connections after each batch of packets is read
986      This avoids a problem of accumulating a very large list of packets
987      (possible when speeds are high and socket's receive buffer is large)
988      and processing it all at once.
989    - If glibc is older than 2.17, link with rt.  This is necessary for
990      clock_getres(2).
991    - Add version macros to lsquic.h; remove unnecessary includes.
992
9932018-06-13
994
995    - [BUGFIX] allow multiple parallel connections by default
996
997      Use the original method of tracking connections by CIDs by default.
998      If zero-sized CID support is turned on, connections are tracked by
999      the address.  A new connection is not created if another connection
1000      is using the same network address
1001
10022018-05-30
1003
1004    - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets
1005
10062018-05-24
1007
1008    - Close connection properly when packet encryption fails
1009
10102018-05-23
1011
1012    - [BUGFIX] Do not produce packet sequence gaps due to delayed packets
1013
10142018-05-21
1015
1016    - [API Change] Add optional callback to call when handshake is done
1017    - [API Change, BUGFIX] After send failure, wait until transport available
1018
10192018-05-18
1020
1021    - [API] Expose useful lsquic_ver2str[] in lsquic.h
1022    - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision
1023    - Improve checks of number of incoming streams limit and associated
1024      error reporting.
1025    - [BUGFIX] Command-line option `-6` now works correctly.
1026
10272018-05-16
1028
1029    - [FEATURE] DNS resolution
1030    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
1031    - http_client: fix priority range generated by -E flag
1032
10332018-05-09
1034
1035    - [FEATURE] Add support for Q043.
1036    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
1037    - Fix typo in debug message.
1038    - Fix code indentation.
1039    - Add /* fallthru */ comment to stop newer gcc from complaining.
1040    - Logger: fix compilation of optimized Windows build.
1041
10422018-05-04
1043
1044    - [FEATURE] Add support for Q042.
1045    - Remove comment: MSPC is obsolete (no code changes)
1046    - Prog: use lsquic_str2ver() when processing -o version flag
1047    - Remove unused CTIM and SRBF transport parameters
1048    - Disable QUIC versions Q037 and Q038 by default
1049    - Fix Windows compilation by including compat header file in
1050      lshpack.c
1051    - Address warnings produced by newer versions of gcc
1052    - Future-proof: turn off -Werror
1053
10542018-05-02
1055
1056    - [BUGFIX] Make lsquic_conn_quic_version() available
1057    - Switch to using ls-hpack 1.1
1058    - [BUGFIX] Do not ignore stream resets after receiving FIN
1059
10602018-04-27
1061
1062    - HPACK: do not allow header block to end with table size update.
1063
10642018-04-25
1065
1066    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
1067      packets.
1068    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
1069    - [BUGFIX] connections with blocked scheduled packets are not tickable
1070      for sending.
1071    - [BUGFIX] Conn is tickable if it wants to send a connection-level
1072      frame.
1073
10742018-04-23
1075
1076    - Fix busy loop: tickable must make progress.  When connection is
1077      self-reporting as tickable, it must make progress when ticked.  There
1078      are two issues:
1079        1. If there are buffered packets, the connection is only tickable if
1080           they can be sent out.
1081        2. A connection is tickable if there are streams on the servicing
1082           queue.  When the tick occurs, we must service the stream
1083           independent of whether any packets are sent.
1084    - Fix assertion in pacer which can be incorrect under some
1085      conditions.
1086    - cmake: do not turn on address sanitizer if in Travis.
1087
10882018-04-20
1089
1090    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
1091      changes.
1092
10932018-04-19
1094
1095    - [BUGFIX] Add connection to Tickable Queue on stream write
1096    - cmake: use MSVC variable instead of trying to detect
1097    - engine: improve connection incref/decref logging
1098    - stream: don't ignore errors that may occur on triggered flush
1099    - connection: remove obsolete method
1100    - engine: indicate connection as tickable if previous call went
1101      over threshold
1102
11032018-04-09
1104
1105    [API Change, OPTIMIZATION] Only process conns that need to be processed
1106
1107    The API is simplified: do not expose the user code to several
1108    queues.  A "connection queue" is now an internal concept.
1109    The user processes connections using the single function
1110    lsquic_engine_process_conns().  When this function is called,
1111    only those connections are processed that need to be processed.
1112    A connection needs to be processed when:
1113
1114        1. New incoming packets have been fed to the connection.
1115        2. User wants to read from a stream that is readable.
1116        3. User wants to write to a stream that is writeable.
1117        4. There are buffered packets that can be sent out.  (This
1118           means that the user wrote to a stream outside of the
1119           lsquic library callback.)
1120        5. A control frame (such as BLOCKED) needs to be sent out.
1121        6. A stream needs to be serviced or delayed stream needs to
1122           be created.
1123        7. An alarm rings.
1124        8. Pacer timer expires.
1125
1126    To achieve this, the library places the connections into two
1127    priority queues (min heaps):
1128
1129        1. Tickable Queue; and
1130        2. Advisory Tick Time queue (ATTQ).
1131
1132    Each time lsquic_engine_process_conns() is called, the Tickable
1133    Queue is emptied.  After the connections have been ticked, they are
1134    queried again: if a connection is not being closed, it is placed
1135    either in the Tickable Queue if it is ready to be ticked again or
1136    it is placed in the Advisory Tick Time Queue.  It is assumed that
1137    a connection always has at least one timer set (the idle alarm).
1138
1139    The connections in the Tickable Queue are arranged in the least
1140    recently ticked order.  This lets connections that have been quiet
1141    longer to get their packets scheduled first.
1142
1143    This change means that the library no longer needs to be ticked
1144    periodically.  The user code can query the library when is the
1145    next tick event and schedule it exactly.  When connections are
1146    processed, only the tickable connections are processed, not *all*
1147    the connections.  When there are no tick events, it means that no
1148    timer event is necessary -- only the file descriptor READ event
1149    is active.
1150
1151    The following are improvements and simplifications that have
1152    been triggered:
1153
1154        - Queue of connections with incoming packets is gone.
1155        - "Pending Read/Write Events" Queue is gone (along with its
1156          history and progress checks).  This queue has become the
1157          Tickable Queue.
1158        - The connection hash no longer needs to track the connection
1159          insertion order.
1160
11612018-04-02
1162
1163    - [FEATURE] Windows support
1164
1165    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
1166
11672018-03-09
1168
1169    - [OPTIMIZATION] Merge series of ACKs if possible
1170
1171      Parsed single-range ACK frames (that is the majority of frames) are
1172      saved in the connection and their processing is deferred until the
1173      connection is ticked.  If several ACKs come in a series between
1174      adjacent ticks, we check whether the latest ACK is a strict superset
1175      of the saved ACK.  If it is, the older ACK is not processed.
1176
1177      If ACK frames can be merged, they are merged and only one of them is
1178      either processed or saved.
1179
1180    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
1181
1182      Never generate a gap in the sent packet number sequence.  This reduces
1183      the send history to a single number instead of potentially a series of
1184      packet ranges and thereby speeds up ACK verification.
1185
1186      By default, detecting a gap in the send history is not fatal: only a
1187      single warning is generated per connection.  The connection can continue
1188      to operate even if the ACK verification code is not able to detect some
1189      inconsistencies.
1190
1191    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
1192
1193      The first part of struct lsquic_send_ctl now consists of members that
1194      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
1195      which is the normal case).  To speed up reads and writes, we no longer
1196      try to save space by using 8- and 16-bit integers.  Use regular integer
1197      width for everything.
1198
1199    - [OPTIMIZATION] Cache size of sent packet.
1200
1201    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
1202
1203      Instead of parsing our own ACK frames when packet has been acked,
1204      use the value saved in the packet_out structure when the ACK frame
1205      was generated.
1206
1207    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
1208
1209    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
1210
1211    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
1212
1213    - Fix: http_client: fix -I flag; switch assert() to abort()
1214
12152018-02-26
1216    - [API Change] lsquic_engine_connect() returns pointer to the connection
1217      object.
1218    - [API Change] Add lsquic_conn_get_engine() to get engine object from
1219      connection object.
1220    - [API Change] Add lsquic_conn_status() to query connection status.
1221    - [API Change] Add add lsquic_conn_set_ctx().
1222    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
1223    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
1224      arrives.
1225    - [OPTIMIZATION] Do not compile expensive send controller sanity check
1226      by default.
1227    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
1228    - [OPTIMIZATION] Only make squeeze function call if necessary.
1229    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
1230    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
1231    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
1232    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
1233    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
1234      ordered.
1235    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
1236    - Fix: reset incoming streams that arrive after we send GOAWAY.
1237    - Fix: delay client on_new_conn() call until connection is fully set up.
1238    - Fixes to buffered packets logic: splitting, STREAM frame elision.
1239    - Fix: do not dispatch on_write callback if no packets are available.
1240    - Fix WINDOW_UPDATE send and resend logic.
1241    - Fix STREAM frame extension code.
1242    - Fix: Drop unflushed data when stream is reset.
1243    - Switch to tracking CWND using bytes rather than packets.
1244    - Fix TCP friendly adjustment in cubic.
1245    - Fix: do not generate invalid STOP_WAITING frames during high packet
1246      loss.
1247    - Pacer fixes.
1248
12492017-12-18
1250
1251    - Fix: better follow cubic curve after idle period
1252    - Fix: add missing parts to outgoing packet splitting code
1253    - Fix: compilation using gcc 4.8.4
1254
12552017-10-31
1256
1257    - Add APIs.txt -- describes LSQUIC APIs
1258
12592017-10-31
1260
1261    - [API Change] Sendfile-like functionality is gone.  The stream no
1262      longer opens files and deals with file descriptors.  (Among other
1263      things, this makes the code more portable.)  Three writing functions
1264      are provided:
1265
1266        lsquic_stream_write
1267        lsquic_stream_writev
1268        lsquic_stream_writef    (NEW)
1269
1270      lsquic_stream_writef() is given an abstract reader that has function
1271      pointers for size() and read() functions which the user can implement.
1272      This is the most flexible way.  lsquic_stream_write() and
1273      lsquic_stream_writev() are now both implemented as wrappers around
1274      lsquic_stream_writef().
1275
1276    - [OPTIMIZATION] When writing to stream, be it within or without the
1277      on_write() callback, place data directly into packet buffer,
1278      bypassing auxiliary data structures.  This reduces amount of memory
1279      required, for the amount of data that can be written is limited
1280      by the congestion window.
1281
1282      To support writes outside the on_write() callback, we keep N
1283      outgoing packet buffers per connection which can be written to
1284      by any stream.  One half of these are reserved for the highest
1285      priority stream(s), the other half for all other streams.  This way,
1286      low-priority streams cannot write instead of high-priority streams
1287      and, on the other hand, low-priority streams get a chance to send
1288      their packets out.
1289
1290      The algorithm is as follows:
1291
1292      - When user writes to stream outside of the callback:
1293        - If this is the highest priority stream, place it onto the
1294          reserved N/2 queue or fail.
1295            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
1296             rather than N/2, allowing high-priority streams to write as
1297             much as can be sent.)
1298        - If the stream is not the highest priority, try to place the
1299          data onto the reserved N/2 queue or fail.
1300      - When tick occurs *and* more packets can be scheduled:
1301        - Transfer packets from the high N/2 queue to the scheduled
1302          queue.
1303        - If more scheduling is allowed:
1304          - Call on_write callbacks for highest-priority streams,
1305            placing resulting packets directly onto the scheduled queue.
1306        - If more scheduling is allowed:
1307          - Transfer packets from the low N/2 queue to the scheduled
1308            queue.
1309        - If more scheduling is allowed:
1310          - Call on_write callbacks for non-highest-priority streams,
1311            placing resulting packets directly onto the scheduled queue
1312
1313      The number N is currently 20, but it could be varied based on
1314      resource usage.
1315
1316    - If stream is created due to incoming headers, make headers readable
1317      from on_new.
1318
1319    - Outgoing packets are no longer marked non-writeable to prevent placing
1320      more than one STREAM frame from the same stream into a single packet.
1321      This property is maintained via code flow and an explicit check.
1322      Packets for stream data are allocated using a special function.
1323
1324    - STREAM frame elision is cheaper, as we only perform it if a reset
1325      stream has outgoing packets referencing it.
1326
1327    - lsquic_packet_out_t is smaller, as stream_rec elements are now
1328      inside a union.
1329
13302017-10-12
1331
1332    - Do not send RST_STREAM when stream is closed for reading
1333    - Raise maximum header size from 4K to 64K
1334    - Check header name and value lengths against maximum imposed by HPACK
1335    - Fix NULL dereference in stream flow controller
1336
13372017-10-09
1338
1339    - Hide handshake implementation behind a set of function pointers
1340    - Use monotonically increasing clock
1341    - Make sure that retx delay is not larger than the max of 60 seconds
1342
13432017-09-29
1344
1345    - A few fixes to code and README
1346
13472017-09-28
1348
1349    - Add support for Q041; drop support for Q040
1350
13512017-09-27
1352
1353    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
1354
13552017-09-26
1356
1357    - Add support for Mac OS
1358    - Add support for Raspberry Pi
1359    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
1360
13612017-09-22
1362
1363    - Initial release
1364