CHANGELOG revision 7483dee0
12020-07-06
2    - 2.18.0
3    - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT"
4      always refers to early data, meaning a request that the server can
5      reply to in the very first return flight.  A more appropriate name
6      for what we support on the client site is "session resumption," which
7      is standard TLS terminology.  Later, when we add support for 0-RTT
8      (early data), we can use the 0-RTT terminology again, this time in
9      proper context.
10    - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL.
11    - [BUGFIX] Make connection tickable when it's marked as closed.
12    - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode.
13    - Several documentation fixes and improvements.
14    - Minor code cleanup.
15
162020-06-24
17    - 2.17.2
18    - [BUGFIX] Infinite loop in stream: advance read offset when discarding
19      data.
20    - [OPTIMIZATION] Header protection: only initialize cipher once.
21    - [OPTIMIZATION] Batch header protection application.
22
232020-06-18
24    - 2.17.1
25    - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support.
26    - [BUGFIX] Check that scheduled packets are also sendable when
27      calculating a connection's "tickable" property.
28    - [BUGFIX] Don't count scheduled packets as in-flight when pacer is
29      checked on tick.
30    - gQUIC: delay calling on_new for pushed stream until headers are
31      available.
32    - Allow nested calls to lsquic_engine_connect().
33
342020-06-15
35    - 2.16.3
36    - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn
37      instead of dropping them.
38    - [BUGFIX] Crash: check decrypt context before using it.  This regression
39      was introduced in 2.16.2.
40
412020-06-12
42    - 2.16.2
43    - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in
44      ClientHello.  This change requires using a newer version of BoringSSL.
45    - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor.
46    - [BUGFIX] IETF QUIC client: narrow migration check to a single path.
47    - [BUGFIX] NULL dereference: set function pointers for alarm for path
48      challenges 2 and 3.
49    - [BUGFIX] HTTP/3 headers may be followed immediately by trailers.
50    - [BUGFIX] Log messages when SCID changes.
51
522020-06-09
53    - 2.16.1
54    - [FEATURE] Use "no-progress timeout" after which connection is closed.
55    - [BUGFIX] Select new SCID when current SCID is retired.
56    - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during
57      mini/full handoff.
58    - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated.
59    - [BUGFIX] Mini conn: consider amplification when deciding to return
60      TICK_SEND.
61    - [BUGFIX] Don't double-count tag length in amplification logic.
62    - [BUGFIX] Don't squeeze out lone path challenges.
63    - [BUGFIX] Log messages dealing with scheduled packet queue squeezing.
64    - [BUGFIX] don't wipe current path if no path challenge responses
65      come back.
66    - [BUGFIX] When path is reset, don't lose path_id which is used for
67      logging.
68    - Downgrade flow control violations to info log level from warnings.
69    - Fix connection cap extra check, avoid checks in nested calls.
70    - Fix some unit tests when extra checks are enabled.
71    - Use ls-hpack 2.2.1.
72    - Turn off unconditional extra checks for IETF clients.
73    - Extra checks: don't verify sent size of hello packets.  Client
74      changes DCID length and this check will fail.
75
762020-06-03
77    - 2.16.0
78    - [API] Use lsxpack_header v206.
79    - [FEATURE] Windows supported.
80    - [BUGFIX] Fix uninitialized variable use in client (regression in
81      2.15.0).
82    - Use ls-hpack 2.2.0.
83    - Use ls-qpack 2.2.0.
84    - Sample programs: fix the way maximum number of packets is
85      calculated.
86    - Remove some dead code.
87
882020-05-27
89    - 2.15.0
90    - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support.
91    - [BUGFIX] Ignore Retry packets after other packets are decrypted
92      successfully.
93    - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte
94      length minimum.
95    - http_client: fix and optimize lsxpack_header allocator.
96    - Drop support for Internet Draft 25.
97
982020-05-19
99    - 2.14.8
100    - Support Android.
101    - Rerrange tree: move command-line examples into bin/ and unit
102      tests into tests/ from test/unittests/.
103
1042020-05-12
105    - 2.14.7
106    - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050.
107    - [BUGFIX] Frame reader: skip headers if target stream is closed.
108
1092020-05-06
110    - 2.14.6
111    - [BUGFIX] Fix amplification mitigation in 0-RTT case.
112    - [BUGFIX] IETF mini connection should not tickable if cannot send
113      a packet due to amplification.
114    - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2.
115    - [BUGFIX] Qlog server certificates for IETF QUIC connections.
116    - [BUGFIX] Uninitialized struct padding usage in tokgen (benign).
117    - [BUGFIX] Incorrect argument to shi_lookup() (benign).
118
1192020-04-29
120    - 2.14.5
121    - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match.
122    - [BUGFIX] Frame reader: skip headers if target stream is not found.
123    - [BUGFIX] Log message in QPACK decoder handler.
124
1252020-04-24
126    - 2.14.4
127    - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams.
128    - [BUGFIX] IETF client: set correct flags on bidirectional streams.
129    - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned
130      streams.
131    - [BUGFIX] Do not call header callbacks after stream is closed.
132    - Use ls-qpack 2.1.1
133
1342020-04-15
135    - 2.14.3
136    - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback.
137    - [BUGFIX] Use ls-hpack 2.1.1
138    - Improve stream code readability.
139    - Use ls-qpack 2.0.5
140
1412020-04-08
142    - 2.14.2
143    - [BUGFIX] Use ls-qpack 2.0.4
144    - [BUGFIX] Honor max packet size on the client and when path changes.
145    - http_server: fix prepare_decode() function.
146
1472020-04-07
148    - 2.14.1
149    - [BUGFIX] Place connections on tickable queue when sending is reenabled.
150    - [BUGFIX] A connection is tickable if it has unsent packets.
151    - [BUGFIX] Heed peer's max_packet_size transport parameter.
152
1532020-03-30
154    - 2.14.0
155    - [API] Use lsxpack_header structure to send HTTP headers.
156    - [OPTIMIZATION] nocopy's readable_bytes() function.
157    - http_server: fix typo in error message
158    - Use ls-hpack 2.1.0.
159    - Use ls-qpack 2.0.0.
160
1612020-03-23
162    - 2.13.3
163    - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked.
164
1652020-03-13
166    - 2.13.2
167    - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode().
168
1692020-03-12
170    - 2.13.1
171    - [API] Use lsxpack_header structure to process incoming headers.
172    - [BUGFIX] Fix assertion when zero-padding Initial packet.
173    - [BUGFIX] Use idle timeout before we learn of peer's value.
174    - Use ls-hpack 2.0.1 -- has lsxpack_header changes.
175    - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not
176      used yet).
177    - Code cleanup: prefix exported functions with "lsquic_".
178
1792020-03-02
180    - 2.12.0
181    - [FEATURE] QUIC timestamps extension.
182    - [API] New: ea_alpn that is used when not in HTTP mode.
183    - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC.
184    - [BUGFIX] Benign double-free -- issue #110.
185    - [BUGFIX] Printing of transport parameters.
186
1872020-02-24
188    - 2.11.1
189    - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support.
190    - [FEATURE] Add experimental delayed ACKs extension.
191    - Drop support for Internet Draft 24.
192    - Code cleanup.
193
1942020-02-14
195    - 2.10.6
196    - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error.
197    - [BUGFIX] Send gap warning due to missing poisoned packet.
198    - Stream unit test for scenario in issue #106.
199
2002020-02-13
201    - 2.10.5
202    - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct
203      time.
204    - Refactor transport parameters module.
205    - Minor code cleanup.
206
2072020-02-11
208    - 2.10.4
209    - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received.
210    - [BUGFIX] Don't treat garbage UDP padding as library error; ignore
211      it instead.
212    - [BUGFIX] Fix compilation on FreeBSD (missing header).
213    - Code cleanup: remove unnecessary #includes.
214
2152020-01-31
216    - 2.10.3
217    - [BUGFIX] Cancel path responses and challenges on old path when
218      switching to new path
219    - Logging network path information.
220
2212020-01-30
222    - 2.10.2
223    - [BUGFIX] Do not delay ACKs for Initial and Handshake packets.
224    - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn
225      promotion.
226    - Logging improvements.
227    - http_client: discard data faster.
228
2292020-01-29
230    - 2.10.1
231    - [BUGFIX] Coalesced packets could get longer than normal packet
232      size.
233    - Add spin bit configuration option es_spin (-o spin=[01]).
234    - Disable spin bit in 1/16 of connections.
235    - Improve logging a bit.
236
2372020-01-28
238    - 2.10.0
239    - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support.
240    - [API] Drop support for ID-23.
241    - [BUGFIX] Set key phase bit on outgoing packets correctly.
242    - Code cleanup.
243
2442020-01-20
245    - 2.9.0
246    - [API] Drop support for Q039.
247    - Improve ACK-queuing logic.  Send an ACK once in a while if
248      peer keeps on sending non-ack-eliciting packets.
249    - Improve Alt-Svc string: Q050 and later are not included in
250      the old-style "quic" string.
251    - Send stateless resets if connection could not be promoted.
252    - Schedule MAX_DATA if needed when DATA_BLOCKED is received.
253    - Use ls-qpack 0.11.2 -- needed for server push optimization.
254    - Code cleanup: handle some error cases, improve logging.
255
2562020-01-16
257    - 2.8.9
258    - [BUGFIX] Use ls-qpack 0.11.1
259    - [OPTIMIZATION] Generate random bytes in batches.
260    - Change loss_bits transport parameter ID to 0x1057 following
261      latest draft.
262    - Randomize period with which PINGs are sent to elicit ACKs.
263    - Some refactoring and code cleanup.
264
2652020-01-14
266    - 2.8.8
267    - [BUGFIX] Invalid read when parsing IETF transport parameters
268      (this was benign).
269    - [OPTIMIZATION] Frame bundling when using buffered packets in
270      IETF QUIC: a) flush QPACK decoder stream and b) include ACKs
271      in opportunistic fashion.
272    - Fix HTTP/3 framing unit test.
273    - Code cleanup.
274
2752020-01-09
276    - 2.8.7
277    - [BUGFIX] Initial packet size check for IETF mini conn applies to
278      UDP payload, not QUIC packet.
279    - Support old and new school loss_bits transport parameter.
280    - Use Q run length of 64 as suggested in the loss bits Draft.
281    - Undo square wave count when packet is delayed.
282    - Code cleanup; minor fixes.
283
2842020-01-06
285    - 2.8.5
286    - [HTTP3] Verify number of bytes in incoming DATA frames against
287      content-length.
288    - [HTTP3] Stop issuing streams credits if peer stops opening QPACK
289      decoder window.  This addresses a potential attack whereby client
290      can cause the server to keep allocating memory.  See Security
291      Considerations in the QPACK draft.
292    - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later.
293    - [BUGFIX] Init IETF connection flow controller using correct setting.
294    - [BUGFIX] Fix unintended sign extension when removing header protection.
295    - Code cleanup and minor fixes.
296
2972019-12-30
298    - 2.8.1
299    - [FEATURE] Use occasional packet number gaps to detect optimistic
300      ACK attacks.
301    - [BUGFIX] Q050 client: all packet numbers are in the App PNS.
302    - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range
303      ACK frames.
304    - IETF QUIC: use RTT estimate in ack timeout calculation.
305    - IETF handshake: abort conn when unexpected errors occur.
306    - Use PING rather than MAX_DATA frames to elicit ACKs from peer.
307    - Server: enforce 1200 byte Initial minimum packet size.
308    - [CLEANUP] Remove code to disable gQUIC crypto.
309    - [CLEANUP] Remove n_timestamps from ACK info struct.
310    - Optimize driver: reuse previous ancillary message when possible.
311
3122019-12-23
313    - 2.8.0
314    - [FEATURE] Add support for Q050.
315    - [OPTIMIZATION] Reduce mallocs in gQUIC handshake.
316    - [BUGFIX] Disable redo of failed STREAM frame insertion with debug
317      logging.
318
3192019-12-18
320    - 2.7.3
321    - [DEBUG] Further dedup next advisory tick messages when reason is
322      the same.
323    - [BUGFIX] Update size of `a` array in TP struct.  Fixes (benign)
324      GitHub bug #94.
325    - Use Cubic by default again instead of BBR, as it delivers more
326      consistent performance.
327
3282019-12-11
329    - 2.7.2
330    - [BUGFIX] Send controller: update scheduled bytes when DCID length
331      changes (IETF client).
332    - [BUGFIX] Drop alarm check from sanity test.  It no longer works now
333      that we use loss chains.
334    - [PORTABILITY] Fix build on Alpine Linux.
335    - [PORTABILITY] Fix build using XCode.
336    - Client initial DCID length: use RAND_bytes() instead of rand(3).
337    - Add unit tests for connection min heap.
338    - [DEBUG] Log CID in gQUIC handshake module
339    - [DEBUG] Turn on extra checks for IETF client send controller.
340    - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer.
341    - [DEBUG] QPACK decoder handler: log header error code.
342
3432019-12-05
344    - 2.7.1
345    - [BUGFIX] client: don't call ignore_init() in middle of batch send.
346      ignore_init() makes an assumption that the send controller has access
347      to all outgoing packets.  This change wraps a few IETF full connection
348      methods to delay calling ignore_init() until the engine returns all
349      outgoing packets that were batched.
350    - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them.
351      This needs to be done because the value of errno may be lost on
352      some platforms.
353    - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes.
354    - [BUGFIX] Do not cancel header block processing after failure, as
355      QPACK releases the reference in that case.
356    - [CLEANUP] IETF encrypt: replace assert(0) with a warning.
357    - Several small improvements to the test server.
358
3592019-11-27
360    - 2.7.0
361    - [API, FEATURE] Close connection immediately when ea_packets_out()
362      fails with errno != EAGAIN.  The API change is that errno is now
363      examined.  Make sure to set it if using something other than
364      sendmsg() to send packets.
365    - [CLEANUP] Immediate close logic in IETF full conn.
366    - [CLEANUP] Fix bogus warning about uninitialized `pair' variable.
367
3682019-11-22
369    - 2.6.7
370    - [FEATURE] Implement the QL extension (offered by default).
371    - [BUGFIX] Abort when encountering unexpected HTTP/3 frames.
372    - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly.
373    - [DEBUG] Turn on debug message for next advisory tick.
374
3752019-11-20
376    - 2.6.6
377    - [BUGFIX] Using HTTP/3 to HTTP/1.x converter.
378    - [BUGFIX] Truncate log messages instead of throwing them away.
379
3802019-11-15
381    - 2.6.5
382    - [BUGFIX] High priority buffered packet queue length.
383    - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds.
384
3852019-11-12
386    - 2.6.3
387    - [BUGFIX] Close DATA frames with empty payload correctly.
388
3892019-11-11
390    - 2.6.2
391    - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular
392      packets.
393    - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets.
394    - [BUGFIX] Truncate ACK frame rather instead of aborting IETF
395      connection.
396    - [BUGFIX] Client: don't send duplicate reset tokens.
397    - [BUGFIX] Remove invalid assertion in H3 framing code.
398    - Silence a warning in send ctl by restructuring switch() statement.
399
4002019-11-08
401    - 2.6.1
402    - [BUGFIX] set retry token on all resubmitted packets.
403    - Event log: log sent packet flags.  In particular, this allows one
404      to see whether token was sent.
405    - Don't migrate client if es_allow_migration is false.
406
4072019-11-07
408    - 2.6.0
409    - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support
410
4112019-11-07
412    - 2.5.2
413    - [BUGFIX] argument order to gQUIC client constructor.  Regression
414      introduced in 2.5.0.
415    - [BUGFIX] split buffered packet error recovery: destroy the correct
416      packet.
417
4182019-11-04
419    - 2.5.1
420    - [BUGFIX] Fix double-free when emptying a packet number space.
421    - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly.
422    - [BUGFIX] Use random values in bits 4 and 5 of the first byte of
423      verneg packets (regression introduced in 2.5.0).
424    - [OPTIMIZATION] Don't compile in expensive attq checks by default.
425    - [OPTIMIZATION] http_server: compile regexes only once.
426
4272019-10-31
428    - 2.5.0
429    - [API] lsquic_engine_connect() can now be passed QUIC version to use.
430    - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent.
431    - [BUGFIX] Don't evict streams from priority iterator if there is
432      only one queue.
433    - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes.
434    - Use ls-qpack v0.10.7.
435
4362019-10-24
437    - 2.4.10
438    - [BUGFIX] IETF QUIC server: fix uninitialized variable use.
439    - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object.
440    - [BUGFIX] Use issuer name and serial number to cache certs (SKID
441      values are not unique).
442    - [BUGFIX] Always set the idle alarm in IETF connection so that it
443      can time out.
444    - Use ls-qpack v0.10.6, as it silences some warnings.
445
4462019-10-21
447    - 2.4.8
448    - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5.
449
4502019-10-15
451    - 2.4.7
452    - Add echo client and server to the distibution.
453    - Add MD5 client and server to the distibution.
454    - Fix http_client: check command-line arguments better, prevent crash.
455    - Fix IETF conn: can_write_ack() should only care about APP PNS.
456    - Client: delay stream creation until handshake succeds.
457    - Reset HTTP stream whose write end is closed prematurely.
458    - Fix tickable(): mirror behavior of tick() wrt buffered packets.
459    - Log reason why engine is tickable.
460
4612019-10-11
462    - 2.4.6
463    - Minor code cleanup and logging improvements.
464    - Server and client programs: include library version (e.g. 2.4.6)
465      into `server' and `user-agent' headers.
466
4672019-10-08
468    - 2.4.5
469    - [OPTIMIZATION]: flush encoder stream only when necessary.
470    - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix.
471    - [BUGFIX] Typo in IETF conn SETTINGS writer.
472    - Use latest BoringSSL.
473
4742019-10-08
475    - 2.4.4
476    - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header.
477    - [BUGFIX] NULL dereference when H3 frame header would be split.
478    - [BUGFIX] Do not close fixed-size H3 frame prematurely.
479    - [BUGFIX] Allow PING frames in IETF mini conn.
480    - [BUGFIX] Mini conns: don't send any packets after receiving
481      CONNECTION_CLOSE.
482    - [BUGFIX] Client migration: reserve slot for DCID from transport params.
483    - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there.
484    - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a
485      valid stream number).
486    - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected.
487    - [OPTIMIZATION] Closed connection only gets one chance to send packets.
488    - [OPTIMIZATION] Flush headers stream before packetizing stream data.
489    - [OPTIMIZATION] process QPACK encoder STREAM frames immediately.
490    - Update ls-qpack to v0.10.1.
491
4922019-09-30
493    - 2.4.3
494    - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header.
495      For example, h3-Q043.  Chrome will switch to using this format at
496      some point in the future.
497    - [BUGFIX] Send correct value in max_streams_uni transport param
498    - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set
499      to 0xFFFFFFFF
500
5012019-09-23
502    - 2.4.2
503    - [BUGFIX] H3 framing: fix zero-byte write when space is available
504    - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream
505      is closed
506    - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY
507    - [BUGFIX] Fix use-after-free in IETF full conn
508    - [OPTIMIZATION] Wait for session tickets for two seconds and then drop
509      SSL object and crypto streams.
510
5112019-09-18
512    - 2.4.0
513    - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support
514
5152019-09-13
516    - 2.3.1
517    - [BUGFIX] Fix memory leaks
518    - [BUGFIX] Fix unit tests
519
5202019-09-12
521    - 2.3.0
522    - [FEATURE] BBR congestion control is on by default
523    - [BUGFIX] BBR app-limited logic
524    - [BUGFIX] Fix uninitialized warnings in IETF
525    - [BUGFIX] Update ls-qpack to v0.9.14
526    - [CLEANUP] Code cleanup
527
5282019-09-11
529    - 2.2.0
530    - [FEATURE] Server code is included in the library
531    - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22)
532
5332019-05-13
534    - 1.21.2
535    - [OPTIMIZATION] HPACK: use history to improve compression performance
536
5372019-05-06
538    - 1.21.1
539    - [BUGFIX] If FIN or RST not received, don't delay stream destruction.
540    - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to
541      search static and dynamic tables.
542
5432019-04-12
544    - 1.21.0
545    - [FEATURE] Add qlog log module.
546
5472019-04-01
548    - 1.20.0
549    - [FEATURE] Add support for Q046.
550
5512019-03-19
552    - 1.19.6
553    - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we
554      send.  ACK frames placed in packets in buffered queues (optimization
555      introduced in 1.17.15) can be preceded by an ACK frame generated later.
556      In this case, the older ACK frame should not be sent out, as Chromium-
557      based servers flags decrease in the ACK frame's Largest Observed value
558      as an error.
559
5602019-03-05
561    - 1.19.5
562    - [BUGFIX] Use correct public key from PUBS based on KEXS index.
563    - [BUGFIX] Check flags before dispatching writes, avoiding assert.
564    - [BUGFIX] Set :scheme to "https" (instead of "HTTP").
565
5662019-02-25
567    - 1.19.4
568    - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob.
569    - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed.
570    - Log number of pacer calls at DEBUG, rather than NOTICE, level.
571
5722019-02-18
573    - 1.19.3
574    - [BUGFIX] Q044: don't encode packet number in 6 bytes.  Six-byte
575      packet number encoding does not exist in Q044.  This fixes a
576      regression introduced in '[BUGFIX] Buffered packets can contain
577      ACK frames' -- we need to keep QUIC version in mind when selecting
578      the longest possible packet number encoding used for the buffered
579      packet that carries the ACK.
580    - [BUGFIX] Do not increase CWND when timeout occurs.
581    - http_client: support setting handshake timeout on command line.
582      Use -o handshake_to=timeout.
583    - http_client: use -k to connect UDP socket to pick up ICMP errors.
584    - http_client: allow pathless mode, when only handshake is performed
585      without issuing any requests.  This can be done by simply not
586      specifying a -p flag on the command line.
587
5882019-02-11
589    - 1.19.2
590    - [BUGFIX] Begin negotiation with version provided in 0-RTT info.
591    - [BUGFIX] Version checking in zero_rtt deserialize function.
592
5932019-02-04
594    - 1.19.1
595    - [BUGFIX] Fix Windows build.
596
5972019-02-04
598    - 1.19.0
599    - [FEATURE, API Change] 0-RTT support.  Add function to export 0-RTT
600      information; it can be supplied to a subsequent connect() call.
601    - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support.
602    - [BUGFIX] Resuscitate the Windows build.
603    - [BUGFIX] Send HTTP settings (max header list size) if necessary.
604    - [BUGFIX] Buffered packets can contain ACK frames.
605    - [BUGFIX] Make packet writeable once all STREAM frames are elided.
606    - [BUGFIX] Fix potential null dereference when realloc fails.
607    - cmake: simplify build configuration.
608
6092019-01-28
610    - 1.18.0
611    - [API Change] Can specify clock granularity in engine settings.
612    - [BUGFIX] Pacer uses fixed clock granularity.  Since the change on
613      2018-04-09, it is not necessary to try to approximate the next tick
614      time in the pacer: it can use fix clock granularity specified by
615      the user.
616    - [BUGFIX] Do not tick constantly before handshake is done.
617    - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK.  Even
618      if we cannot allocate *more* packets, we could still be able to write
619      to one already allocated.
620    - [BUGFIX] Do not schedule pacer if there are no lost packets.
621
6222019-01-17
623    - 1.17.15
624    - [BUGFIX] http_client: make sure only one read per on_read() callback
625      is performed in the header conversion bypass (-B) mode.
626    - http_client: with -E, assign random priority when stream is created.
627    - [OPTIMIZATION] On immediate write, place an ACK frame into the first
628      buffered packet if an ACK is queued.  This reduces the number of
629      standalone ACK packets.
630    - [OPTIMIZATION] Allow placing more than one STREAM frame from the same
631      stream into an outgoing packet.  This change minimizes the number of
632      buffered packets required to store several small HTTP messages by
633      virtue of allowing more than one STREAM frame from HEADERS stream in
634      the same packet.
635    - [OPTIMIZATION] Flush headers when writing to buffered packets.  This
636      causes the headers to be written to the same buffered packet queue,
637      thereby improving packet utilization, especially for small HTTP
638      messages.
639
6402019-01-16
641    - 1.17.14
642    - [FEATURE] http_client can now collect stats: time to connect, TTFB,
643      time to download, requests per seconds, and bandwidth.  See -t flag.
644    - [BUGFIX] http_client: -B, -K, and -r can be used at the same time.
645    - [BUGFIX] http_client: do not display cert chain before each request.
646      Now this is only done once per connection, if the handshake is
647      successful and -a option is given.
648    - [BUGFIX] Do not wait to dispatch on_close() after reading.  If a
649      stream is scheduled to be closed after on_read() callback returns,
650      close it immediately instead of waiting until the end of the tick.
651      If client creates new request from on_close() event, they will be
652      processed in the same tick instead of waiting for the next one.
653    - [BUGFIX] HEADERS stream is critical: always treat it with highest
654      priority.
655
6562019-01-10
657    - 1.17.12
658    - [FEATURE] http_client can now issue parallel requests in the context
659      of a single connection.  See -w option.
660
6612019-01-03
662    - 1.17.11
663    - Fix strict aliasing warning in optimized compilation.
664
6652018-12-27
666    - 1.17.10
667    - Fix the example program to be able to use parallel connections
668      again.  (See the -n argument.)
669
6702018-12-18
671    - 1.17.9
672    - [BUGFIX] Engine: reduce minimum batch size from 256 to 4
673
6742018-12-10
675    - 1.17.8
676    - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux
677
6782018-12-03
679    - 1.17.7
680    - [BUGFIX] Do not unset PING alarm before ringing expired alarms.
681      This prevented PING from ever being sent.
682
6832018-11-29
684    - 1.17.6
685    - Add failsafe: resume sending packets after some time
686
687      The change puts a 1-second limit on the amount of time the engine
688      will not send packets after some packets are delayed.  This makes
689      the library robust in case the user does not unblock the engine
690      explicitly using lsquic_engine_send_unsent_packets() call.
691
692    - [BUGFIX] Handle corner cases in send controller when packets are
693      a) delayed or b) dropped during repackaging.
694    - [BUGFIX] Memory leak: destroy buffered packets during controller
695      cleanup.
696
6972018-11-16
698    - 1.17.3
699    - [BUGFIX] Do not send STOP_WAITING frames when using Q044
700
7012018-10-19
702    - 1.17.2
703    - [BUGFIX] Memory leak in test_frame_rw unit test.
704    - [BUGFIX] Parsing packets with short IETF header: do not overwrite
705      flags.  (Only a problem in unit tests -- benign otherwise.)
706
7072018-10-16
708    - 1.17.0
709    - [API Change] Packet out Memory Interface (PMI) update:
710      - Split PMI pool return into pmi_release and pmi_return
711      - PMI callbacks take peer_ctx and is_ipv6 arguments
712    - [BUGFIX] Fix use-after-free when certificate is updated
713    - Silence gcc warning in optimized mode by performing useless
714      initialization
715    - cmake: use the standard variable CMAKE_BUILD_TYPE instead of
716      DEVEL_MODE
717
7182018-10-03
719    - 1.16.0
720    - [API Change] Add lsquic_conn_n_avail_streams()
721    - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on
722
7232018-09-27
724    - 1.15.0
725    - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses
726    - [BUGFIX] free uncompressed headers correctly when error occurs
727
7282018-09-12
729    - 1.14.3
730    - [BUGFIX] Do not abort conn on STREAM frame for a reset stream
731    - [BUGFIX] Drop packets that would become empty due to repackaging.
732      Packets on the scheduled queue may be marked for repackaging.
733      Frames such as ACK frame that are never resent are removed from
734      repackaged packets.  We must check that the newly repackaged packet
735      would not be empty.  If it would be, it is destroyed instead and
736      the next packet on the scheduled queue is used.  Note that this
737      change only affects the logic to return the next packet to be sent.
738      Lost packets that are being rescheduled are already processed in
739      this fashion.
740    - Byteswap CID before logging it - this makes it match Chrome CIDs.
741      (Except Q035, which is the last little-endian GQUIC version we
742      support.)
743
7442018-09-06
745    - 1.14.0
746    - [API Change] Disable packet sending if full batch cannot be sent
747      If lsquic_packets_out_f() cannot send the whole batch, disable
748      packet sending until lsquic_engine_send_unsent_packets() is called.
749    - [BUGFIX] Handle case when STREAM frame does not fit.
750    - [BUGFIX] Always allow incoming STREAM frames to overlap.  Peers
751      may send overlapping STREAM frames even if using versions older
752      than Q043.
753    - Custom header set fixes:
754      - set "FIN reached" flag when custom header with FIN flag is
755        claimed;
756      - do not return custom header set for a reset stream.
757
7582018-08-27
759
760    - 1.13.0
761    - [FEATURE, API Change] Add ability to create custom header set
762      objects via callbacks.  This avoids reading and re-parsing
763      headers from the stream.
764
7652018-08-27
766
767    - 1.12.4
768    - Fix memory leak when engine is destroyed
769    - Fix memory leak in http_client
770    - Fix gcc warning in unit tests
771
7722018-08-22
773
774    - 1.12.3
775    - [BUGFIX] Fix duplicate STREAM frame detection
776
7772018-08-20
778
779    - 1.12.2
780    - [BUGFIX] Update count of scheduled bytes when adjusting size of
781      an already-scheduled packet.
782    - Emit info instead of warning messages when stream is used in
783      unexpected ways.
784
7852018-08-17
786
787    - 1.12.0
788    - [FEATURE, API Change] Add support for certificate verification
789
7902018-08-16
791
792    - 1.11.1
793    - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code
794
7952018-08-15
796
797    - 1.11.0
798    - [FEATURE] Add support for Q044.
799
8002018-08-09
801
802    - 1.10.2
803    - [BUGFIX] Don't go over limit when creating delayed streams
804
8052018-07-10
806
807    - 1.10.1
808    - [BUGFIX]  process connections after each batch of packets is read
809      This avoids a problem of accumulating a very large list of packets
810      (possible when speeds are high and socket's receive buffer is large)
811      and processing it all at once.
812    - If glibc is older than 2.17, link with rt.  This is necessary for
813      clock_getres(2).
814    - Add version macros to lsquic.h; remove unnecessary includes.
815
8162018-06-13
817
818    - [BUGFIX] allow multiple parallel connections by default
819
820      Use the original method of tracking connections by CIDs by default.
821      If zero-sized CID support is turned on, connections are tracked by
822      the address.  A new connection is not created if another connection
823      is using the same network address
824
8252018-05-30
826
827    - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets
828
8292018-05-24
830
831    - Close connection properly when packet encryption fails
832
8332018-05-23
834
835    - [BUGFIX] Do not produce packet sequence gaps due to delayed packets
836
8372018-05-21
838
839    - [API Change] Add optional callback to call when handshake is done
840    - [API Change, BUGFIX] After send failure, wait until transport available
841
8422018-05-18
843
844    - [API] Expose useful lsquic_ver2str[] in lsquic.h
845    - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision
846    - Improve checks of number of incoming streams limit and associated
847      error reporting.
848    - [BUGFIX] Command-line option `-6` now works correctly.
849
8502018-05-16
851
852    - [FEATURE] DNS resolution
853    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
854    - http_client: fix priority range generated by -E flag
855
8562018-05-09
857
858    - [FEATURE] Add support for Q043.
859    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
860    - Fix typo in debug message.
861    - Fix code indentation.
862    - Add /* fallthru */ comment to stop newer gcc from complaining.
863    - Logger: fix compilation of optimized Windows build.
864
8652018-05-04
866
867    - [FEATURE] Add support for Q042.
868    - Remove comment: MSPC is obsolete (no code changes)
869    - Prog: use lsquic_str2ver() when processing -o version flag
870    - Remove unused CTIM and SRBF transport parameters
871    - Disable QUIC versions Q037 and Q038 by default
872    - Fix Windows compilation by including compat header file in
873      lshpack.c
874    - Address warnings produced by newer versions of gcc
875    - Future-proof: turn off -Werror
876
8772018-05-02
878
879    - [BUGFIX] Make lsquic_conn_quic_version() available
880    - Switch to using ls-hpack 1.1
881    - [BUGFIX] Do not ignore stream resets after receiving FIN
882
8832018-04-27
884
885    - HPACK: do not allow header block to end with table size update.
886
8872018-04-25
888
889    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
890      packets.
891    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
892    - [BUGFIX] connections with blocked scheduled packets are not tickable
893      for sending.
894    - [BUGFIX] Conn is tickable if it wants to send a connection-level
895      frame.
896
8972018-04-23
898
899    - Fix busy loop: tickable must make progress.  When connection is
900      self-reporting as tickable, it must make progress when ticked.  There
901      are two issues:
902        1. If there are buffered packets, the connection is only tickable if
903           they can be sent out.
904        2. A connection is tickable if there are streams on the servicing
905           queue.  When the tick occurs, we must service the stream
906           independent of whether any packets are sent.
907    - Fix assertion in pacer which can be incorrect under some
908      conditions.
909    - cmake: do not turn on address sanitizer if in Travis.
910
9112018-04-20
912
913    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
914      changes.
915
9162018-04-19
917
918    - [BUGFIX] Add connection to Tickable Queue on stream write
919    - cmake: use MSVC variable instead of trying to detect
920    - engine: improve connection incref/decref logging
921    - stream: don't ignore errors that may occur on triggered flush
922    - connection: remove obsolete method
923    - engine: indicate connection as tickable if previous call went
924      over threshold
925
9262018-04-09
927
928    [API Change, OPTIMIZATION] Only process conns that need to be processed
929
930    The API is simplified: do not expose the user code to several
931    queues.  A "connection queue" is now an internal concept.
932    The user processes connections using the single function
933    lsquic_engine_process_conns().  When this function is called,
934    only those connections are processed that need to be processed.
935    A connection needs to be processed when:
936
937        1. New incoming packets have been fed to the connection.
938        2. User wants to read from a stream that is readable.
939        3. User wants to write to a stream that is writeable.
940        4. There are buffered packets that can be sent out.  (This
941           means that the user wrote to a stream outside of the
942           lsquic library callback.)
943        5. A control frame (such as BLOCKED) needs to be sent out.
944        6. A stream needs to be serviced or delayed stream needs to
945           be created.
946        7. An alarm rings.
947        8. Pacer timer expires.
948
949    To achieve this, the library places the connections into two
950    priority queues (min heaps):
951
952        1. Tickable Queue; and
953        2. Advisory Tick Time queue (ATTQ).
954
955    Each time lsquic_engine_process_conns() is called, the Tickable
956    Queue is emptied.  After the connections have been ticked, they are
957    queried again: if a connection is not being closed, it is placed
958    either in the Tickable Queue if it is ready to be ticked again or
959    it is placed in the Advisory Tick Time Queue.  It is assumed that
960    a connection always has at least one timer set (the idle alarm).
961
962    The connections in the Tickable Queue are arranged in the least
963    recently ticked order.  This lets connections that have been quiet
964    longer to get their packets scheduled first.
965
966    This change means that the library no longer needs to be ticked
967    periodically.  The user code can query the library when is the
968    next tick event and schedule it exactly.  When connections are
969    processed, only the tickable connections are processed, not *all*
970    the connections.  When there are no tick events, it means that no
971    timer event is necessary -- only the file descriptor READ event
972    is active.
973
974    The following are improvements and simplifications that have
975    been triggered:
976
977        - Queue of connections with incoming packets is gone.
978        - "Pending Read/Write Events" Queue is gone (along with its
979          history and progress checks).  This queue has become the
980          Tickable Queue.
981        - The connection hash no longer needs to track the connection
982          insertion order.
983
9842018-04-02
985
986    - [FEATURE] Windows support
987
988    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
989
9902018-03-09
991
992    - [OPTIMIZATION] Merge series of ACKs if possible
993
994      Parsed single-range ACK frames (that is the majority of frames) are
995      saved in the connection and their processing is deferred until the
996      connection is ticked.  If several ACKs come in a series between
997      adjacent ticks, we check whether the latest ACK is a strict superset
998      of the saved ACK.  If it is, the older ACK is not processed.
999
1000      If ACK frames can be merged, they are merged and only one of them is
1001      either processed or saved.
1002
1003    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
1004
1005      Never generate a gap in the sent packet number sequence.  This reduces
1006      the send history to a single number instead of potentially a series of
1007      packet ranges and thereby speeds up ACK verification.
1008
1009      By default, detecting a gap in the send history is not fatal: only a
1010      single warning is generated per connection.  The connection can continue
1011      to operate even if the ACK verification code is not able to detect some
1012      inconsistencies.
1013
1014    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
1015
1016      The first part of struct lsquic_send_ctl now consists of members that
1017      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
1018      which is the normal case).  To speed up reads and writes, we no longer
1019      try to save space by using 8- and 16-bit integers.  Use regular integer
1020      width for everything.
1021
1022    - [OPTIMIZATION] Cache size of sent packet.
1023
1024    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
1025
1026      Instead of parsing our own ACK frames when packet has been acked,
1027      use the value saved in the packet_out structure when the ACK frame
1028      was generated.
1029
1030    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
1031
1032    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
1033
1034    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
1035
1036    - Fix: http_client: fix -I flag; switch assert() to abort()
1037
10382018-02-26
1039    - [API Change] lsquic_engine_connect() returns pointer to the connection
1040      object.
1041    - [API Change] Add lsquic_conn_get_engine() to get engine object from
1042      connection object.
1043    - [API Change] Add lsquic_conn_status() to query connection status.
1044    - [API Change] Add add lsquic_conn_set_ctx().
1045    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
1046    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
1047      arrives.
1048    - [OPTIMIZATION] Do not compile expensive send controller sanity check
1049      by default.
1050    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
1051    - [OPTIMIZATION] Only make squeeze function call if necessary.
1052    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
1053    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
1054    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
1055    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
1056    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
1057      ordered.
1058    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
1059    - Fix: reset incoming streams that arrive after we send GOAWAY.
1060    - Fix: delay client on_new_conn() call until connection is fully set up.
1061    - Fixes to buffered packets logic: splitting, STREAM frame elision.
1062    - Fix: do not dispatch on_write callback if no packets are available.
1063    - Fix WINDOW_UPDATE send and resend logic.
1064    - Fix STREAM frame extension code.
1065    - Fix: Drop unflushed data when stream is reset.
1066    - Switch to tracking CWND using bytes rather than packets.
1067    - Fix TCP friendly adjustment in cubic.
1068    - Fix: do not generate invalid STOP_WAITING frames during high packet
1069      loss.
1070    - Pacer fixes.
1071
10722017-12-18
1073
1074    - Fix: better follow cubic curve after idle period
1075    - Fix: add missing parts to outgoing packet splitting code
1076    - Fix: compilation using gcc 4.8.4
1077
10782017-10-31
1079
1080    - Add APIs.txt -- describes LSQUIC APIs
1081
10822017-10-31
1083
1084    - [API Change] Sendfile-like functionality is gone.  The stream no
1085      longer opens files and deals with file descriptors.  (Among other
1086      things, this makes the code more portable.)  Three writing functions
1087      are provided:
1088
1089        lsquic_stream_write
1090        lsquic_stream_writev
1091        lsquic_stream_writef    (NEW)
1092
1093      lsquic_stream_writef() is given an abstract reader that has function
1094      pointers for size() and read() functions which the user can implement.
1095      This is the most flexible way.  lsquic_stream_write() and
1096      lsquic_stream_writev() are now both implemented as wrappers around
1097      lsquic_stream_writef().
1098
1099    - [OPTIMIZATION] When writing to stream, be it within or without the
1100      on_write() callback, place data directly into packet buffer,
1101      bypassing auxiliary data structures.  This reduces amount of memory
1102      required, for the amount of data that can be written is limited
1103      by the congestion window.
1104
1105      To support writes outside the on_write() callback, we keep N
1106      outgoing packet buffers per connection which can be written to
1107      by any stream.  One half of these are reserved for the highest
1108      priority stream(s), the other half for all other streams.  This way,
1109      low-priority streams cannot write instead of high-priority streams
1110      and, on the other hand, low-priority streams get a chance to send
1111      their packets out.
1112
1113      The algorithm is as follows:
1114
1115      - When user writes to stream outside of the callback:
1116        - If this is the highest priority stream, place it onto the
1117          reserved N/2 queue or fail.
1118            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
1119             rather than N/2, allowing high-priority streams to write as
1120             much as can be sent.)
1121        - If the stream is not the highest priority, try to place the
1122          data onto the reserved N/2 queue or fail.
1123      - When tick occurs *and* more packets can be scheduled:
1124        - Transfer packets from the high N/2 queue to the scheduled
1125          queue.
1126        - If more scheduling is allowed:
1127          - Call on_write callbacks for highest-priority streams,
1128            placing resulting packets directly onto the scheduled queue.
1129        - If more scheduling is allowed:
1130          - Transfer packets from the low N/2 queue to the scheduled
1131            queue.
1132        - If more scheduling is allowed:
1133          - Call on_write callbacks for non-highest-priority streams,
1134            placing resulting packets directly onto the scheduled queue
1135
1136      The number N is currently 20, but it could be varied based on
1137      resource usage.
1138
1139    - If stream is created due to incoming headers, make headers readable
1140      from on_new.
1141
1142    - Outgoing packets are no longer marked non-writeable to prevent placing
1143      more than one STREAM frame from the same stream into a single packet.
1144      This property is maintained via code flow and an explicit check.
1145      Packets for stream data are allocated using a special function.
1146
1147    - STREAM frame elision is cheaper, as we only perform it if a reset
1148      stream has outgoing packets referencing it.
1149
1150    - lsquic_packet_out_t is smaller, as stream_rec elements are now
1151      inside a union.
1152
11532017-10-12
1154
1155    - Do not send RST_STREAM when stream is closed for reading
1156    - Raise maximum header size from 4K to 64K
1157    - Check header name and value lengths against maximum imposed by HPACK
1158    - Fix NULL dereference in stream flow controller
1159
11602017-10-09
1161
1162    - Hide handshake implementation behind a set of function pointers
1163    - Use monotonically increasing clock
1164    - Make sure that retx delay is not larger than the max of 60 seconds
1165
11662017-09-29
1167
1168    - A few fixes to code and README
1169
11702017-09-28
1171
1172    - Add support for Q041; drop support for Q040
1173
11742017-09-27
1175
1176    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
1177
11782017-09-26
1179
1180    - Add support for Mac OS
1181    - Add support for Raspberry Pi
1182    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
1183
11842017-09-22
1185
1186    - Initial release
1187