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