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