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