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