CHANGELOG revision 99a1ad0f
12021-03-03
2    - 2.29.3
3    - [BUGFIX] Do not send RESET_STREAM if writing to stream is already
4      finished.
5    - perf_client: wait for all ACKs before exiting.
6    - Improve how generated RESET_STREAM is logged.
7    - Fix compilation in different combos of adv_tick/conn_stats flags.
8    - Move qpack warning disablement into src/liblsquic/CMakeLists.txt.
9
102021-02-23
11    - 2.29.2
12    - Fix regression in gQUIC server: bug #234.
13
142021-02-18
15    - 2.29.1
16    - Make it possible to build the library and unit tests without
17      libevent.
18    - Build all command-line utilities in bin/
19    - Add perf_client and perf_server command-line utilities to test
20      performance according to the "perf" protocol.
21
222021-02-10
23    - 2.29.0
24    - [FEATURE] QUIC and HTTP/3 Internet Draft 34 support and v1 support.
25      The latter is turned off by default.
26    - Drop support for ID-28 and ID-32.
27    - [BUGFIX] IETF QUIC mini conn receive history (trechist): allow
28      unlimited inserts by dropping smallest elements.
29    - [BUGFIX] gQUIC: set STTL to correct value, issue #226.
30    - [BUGFIX] Account for poison packet gap when MTU probe was too large.
31
322021-02-03
33    - 2.28.0
34    - [API] lsquic_ssl_sess_to_resume_info() is the new way to get
35      session info.
36    - [API] Add user pointer to ea_generate_scid callback.
37    - [API] Add lsquic_dcid_from_packet() -- a fast function to parse
38      out DCID.
39    - [API] Add es_max_batch_size to control outgoing packet batch size.
40    - [BUGFIX] Disallow sending of header while promise is being written.
41    - [BUGFIX] Flush stream when buffered bytes exhaust stream cap.
42    - [BUGFIX] Deactivate HQ frame if writing push promise fails.
43    - Perform sanity check on peer transport parameters and fail the
44      handshake if some flow control limits are too low.  This can be
45      turned off, see es_check_tp_sanity.
46    - http_server: fix how requests are read in "hq" mode.
47
482021-01-27
49    - 2.27.6
50    - [BUGFIX] Replace dispatch read/write events assertion with a check.
51    - [BUGFIX] gQUIC connection close: there is no HEADERS stream without
52      HTTP flag, see issue #220.
53    - http_client, http_server: add hq protocol support and other flags
54      for use with QUIC Interop Runner.
55    - Fix: use IP_PMTUDISC_PROBE (not IP_PMTUDISC_DO) on Linux to set
56      Don't-Fragment flag on outgoing packets.
57    - Fix send_packets_one_by_one on Windows platform when sending
58      multiple iovs, see issue #218.
59    - Exit echo_client on Windows immediately, see issue #219.
60
612021-01-18
62    - 2.27.5
63    - [BUGFIX] Assertion in send controller when path validation fails.
64    - [BUGFIX] Assertion in BBR when sending out-of-order packets is
65      detected.
66    - [BUGFIX] Drop overflow receive history ranges when cloning.
67    - Log correct size of the incoming packet.
68    - Fix internal stream function.
69
702021-01-13
71    - 2.27.4
72    - [API] Add lsquic_conn_get_sni(), fixes issue #203.
73
742021-01-08
75    - 2.27.3
76    - [BUGFIX] gQUIC: do not destroy critical streams when connection is
77      closed.  See issue #201.
78    - [BUGFIX] Drop #if LSQUIC_CONN_STATS from lsquic.h.  See issue #211.
79    - [BUGFIX] Challenge cancellation when path validation fails.
80    - [BUGFIX] Do not send FIN if RST is scheduled to be sent on a stream.
81    - [BUGFIX] gQUIC's is_tickable() when connection is closing.
82    - [BUGFIX] Q050 processing of GOAWAY frames.
83
842021-01-06
85    - 2.27.2
86    - [BUGFIX] Memory corruption in receive history copy-ranges function.
87
882021-01-06
89    - 2.27.1
90    - [API] New knob to set outgoing packet batch size.
91    - Aborted connection now become tickable immediately.
92    - Abort connection when HTTP/3 frame cannot be opened (can only happen
93      when malloc fails).
94
952020-12-31
96    - 2.27.0
97    - [API] Remove keylog callbacks.  See issue #188.
98    - Add a bit more ALPN logging.
99
1002020-12-23
101    - 2.26.2
102    - [BUGFIX] Do not drop incoming data when STOP_SENDING is received.
103    - [BUGFIX] Receipt of STOP_SENDING should not cause read-reset.
104    - [BUGFIX] Allow stream writes after receiving RESET.
105    - [BUGFIX] Typo in stream: ANDing enum with wrong flag.
106    - [BUGFIX] Reset elision: do not use zero as special stream ID value,
107      for zero is a valid stream ID in IETF QUIC.
108    - [API] Add optional on_conncloseframe_received() callback.
109    - Use zero error code in RESET stream sent in response to STOP_SENDING.
110
1112020-12-17
112    - 2.26.1
113    - [BUGFIX] Migration corner cases: drop or pad over path challenge
114      and response frames when necessary.
115    - Fix stream unit test.
116
1172020-12-09
118    - 2.26.0
119    - [OPTIMIZATION] Adjust packet reordering threshold when spurious losses
120      are detected.
121    - [API] Pass pointer to local sockaddr to ea_get_ssl_ctx() callback.
122
1232020-12-04
124    - 2.25.0
125    - [API, FEATURE] Add es_delay_onclose option to delay on_close until all
126      data is ACKed.  Use new function lsquic_stream_has_unacked_data() to
127      learn whether peer acknowledged all data written to stream.
128    - [API] Add optional on_reset() stream callback to get notifications
129      when RESET or STOP_SENDING frames are received.
130    - [BUGFIX] On STOP_SENDING, make conn tickable is _writeable_, not
131      readable.
132
1332020-11-24
134    - 2.24.5
135    - [FEATURE] Improve Delayed ACKs extension and turn it on by default.
136    - Limit receive history to a finite amount of memory.
137
1382020-11-18
139    - 2.24.4
140    - [BUGFIX] Check whether ECN counts are set in ACK struct before using
141      them.
142    - [BUGFIX] Calculate TLP timer correctly when only one packet is in
143      flight.
144    - [BUGFIX] Min RTO delay is 200 milliseconds, not 1 second.
145    - [BUGFIX] Memory leak in QPACK decoder handler: discard hset when
146      necessary.
147    - Allow retired and drained CIDs to be reused after a timeout.
148
1492020-11-11
150    - 2.24.3
151    - [BUGFIX] Get rough RTT estimate on receipt of Handshake packet.
152      This prevents BBR on the client from miscalculating pacing rate,
153      slowing down sending of ACK packets.
154    - [BUGFIX] Packets sent during handshake are app-limited.
155    - [BUGFIX] Bandwidth sampler starts in app-limited mode.
156    - [BUGFIX] Memory leak: free QPACK handler context in stream dtor.
157    - Logging improvements.
158
1592020-11-05
160    - 2.24.2
161    - [BUGFIX] Allow peer to migrate when its SCID is zero-length.
162    - [BUGFIX] PADDING size calculation: only one Short packet can be
163      coalesced.  (This should have been part of the fix in 2.24.1).
164    - Abort connect if received NEW_CONNECTION_ID but current DCID is
165      zero-length.
166    - Improve log messages
167
1682020-11-04
169    - 2.24.1
170    - [API] Allow use of ea_get_ssl_ctx() on the client (optional).  PR #186.
171    - [BUGFIX] Expand datagram with ack-eliciting Initial to 1200 bytes
172      after connection promotion.
173    - [BUGFIX] Discard CRYPTO frames from lower encryption levels after
174      connection promotion.
175    - [BUGFIX] Cancel path response if path could not be initialized.
176
1772020-10-28
178    - 2.24.0
179    - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.  Drop ID-30
180      and ID-31 support.
181    - [BUGFIX] Divide-by-zero in newly enabled conn stats code when no
182      packets were sent.
183    - [BUGFIX] Memory leak in gQUIC client when server hello cannot be
184      parsed.
185    - [BUGFIX] Server Initial packet size calculation.
186    - Log user-agent and CONN_CLOSE reason when peer reports error.
187    - Example programs: Specify ALPN for echo and md5 clients and servers
188      (issue #184).
189    - Example programs: Don't add "QUIC_" prefix to lines in keylog file
190      (issue #185).
191    - http_server: Fix fd leak in preadv mode; fix preadv() usage when
192      reading from disk.
193
1942020-10-22
195    - 2.23.3
196    - [BUGFIX] Update packetization threshold when writing to stream
197      after packet size is reduced following an RTO.
198
1992020-10-21
200    - 2.23.2
201    - Add QPACK stats collection and experimentation mode, see the new
202      es_qpack_experiment setting.
203    - Log busy connection stats every second using the new "conn-stats"
204      log module.
205    - Log about skipping only once.
206    - Update HTTP/3 greased frame type formula.
207    - Use ls-qpack v2.2.1.
208
2092020-10-13
210    - 2.23.1
211    - [FEATURE] IETF Client 0-RTT support.
212    - [BUGFIX] Do not schedule MTU probe on first tick.
213    - [BUGFIX] Parsing DATAGRAM frame.
214    - [BUGFIX] If push promise fails, do not invoke hset destructor.
215    - [BUGFIX] Client: When connections are IDed by port number, check DCID.
216      Fixes issue #176.
217    - [BUGFIX] Regression introduced in 2.22.0: use correct number of
218      PNSs for IETF mini conn during promotion.
219    - Revert the 2.22.1 lsquic_is_valid_hs_packet change.  All that was
220      necessary is a change to the way we call it in lsquic_engine.  No
221      change to the function itself is required.
222
2232020-10-08
224    - 2.22.1
225    - [BUGFIX] Function that checks validity of handshake packets.
226
2272020-10-07
228    - 2.22.0
229    - [FEATURE] Extensible HTTP Priorities (HTTP/3 only).
230    - [FEATURE] Add conn context to packet-out memory interface (PR #175).
231    - [BUGFIX] gQUIC proof generation: allocate buffer big enough for
232      signature (issue #173).
233    - [BUGFIX] Make library thread-safe: drop use of global variables
234      (issue #133, issue #167).
235    - [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame.
236    - [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX,
237      instead of keeping them in a separate hash, potentially leading
238      to mismatches.
239    - [BUGFIX] Stream data discard infinite loop: break on FIN.
240    - cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171).
241    - Support randomized packet number to begin a connection.
242    - Mini and full IETF connection size optimization.
243    - http_client: specify HTTP priorities based on stream conditions.
244
2452020-09-29
246    - 2.21.0
247    - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.
248    - [API] Let user generate Souce Connection IDs.
249    - [FEATURE] Allow building lsquic as shared library.
250    - [OPTIMIZATION] Receive history: use a single contiguous memory
251      block for everything.
252    - Deprecate QUIC versions ID-27 and ID-30.
253
2542020-09-25
255    - 2.20.2
256    - [BUGFIX] Memory leak: free pushed promise when refcnt is zero.
257    - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets.
258
2592020-09-23
260    - 2.20.1
261    - [BUGFIX] Typo in new "validate peer addr by DCID" code.  It is
262      a benign bug (works either way), but better to fix it.
263    - Simplify Stream Priority Iterator (SPI).
264    - Minor documentation updates.
265
2662020-09-15
267    - 2.20.0
268    - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support.
269    - [FEATURE] Unreliable Datagram Extension support.
270    - [FEATURE] Adaptive congestion controller.
271    - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams.
272    - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO
273      data comes in.
274    - [BUGFIX] Spin bit is now strictly per path; value is reset on
275      DCID change.
276    - [BUGFIX] Check that max value of max_streams_uni and
277      max_streams_bidi TPs is 2^60.
278    - [BUGFIX] Close IETF mini conn immediately if crypto session
279      cannot be initialized.
280    - Deprecate ID-28 (no browser uses it): it's no longer in the
281      default versions list.
282    - New programs duck_server and duck_client that implement the
283      experimental siduck-00 protocol.  They quack!
284    - IETF crypto streams: don't limit ourselves from sending.
285    - Command-line programs: turn off QL loss bits if -G is used, as
286      Wireshark cannot decrypt QUIC packets when this extension is used.
287    - Turn all h3 framing unit tests back on.
288    - Fix malo initialization when compiled in no-pool mode.
289
2902020-09-08
291    - 2.19.10
292    - [FEATURE] Add lsquic_stream_pwritev().  This function allows one to
293      reduce the number of system calls required to read a file from disk
294      by using lsquic_stream_pwritev() together with preadv(2).
295    - [BUGFIX] When stream is reset, it is writeable -- let user collect
296      the error.
297    - [BUGFIX] Calculate correct conn flow control if reading ends early.
298    - [BUGFIX] Remove stream from read and write queues on internal
299      shutdown.  This is a regression introduced in 2.19.7.
300    - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation.
301    - Turn off mini conn history when compiling with Visual Studio; this
302      allows the project to compile on Windows again.
303    - http_client: Add -3 flag to stop reading from streams early; code
304      cleanup.
305    - Don't use -Werror.
306
3072020-09-02
308    - 2.19.8
309    - [FEATURE] Update the timestamp extension to latest version.
310    - [FEATURE] Cope with appearance of ECN blackholes.
311    - [OPTIMIZATION] return packno offset and size when header is generated.
312    - [BUGFIX] ignore old ACK frames in mini conns.
313    - [BUGFIX] Mark initial server path as initialized.
314    - [BUGFIX] Do not merge ACK if ECN counts do not match.
315    - Turn incoming packet number history in mini conn back on.
316    - Record mini conn event history again when compiled in debug mode.
317    - IETF mini conn: log when ACK is queued.
318    - Clean up and refactor code in several places.
319
3202020-08-26
321    - 2.19.7
322    - Handle ECT-CE event: issue a loss event.
323    - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE.
324    - Use Max Push ID in GOAWAY frame to cancel promises.
325    - Add support for HTTP/3 CANCEL_PUSH frame.
326    - lsquic_stream_is_pushed: streams without headers are never pushed.
327    - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down.
328    - Improve logic whether to generate CONNECTION_CLOSE.
329
3302020-08-20
331    - 2.19.6
332    - Don't process incoming ECN marks if ECN is not enabled.
333    - Schedule ACK when incoming packet is marked with CE.
334
3352020-08-11
336    - 2.19.5
337    - [BUGFIX] Generate frame record when moving an ACK from one buffered
338      packet to another.
339
3402020-08-06
341    - 2.19.4
342    - [BUGFIX] Do not return an oversize MTU probe to connection twice.
343    - [FEATURE] Delayed Acks updated to latest draft.  Still experimental.
344    - Minor code cleanup in IETF full connection.
345
3462020-08-04
347    - 2.19.3
348    - [BUGFIX] Regression in 2.19.1 that breaks Q050
349
3502020-07-30
351    - 2.19.2
352    - [BUGFIX] Do not reduce PLPMTU size by network overhead.
353    - [BUGFIX] Windows build.
354
3552020-07-29
356    - 2.19.1
357    - [FEATURE] DPLPMTUD support.  IETF connections now search for the
358      maximum packet size, improving throughput.
359    - [DEBUG] Record event in stream history when on_close() is called
360      in dtor.
361
3622020-07-22
363    - 2.18.2
364    - [BUGFIX] Send prediction: lone path challenges do not get squeezed out
365    - Fix crash in http_client: now -K and -B can be used simultaneously
366
3672020-07-14
368    - 2.18.1
369    - [FEATURE] Implement the "QUIC bit grease" extension.
370    - [BUGFIX] Selecting CID used for logging on client.
371    - [BUGFIX] Header protection assertion.
372    - [BUGFIX] Server: enable SSL key logging when cert lookup callback
373      is not set.
374    - Remove some dead code.
375
3762020-07-06
377    - 2.18.0
378    - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT"
379      always refers to early data, meaning a request that the server can
380      reply to in the very first return flight.  A more appropriate name
381      for what we support on the client site is "session resumption," which
382      is standard TLS terminology.  Later, when we add support for 0-RTT
383      (early data), we can use the 0-RTT terminology again, this time in
384      proper context.
385    - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL.
386    - [BUGFIX] Make connection tickable when it's marked as closed.
387    - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode.
388    - Several documentation fixes and improvements.
389    - Minor code cleanup.
390
3912020-06-24
392    - 2.17.2
393    - [BUGFIX] Infinite loop in stream: advance read offset when discarding
394      data.
395    - [OPTIMIZATION] Header protection: only initialize cipher once.
396    - [OPTIMIZATION] Batch header protection application.
397
3982020-06-18
399    - 2.17.1
400    - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support.
401    - [BUGFIX] Check that scheduled packets are also sendable when
402      calculating a connection's "tickable" property.
403    - [BUGFIX] Don't count scheduled packets as in-flight when pacer is
404      checked on tick.
405    - gQUIC: delay calling on_new for pushed stream until headers are
406      available.
407    - Allow nested calls to lsquic_engine_connect().
408
4092020-06-15
410    - 2.16.3
411    - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn
412      instead of dropping them.
413    - [BUGFIX] Crash: check decrypt context before using it.  This regression
414      was introduced in 2.16.2.
415
4162020-06-12
417    - 2.16.2
418    - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in
419      ClientHello.  This change requires using a newer version of BoringSSL.
420    - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor.
421    - [BUGFIX] IETF QUIC client: narrow migration check to a single path.
422    - [BUGFIX] NULL dereference: set function pointers for alarm for path
423      challenges 2 and 3.
424    - [BUGFIX] HTTP/3 headers may be followed immediately by trailers.
425    - [BUGFIX] Log messages when SCID changes.
426
4272020-06-09
428    - 2.16.1
429    - [FEATURE] Use "no-progress timeout" after which connection is closed.
430    - [BUGFIX] Select new SCID when current SCID is retired.
431    - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during
432      mini/full handoff.
433    - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated.
434    - [BUGFIX] Mini conn: consider amplification when deciding to return
435      TICK_SEND.
436    - [BUGFIX] Don't double-count tag length in amplification logic.
437    - [BUGFIX] Don't squeeze out lone path challenges.
438    - [BUGFIX] Log messages dealing with scheduled packet queue squeezing.
439    - [BUGFIX] don't wipe current path if no path challenge responses
440      come back.
441    - [BUGFIX] When path is reset, don't lose path_id which is used for
442      logging.
443    - Downgrade flow control violations to info log level from warnings.
444    - Fix connection cap extra check, avoid checks in nested calls.
445    - Fix some unit tests when extra checks are enabled.
446    - Use ls-hpack 2.2.1.
447    - Turn off unconditional extra checks for IETF clients.
448    - Extra checks: don't verify sent size of hello packets.  Client
449      changes DCID length and this check will fail.
450
4512020-06-03
452    - 2.16.0
453    - [API] Use lsxpack_header v206.
454    - [FEATURE] Windows supported.
455    - [BUGFIX] Fix uninitialized variable use in client (regression in
456      2.15.0).
457    - Use ls-hpack 2.2.0.
458    - Use ls-qpack 2.2.0.
459    - Sample programs: fix the way maximum number of packets is
460      calculated.
461    - Remove some dead code.
462
4632020-05-27
464    - 2.15.0
465    - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support.
466    - [BUGFIX] Ignore Retry packets after other packets are decrypted
467      successfully.
468    - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte
469      length minimum.
470    - http_client: fix and optimize lsxpack_header allocator.
471    - Drop support for Internet Draft 25.
472
4732020-05-19
474    - 2.14.8
475    - Support Android.
476    - Rerrange tree: move command-line examples into bin/ and unit
477      tests into tests/ from test/unittests/.
478
4792020-05-12
480    - 2.14.7
481    - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050.
482    - [BUGFIX] Frame reader: skip headers if target stream is closed.
483
4842020-05-06
485    - 2.14.6
486    - [BUGFIX] Fix amplification mitigation in 0-RTT case.
487    - [BUGFIX] IETF mini connection should not tickable if cannot send
488      a packet due to amplification.
489    - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2.
490    - [BUGFIX] Qlog server certificates for IETF QUIC connections.
491    - [BUGFIX] Uninitialized struct padding usage in tokgen (benign).
492    - [BUGFIX] Incorrect argument to shi_lookup() (benign).
493
4942020-04-29
495    - 2.14.5
496    - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match.
497    - [BUGFIX] Frame reader: skip headers if target stream is not found.
498    - [BUGFIX] Log message in QPACK decoder handler.
499
5002020-04-24
501    - 2.14.4
502    - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams.
503    - [BUGFIX] IETF client: set correct flags on bidirectional streams.
504    - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned
505      streams.
506    - [BUGFIX] Do not call header callbacks after stream is closed.
507    - Use ls-qpack 2.1.1
508
5092020-04-15
510    - 2.14.3
511    - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback.
512    - [BUGFIX] Use ls-hpack 2.1.1
513    - Improve stream code readability.
514    - Use ls-qpack 2.0.5
515
5162020-04-08
517    - 2.14.2
518    - [BUGFIX] Use ls-qpack 2.0.4
519    - [BUGFIX] Honor max packet size on the client and when path changes.
520    - http_server: fix prepare_decode() function.
521
5222020-04-07
523    - 2.14.1
524    - [BUGFIX] Place connections on tickable queue when sending is reenabled.
525    - [BUGFIX] A connection is tickable if it has unsent packets.
526    - [BUGFIX] Heed peer's max_packet_size transport parameter.
527
5282020-03-30
529    - 2.14.0
530    - [API] Use lsxpack_header structure to send HTTP headers.
531    - [OPTIMIZATION] nocopy's readable_bytes() function.
532    - http_server: fix typo in error message
533    - Use ls-hpack 2.1.0.
534    - Use ls-qpack 2.0.0.
535
5362020-03-23
537    - 2.13.3
538    - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked.
539
5402020-03-13
541    - 2.13.2
542    - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode().
543
5442020-03-12
545    - 2.13.1
546    - [API] Use lsxpack_header structure to process incoming headers.
547    - [BUGFIX] Fix assertion when zero-padding Initial packet.
548    - [BUGFIX] Use idle timeout before we learn of peer's value.
549    - Use ls-hpack 2.0.1 -- has lsxpack_header changes.
550    - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not
551      used yet).
552    - Code cleanup: prefix exported functions with "lsquic_".
553
5542020-03-02
555    - 2.12.0
556    - [FEATURE] QUIC timestamps extension.
557    - [API] New: ea_alpn that is used when not in HTTP mode.
558    - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC.
559    - [BUGFIX] Benign double-free -- issue #110.
560    - [BUGFIX] Printing of transport parameters.
561
5622020-02-24
563    - 2.11.1
564    - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support.
565    - [FEATURE] Add experimental delayed ACKs extension.
566    - Drop support for Internet Draft 24.
567    - Code cleanup.
568
5692020-02-14
570    - 2.10.6
571    - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error.
572    - [BUGFIX] Send gap warning due to missing poisoned packet.
573    - Stream unit test for scenario in issue #106.
574
5752020-02-13
576    - 2.10.5
577    - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct
578      time.
579    - Refactor transport parameters module.
580    - Minor code cleanup.
581
5822020-02-11
583    - 2.10.4
584    - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received.
585    - [BUGFIX] Don't treat garbage UDP padding as library error; ignore
586      it instead.
587    - [BUGFIX] Fix compilation on FreeBSD (missing header).
588    - Code cleanup: remove unnecessary #includes.
589
5902020-01-31
591    - 2.10.3
592    - [BUGFIX] Cancel path responses and challenges on old path when
593      switching to new path
594    - Logging network path information.
595
5962020-01-30
597    - 2.10.2
598    - [BUGFIX] Do not delay ACKs for Initial and Handshake packets.
599    - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn
600      promotion.
601    - Logging improvements.
602    - http_client: discard data faster.
603
6042020-01-29
605    - 2.10.1
606    - [BUGFIX] Coalesced packets could get longer than normal packet
607      size.
608    - Add spin bit configuration option es_spin (-o spin=[01]).
609    - Disable spin bit in 1/16 of connections.
610    - Improve logging a bit.
611
6122020-01-28
613    - 2.10.0
614    - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support.
615    - [API] Drop support for ID-23.
616    - [BUGFIX] Set key phase bit on outgoing packets correctly.
617    - Code cleanup.
618
6192020-01-20
620    - 2.9.0
621    - [API] Drop support for Q039.
622    - Improve ACK-queuing logic.  Send an ACK once in a while if
623      peer keeps on sending non-ack-eliciting packets.
624    - Improve Alt-Svc string: Q050 and later are not included in
625      the old-style "quic" string.
626    - Send stateless resets if connection could not be promoted.
627    - Schedule MAX_DATA if needed when DATA_BLOCKED is received.
628    - Use ls-qpack 0.11.2 -- needed for server push optimization.
629    - Code cleanup: handle some error cases, improve logging.
630
6312020-01-16
632    - 2.8.9
633    - [BUGFIX] Use ls-qpack 0.11.1
634    - [OPTIMIZATION] Generate random bytes in batches.
635    - Change loss_bits transport parameter ID to 0x1057 following
636      latest draft.
637    - Randomize period with which PINGs are sent to elicit ACKs.
638    - Some refactoring and code cleanup.
639
6402020-01-14
641    - 2.8.8
642    - [BUGFIX] Invalid read when parsing IETF transport parameters
643      (this was benign).
644    - [OPTIMIZATION] Frame bundling when using buffered packets in
645      IETF QUIC: a) flush QPACK decoder stream and b) include ACKs
646      in opportunistic fashion.
647    - Fix HTTP/3 framing unit test.
648    - Code cleanup.
649
6502020-01-09
651    - 2.8.7
652    - [BUGFIX] Initial packet size check for IETF mini conn applies to
653      UDP payload, not QUIC packet.
654    - Support old and new school loss_bits transport parameter.
655    - Use Q run length of 64 as suggested in the loss bits Draft.
656    - Undo square wave count when packet is delayed.
657    - Code cleanup; minor fixes.
658
6592020-01-06
660    - 2.8.5
661    - [HTTP3] Verify number of bytes in incoming DATA frames against
662      content-length.
663    - [HTTP3] Stop issuing streams credits if peer stops opening QPACK
664      decoder window.  This addresses a potential attack whereby client
665      can cause the server to keep allocating memory.  See Security
666      Considerations in the QPACK draft.
667    - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later.
668    - [BUGFIX] Init IETF connection flow controller using correct setting.
669    - [BUGFIX] Fix unintended sign extension when removing header protection.
670    - Code cleanup and minor fixes.
671
6722019-12-30
673    - 2.8.1
674    - [FEATURE] Use occasional packet number gaps to detect optimistic
675      ACK attacks.
676    - [BUGFIX] Q050 client: all packet numbers are in the App PNS.
677    - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range
678      ACK frames.
679    - IETF QUIC: use RTT estimate in ack timeout calculation.
680    - IETF handshake: abort conn when unexpected errors occur.
681    - Use PING rather than MAX_DATA frames to elicit ACKs from peer.
682    - Server: enforce 1200 byte Initial minimum packet size.
683    - [CLEANUP] Remove code to disable gQUIC crypto.
684    - [CLEANUP] Remove n_timestamps from ACK info struct.
685    - Optimize driver: reuse previous ancillary message when possible.
686
6872019-12-23
688    - 2.8.0
689    - [FEATURE] Add support for Q050.
690    - [OPTIMIZATION] Reduce mallocs in gQUIC handshake.
691    - [BUGFIX] Disable redo of failed STREAM frame insertion with debug
692      logging.
693
6942019-12-18
695    - 2.7.3
696    - [DEBUG] Further dedup next advisory tick messages when reason is
697      the same.
698    - [BUGFIX] Update size of `a` array in TP struct.  Fixes (benign)
699      GitHub bug #94.
700    - Use Cubic by default again instead of BBR, as it delivers more
701      consistent performance.
702
7032019-12-11
704    - 2.7.2
705    - [BUGFIX] Send controller: update scheduled bytes when DCID length
706      changes (IETF client).
707    - [BUGFIX] Drop alarm check from sanity test.  It no longer works now
708      that we use loss chains.
709    - [PORTABILITY] Fix build on Alpine Linux.
710    - [PORTABILITY] Fix build using XCode.
711    - Client initial DCID length: use RAND_bytes() instead of rand(3).
712    - Add unit tests for connection min heap.
713    - [DEBUG] Log CID in gQUIC handshake module
714    - [DEBUG] Turn on extra checks for IETF client send controller.
715    - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer.
716    - [DEBUG] QPACK decoder handler: log header error code.
717
7182019-12-05
719    - 2.7.1
720    - [BUGFIX] client: don't call ignore_init() in middle of batch send.
721      ignore_init() makes an assumption that the send controller has access
722      to all outgoing packets.  This change wraps a few IETF full connection
723      methods to delay calling ignore_init() until the engine returns all
724      outgoing packets that were batched.
725    - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them.
726      This needs to be done because the value of errno may be lost on
727      some platforms.
728    - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes.
729    - [BUGFIX] Do not cancel header block processing after failure, as
730      QPACK releases the reference in that case.
731    - [CLEANUP] IETF encrypt: replace assert(0) with a warning.
732    - Several small improvements to the test server.
733
7342019-11-27
735    - 2.7.0
736    - [API, FEATURE] Close connection immediately when ea_packets_out()
737      fails with errno != EAGAIN.  The API change is that errno is now
738      examined.  Make sure to set it if using something other than
739      sendmsg() to send packets.
740    - [CLEANUP] Immediate close logic in IETF full conn.
741    - [CLEANUP] Fix bogus warning about uninitialized `pair' variable.
742
7432019-11-22
744    - 2.6.7
745    - [FEATURE] Implement the QL extension (offered by default).
746    - [BUGFIX] Abort when encountering unexpected HTTP/3 frames.
747    - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly.
748    - [DEBUG] Turn on debug message for next advisory tick.
749
7502019-11-20
751    - 2.6.6
752    - [BUGFIX] Using HTTP/3 to HTTP/1.x converter.
753    - [BUGFIX] Truncate log messages instead of throwing them away.
754
7552019-11-15
756    - 2.6.5
757    - [BUGFIX] High priority buffered packet queue length.
758    - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds.
759
7602019-11-12
761    - 2.6.3
762    - [BUGFIX] Close DATA frames with empty payload correctly.
763
7642019-11-11
765    - 2.6.2
766    - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular
767      packets.
768    - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets.
769    - [BUGFIX] Truncate ACK frame rather instead of aborting IETF
770      connection.
771    - [BUGFIX] Client: don't send duplicate reset tokens.
772    - [BUGFIX] Remove invalid assertion in H3 framing code.
773    - Silence a warning in send ctl by restructuring switch() statement.
774
7752019-11-08
776    - 2.6.1
777    - [BUGFIX] set retry token on all resubmitted packets.
778    - Event log: log sent packet flags.  In particular, this allows one
779      to see whether token was sent.
780    - Don't migrate client if es_allow_migration is false.
781
7822019-11-07
783    - 2.6.0
784    - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support
785
7862019-11-07
787    - 2.5.2
788    - [BUGFIX] argument order to gQUIC client constructor.  Regression
789      introduced in 2.5.0.
790    - [BUGFIX] split buffered packet error recovery: destroy the correct
791      packet.
792
7932019-11-04
794    - 2.5.1
795    - [BUGFIX] Fix double-free when emptying a packet number space.
796    - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly.
797    - [BUGFIX] Use random values in bits 4 and 5 of the first byte of
798      verneg packets (regression introduced in 2.5.0).
799    - [OPTIMIZATION] Don't compile in expensive attq checks by default.
800    - [OPTIMIZATION] http_server: compile regexes only once.
801
8022019-10-31
803    - 2.5.0
804    - [API] lsquic_engine_connect() can now be passed QUIC version to use.
805    - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent.
806    - [BUGFIX] Don't evict streams from priority iterator if there is
807      only one queue.
808    - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes.
809    - Use ls-qpack v0.10.7.
810
8112019-10-24
812    - 2.4.10
813    - [BUGFIX] IETF QUIC server: fix uninitialized variable use.
814    - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object.
815    - [BUGFIX] Use issuer name and serial number to cache certs (SKID
816      values are not unique).
817    - [BUGFIX] Always set the idle alarm in IETF connection so that it
818      can time out.
819    - Use ls-qpack v0.10.6, as it silences some warnings.
820
8212019-10-21
822    - 2.4.8
823    - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5.
824
8252019-10-15
826    - 2.4.7
827    - Add echo client and server to the distibution.
828    - Add MD5 client and server to the distibution.
829    - Fix http_client: check command-line arguments better, prevent crash.
830    - Fix IETF conn: can_write_ack() should only care about APP PNS.
831    - Client: delay stream creation until handshake succeds.
832    - Reset HTTP stream whose write end is closed prematurely.
833    - Fix tickable(): mirror behavior of tick() wrt buffered packets.
834    - Log reason why engine is tickable.
835
8362019-10-11
837    - 2.4.6
838    - Minor code cleanup and logging improvements.
839    - Server and client programs: include library version (e.g. 2.4.6)
840      into `server' and `user-agent' headers.
841
8422019-10-08
843    - 2.4.5
844    - [OPTIMIZATION]: flush encoder stream only when necessary.
845    - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix.
846    - [BUGFIX] Typo in IETF conn SETTINGS writer.
847    - Use latest BoringSSL.
848
8492019-10-08
850    - 2.4.4
851    - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header.
852    - [BUGFIX] NULL dereference when H3 frame header would be split.
853    - [BUGFIX] Do not close fixed-size H3 frame prematurely.
854    - [BUGFIX] Allow PING frames in IETF mini conn.
855    - [BUGFIX] Mini conns: don't send any packets after receiving
856      CONNECTION_CLOSE.
857    - [BUGFIX] Client migration: reserve slot for DCID from transport params.
858    - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there.
859    - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a
860      valid stream number).
861    - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected.
862    - [OPTIMIZATION] Closed connection only gets one chance to send packets.
863    - [OPTIMIZATION] Flush headers stream before packetizing stream data.
864    - [OPTIMIZATION] process QPACK encoder STREAM frames immediately.
865    - Update ls-qpack to v0.10.1.
866
8672019-09-30
868    - 2.4.3
869    - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header.
870      For example, h3-Q043.  Chrome will switch to using this format at
871      some point in the future.
872    - [BUGFIX] Send correct value in max_streams_uni transport param
873    - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set
874      to 0xFFFFFFFF
875
8762019-09-23
877    - 2.4.2
878    - [BUGFIX] H3 framing: fix zero-byte write when space is available
879    - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream
880      is closed
881    - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY
882    - [BUGFIX] Fix use-after-free in IETF full conn
883    - [OPTIMIZATION] Wait for session tickets for two seconds and then drop
884      SSL object and crypto streams.
885
8862019-09-18
887    - 2.4.0
888    - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support
889
8902019-09-13
891    - 2.3.1
892    - [BUGFIX] Fix memory leaks
893    - [BUGFIX] Fix unit tests
894
8952019-09-12
896    - 2.3.0
897    - [FEATURE] BBR congestion control is on by default
898    - [BUGFIX] BBR app-limited logic
899    - [BUGFIX] Fix uninitialized warnings in IETF
900    - [BUGFIX] Update ls-qpack to v0.9.14
901    - [CLEANUP] Code cleanup
902
9032019-09-11
904    - 2.2.0
905    - [FEATURE] Server code is included in the library
906    - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22)
907
9082019-05-13
909    - 1.21.2
910    - [OPTIMIZATION] HPACK: use history to improve compression performance
911
9122019-05-06
913    - 1.21.1
914    - [BUGFIX] If FIN or RST not received, don't delay stream destruction.
915    - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to
916      search static and dynamic tables.
917
9182019-04-12
919    - 1.21.0
920    - [FEATURE] Add qlog log module.
921
9222019-04-01
923    - 1.20.0
924    - [FEATURE] Add support for Q046.
925
9262019-03-19
927    - 1.19.6
928    - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we
929      send.  ACK frames placed in packets in buffered queues (optimization
930      introduced in 1.17.15) can be preceded by an ACK frame generated later.
931      In this case, the older ACK frame should not be sent out, as Chromium-
932      based servers flags decrease in the ACK frame's Largest Observed value
933      as an error.
934
9352019-03-05
936    - 1.19.5
937    - [BUGFIX] Use correct public key from PUBS based on KEXS index.
938    - [BUGFIX] Check flags before dispatching writes, avoiding assert.
939    - [BUGFIX] Set :scheme to "https" (instead of "HTTP").
940
9412019-02-25
942    - 1.19.4
943    - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob.
944    - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed.
945    - Log number of pacer calls at DEBUG, rather than NOTICE, level.
946
9472019-02-18
948    - 1.19.3
949    - [BUGFIX] Q044: don't encode packet number in 6 bytes.  Six-byte
950      packet number encoding does not exist in Q044.  This fixes a
951      regression introduced in '[BUGFIX] Buffered packets can contain
952      ACK frames' -- we need to keep QUIC version in mind when selecting
953      the longest possible packet number encoding used for the buffered
954      packet that carries the ACK.
955    - [BUGFIX] Do not increase CWND when timeout occurs.
956    - http_client: support setting handshake timeout on command line.
957      Use -o handshake_to=timeout.
958    - http_client: use -k to connect UDP socket to pick up ICMP errors.
959    - http_client: allow pathless mode, when only handshake is performed
960      without issuing any requests.  This can be done by simply not
961      specifying a -p flag on the command line.
962
9632019-02-11
964    - 1.19.2
965    - [BUGFIX] Begin negotiation with version provided in 0-RTT info.
966    - [BUGFIX] Version checking in zero_rtt deserialize function.
967
9682019-02-04
969    - 1.19.1
970    - [BUGFIX] Fix Windows build.
971
9722019-02-04
973    - 1.19.0
974    - [FEATURE, API Change] 0-RTT support.  Add function to export 0-RTT
975      information; it can be supplied to a subsequent connect() call.
976    - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support.
977    - [BUGFIX] Resuscitate the Windows build.
978    - [BUGFIX] Send HTTP settings (max header list size) if necessary.
979    - [BUGFIX] Buffered packets can contain ACK frames.
980    - [BUGFIX] Make packet writeable once all STREAM frames are elided.
981    - [BUGFIX] Fix potential null dereference when realloc fails.
982    - cmake: simplify build configuration.
983
9842019-01-28
985    - 1.18.0
986    - [API Change] Can specify clock granularity in engine settings.
987    - [BUGFIX] Pacer uses fixed clock granularity.  Since the change on
988      2018-04-09, it is not necessary to try to approximate the next tick
989      time in the pacer: it can use fix clock granularity specified by
990      the user.
991    - [BUGFIX] Do not tick constantly before handshake is done.
992    - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK.  Even
993      if we cannot allocate *more* packets, we could still be able to write
994      to one already allocated.
995    - [BUGFIX] Do not schedule pacer if there are no lost packets.
996
9972019-01-17
998    - 1.17.15
999    - [BUGFIX] http_client: make sure only one read per on_read() callback
1000      is performed in the header conversion bypass (-B) mode.
1001    - http_client: with -E, assign random priority when stream is created.
1002    - [OPTIMIZATION] On immediate write, place an ACK frame into the first
1003      buffered packet if an ACK is queued.  This reduces the number of
1004      standalone ACK packets.
1005    - [OPTIMIZATION] Allow placing more than one STREAM frame from the same
1006      stream into an outgoing packet.  This change minimizes the number of
1007      buffered packets required to store several small HTTP messages by
1008      virtue of allowing more than one STREAM frame from HEADERS stream in
1009      the same packet.
1010    - [OPTIMIZATION] Flush headers when writing to buffered packets.  This
1011      causes the headers to be written to the same buffered packet queue,
1012      thereby improving packet utilization, especially for small HTTP
1013      messages.
1014
10152019-01-16
1016    - 1.17.14
1017    - [FEATURE] http_client can now collect stats: time to connect, TTFB,
1018      time to download, requests per seconds, and bandwidth.  See -t flag.
1019    - [BUGFIX] http_client: -B, -K, and -r can be used at the same time.
1020    - [BUGFIX] http_client: do not display cert chain before each request.
1021      Now this is only done once per connection, if the handshake is
1022      successful and -a option is given.
1023    - [BUGFIX] Do not wait to dispatch on_close() after reading.  If a
1024      stream is scheduled to be closed after on_read() callback returns,
1025      close it immediately instead of waiting until the end of the tick.
1026      If client creates new request from on_close() event, they will be
1027      processed in the same tick instead of waiting for the next one.
1028    - [BUGFIX] HEADERS stream is critical: always treat it with highest
1029      priority.
1030
10312019-01-10
1032    - 1.17.12
1033    - [FEATURE] http_client can now issue parallel requests in the context
1034      of a single connection.  See -w option.
1035
10362019-01-03
1037    - 1.17.11
1038    - Fix strict aliasing warning in optimized compilation.
1039
10402018-12-27
1041    - 1.17.10
1042    - Fix the example program to be able to use parallel connections
1043      again.  (See the -n argument.)
1044
10452018-12-18
1046    - 1.17.9
1047    - [BUGFIX] Engine: reduce minimum batch size from 256 to 4
1048
10492018-12-10
1050    - 1.17.8
1051    - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux
1052
10532018-12-03
1054    - 1.17.7
1055    - [BUGFIX] Do not unset PING alarm before ringing expired alarms.
1056      This prevented PING from ever being sent.
1057
10582018-11-29
1059    - 1.17.6
1060    - Add failsafe: resume sending packets after some time
1061
1062      The change puts a 1-second limit on the amount of time the engine
1063      will not send packets after some packets are delayed.  This makes
1064      the library robust in case the user does not unblock the engine
1065      explicitly using lsquic_engine_send_unsent_packets() call.
1066
1067    - [BUGFIX] Handle corner cases in send controller when packets are
1068      a) delayed or b) dropped during repackaging.
1069    - [BUGFIX] Memory leak: destroy buffered packets during controller
1070      cleanup.
1071
10722018-11-16
1073    - 1.17.3
1074    - [BUGFIX] Do not send STOP_WAITING frames when using Q044
1075
10762018-10-19
1077    - 1.17.2
1078    - [BUGFIX] Memory leak in test_frame_rw unit test.
1079    - [BUGFIX] Parsing packets with short IETF header: do not overwrite
1080      flags.  (Only a problem in unit tests -- benign otherwise.)
1081
10822018-10-16
1083    - 1.17.0
1084    - [API Change] Packet out Memory Interface (PMI) update:
1085      - Split PMI pool return into pmi_release and pmi_return
1086      - PMI callbacks take peer_ctx and is_ipv6 arguments
1087    - [BUGFIX] Fix use-after-free when certificate is updated
1088    - Silence gcc warning in optimized mode by performing useless
1089      initialization
1090    - cmake: use the standard variable CMAKE_BUILD_TYPE instead of
1091      DEVEL_MODE
1092
10932018-10-03
1094    - 1.16.0
1095    - [API Change] Add lsquic_conn_n_avail_streams()
1096    - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on
1097
10982018-09-27
1099    - 1.15.0
1100    - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses
1101    - [BUGFIX] free uncompressed headers correctly when error occurs
1102
11032018-09-12
1104    - 1.14.3
1105    - [BUGFIX] Do not abort conn on STREAM frame for a reset stream
1106    - [BUGFIX] Drop packets that would become empty due to repackaging.
1107      Packets on the scheduled queue may be marked for repackaging.
1108      Frames such as ACK frame that are never resent are removed from
1109      repackaged packets.  We must check that the newly repackaged packet
1110      would not be empty.  If it would be, it is destroyed instead and
1111      the next packet on the scheduled queue is used.  Note that this
1112      change only affects the logic to return the next packet to be sent.
1113      Lost packets that are being rescheduled are already processed in
1114      this fashion.
1115    - Byteswap CID before logging it - this makes it match Chrome CIDs.
1116      (Except Q035, which is the last little-endian GQUIC version we
1117      support.)
1118
11192018-09-06
1120    - 1.14.0
1121    - [API Change] Disable packet sending if full batch cannot be sent
1122      If lsquic_packets_out_f() cannot send the whole batch, disable
1123      packet sending until lsquic_engine_send_unsent_packets() is called.
1124    - [BUGFIX] Handle case when STREAM frame does not fit.
1125    - [BUGFIX] Always allow incoming STREAM frames to overlap.  Peers
1126      may send overlapping STREAM frames even if using versions older
1127      than Q043.
1128    - Custom header set fixes:
1129      - set "FIN reached" flag when custom header with FIN flag is
1130        claimed;
1131      - do not return custom header set for a reset stream.
1132
11332018-08-27
1134
1135    - 1.13.0
1136    - [FEATURE, API Change] Add ability to create custom header set
1137      objects via callbacks.  This avoids reading and re-parsing
1138      headers from the stream.
1139
11402018-08-27
1141
1142    - 1.12.4
1143    - Fix memory leak when engine is destroyed
1144    - Fix memory leak in http_client
1145    - Fix gcc warning in unit tests
1146
11472018-08-22
1148
1149    - 1.12.3
1150    - [BUGFIX] Fix duplicate STREAM frame detection
1151
11522018-08-20
1153
1154    - 1.12.2
1155    - [BUGFIX] Update count of scheduled bytes when adjusting size of
1156      an already-scheduled packet.
1157    - Emit info instead of warning messages when stream is used in
1158      unexpected ways.
1159
11602018-08-17
1161
1162    - 1.12.0
1163    - [FEATURE, API Change] Add support for certificate verification
1164
11652018-08-16
1166
1167    - 1.11.1
1168    - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code
1169
11702018-08-15
1171
1172    - 1.11.0
1173    - [FEATURE] Add support for Q044.
1174
11752018-08-09
1176
1177    - 1.10.2
1178    - [BUGFIX] Don't go over limit when creating delayed streams
1179
11802018-07-10
1181
1182    - 1.10.1
1183    - [BUGFIX]  process connections after each batch of packets is read
1184      This avoids a problem of accumulating a very large list of packets
1185      (possible when speeds are high and socket's receive buffer is large)
1186      and processing it all at once.
1187    - If glibc is older than 2.17, link with rt.  This is necessary for
1188      clock_getres(2).
1189    - Add version macros to lsquic.h; remove unnecessary includes.
1190
11912018-06-13
1192
1193    - [BUGFIX] allow multiple parallel connections by default
1194
1195      Use the original method of tracking connections by CIDs by default.
1196      If zero-sized CID support is turned on, connections are tracked by
1197      the address.  A new connection is not created if another connection
1198      is using the same network address
1199
12002018-05-30
1201
1202    - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets
1203
12042018-05-24
1205
1206    - Close connection properly when packet encryption fails
1207
12082018-05-23
1209
1210    - [BUGFIX] Do not produce packet sequence gaps due to delayed packets
1211
12122018-05-21
1213
1214    - [API Change] Add optional callback to call when handshake is done
1215    - [API Change, BUGFIX] After send failure, wait until transport available
1216
12172018-05-18
1218
1219    - [API] Expose useful lsquic_ver2str[] in lsquic.h
1220    - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision
1221    - Improve checks of number of incoming streams limit and associated
1222      error reporting.
1223    - [BUGFIX] Command-line option `-6` now works correctly.
1224
12252018-05-16
1226
1227    - [FEATURE] DNS resolution
1228    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
1229    - http_client: fix priority range generated by -E flag
1230
12312018-05-09
1232
1233    - [FEATURE] Add support for Q043.
1234    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
1235    - Fix typo in debug message.
1236    - Fix code indentation.
1237    - Add /* fallthru */ comment to stop newer gcc from complaining.
1238    - Logger: fix compilation of optimized Windows build.
1239
12402018-05-04
1241
1242    - [FEATURE] Add support for Q042.
1243    - Remove comment: MSPC is obsolete (no code changes)
1244    - Prog: use lsquic_str2ver() when processing -o version flag
1245    - Remove unused CTIM and SRBF transport parameters
1246    - Disable QUIC versions Q037 and Q038 by default
1247    - Fix Windows compilation by including compat header file in
1248      lshpack.c
1249    - Address warnings produced by newer versions of gcc
1250    - Future-proof: turn off -Werror
1251
12522018-05-02
1253
1254    - [BUGFIX] Make lsquic_conn_quic_version() available
1255    - Switch to using ls-hpack 1.1
1256    - [BUGFIX] Do not ignore stream resets after receiving FIN
1257
12582018-04-27
1259
1260    - HPACK: do not allow header block to end with table size update.
1261
12622018-04-25
1263
1264    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
1265      packets.
1266    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
1267    - [BUGFIX] connections with blocked scheduled packets are not tickable
1268      for sending.
1269    - [BUGFIX] Conn is tickable if it wants to send a connection-level
1270      frame.
1271
12722018-04-23
1273
1274    - Fix busy loop: tickable must make progress.  When connection is
1275      self-reporting as tickable, it must make progress when ticked.  There
1276      are two issues:
1277        1. If there are buffered packets, the connection is only tickable if
1278           they can be sent out.
1279        2. A connection is tickable if there are streams on the servicing
1280           queue.  When the tick occurs, we must service the stream
1281           independent of whether any packets are sent.
1282    - Fix assertion in pacer which can be incorrect under some
1283      conditions.
1284    - cmake: do not turn on address sanitizer if in Travis.
1285
12862018-04-20
1287
1288    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
1289      changes.
1290
12912018-04-19
1292
1293    - [BUGFIX] Add connection to Tickable Queue on stream write
1294    - cmake: use MSVC variable instead of trying to detect
1295    - engine: improve connection incref/decref logging
1296    - stream: don't ignore errors that may occur on triggered flush
1297    - connection: remove obsolete method
1298    - engine: indicate connection as tickable if previous call went
1299      over threshold
1300
13012018-04-09
1302
1303    [API Change, OPTIMIZATION] Only process conns that need to be processed
1304
1305    The API is simplified: do not expose the user code to several
1306    queues.  A "connection queue" is now an internal concept.
1307    The user processes connections using the single function
1308    lsquic_engine_process_conns().  When this function is called,
1309    only those connections are processed that need to be processed.
1310    A connection needs to be processed when:
1311
1312        1. New incoming packets have been fed to the connection.
1313        2. User wants to read from a stream that is readable.
1314        3. User wants to write to a stream that is writeable.
1315        4. There are buffered packets that can be sent out.  (This
1316           means that the user wrote to a stream outside of the
1317           lsquic library callback.)
1318        5. A control frame (such as BLOCKED) needs to be sent out.
1319        6. A stream needs to be serviced or delayed stream needs to
1320           be created.
1321        7. An alarm rings.
1322        8. Pacer timer expires.
1323
1324    To achieve this, the library places the connections into two
1325    priority queues (min heaps):
1326
1327        1. Tickable Queue; and
1328        2. Advisory Tick Time queue (ATTQ).
1329
1330    Each time lsquic_engine_process_conns() is called, the Tickable
1331    Queue is emptied.  After the connections have been ticked, they are
1332    queried again: if a connection is not being closed, it is placed
1333    either in the Tickable Queue if it is ready to be ticked again or
1334    it is placed in the Advisory Tick Time Queue.  It is assumed that
1335    a connection always has at least one timer set (the idle alarm).
1336
1337    The connections in the Tickable Queue are arranged in the least
1338    recently ticked order.  This lets connections that have been quiet
1339    longer to get their packets scheduled first.
1340
1341    This change means that the library no longer needs to be ticked
1342    periodically.  The user code can query the library when is the
1343    next tick event and schedule it exactly.  When connections are
1344    processed, only the tickable connections are processed, not *all*
1345    the connections.  When there are no tick events, it means that no
1346    timer event is necessary -- only the file descriptor READ event
1347    is active.
1348
1349    The following are improvements and simplifications that have
1350    been triggered:
1351
1352        - Queue of connections with incoming packets is gone.
1353        - "Pending Read/Write Events" Queue is gone (along with its
1354          history and progress checks).  This queue has become the
1355          Tickable Queue.
1356        - The connection hash no longer needs to track the connection
1357          insertion order.
1358
13592018-04-02
1360
1361    - [FEATURE] Windows support
1362
1363    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
1364
13652018-03-09
1366
1367    - [OPTIMIZATION] Merge series of ACKs if possible
1368
1369      Parsed single-range ACK frames (that is the majority of frames) are
1370      saved in the connection and their processing is deferred until the
1371      connection is ticked.  If several ACKs come in a series between
1372      adjacent ticks, we check whether the latest ACK is a strict superset
1373      of the saved ACK.  If it is, the older ACK is not processed.
1374
1375      If ACK frames can be merged, they are merged and only one of them is
1376      either processed or saved.
1377
1378    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
1379
1380      Never generate a gap in the sent packet number sequence.  This reduces
1381      the send history to a single number instead of potentially a series of
1382      packet ranges and thereby speeds up ACK verification.
1383
1384      By default, detecting a gap in the send history is not fatal: only a
1385      single warning is generated per connection.  The connection can continue
1386      to operate even if the ACK verification code is not able to detect some
1387      inconsistencies.
1388
1389    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
1390
1391      The first part of struct lsquic_send_ctl now consists of members that
1392      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
1393      which is the normal case).  To speed up reads and writes, we no longer
1394      try to save space by using 8- and 16-bit integers.  Use regular integer
1395      width for everything.
1396
1397    - [OPTIMIZATION] Cache size of sent packet.
1398
1399    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
1400
1401      Instead of parsing our own ACK frames when packet has been acked,
1402      use the value saved in the packet_out structure when the ACK frame
1403      was generated.
1404
1405    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
1406
1407    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
1408
1409    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
1410
1411    - Fix: http_client: fix -I flag; switch assert() to abort()
1412
14132018-02-26
1414    - [API Change] lsquic_engine_connect() returns pointer to the connection
1415      object.
1416    - [API Change] Add lsquic_conn_get_engine() to get engine object from
1417      connection object.
1418    - [API Change] Add lsquic_conn_status() to query connection status.
1419    - [API Change] Add add lsquic_conn_set_ctx().
1420    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
1421    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
1422      arrives.
1423    - [OPTIMIZATION] Do not compile expensive send controller sanity check
1424      by default.
1425    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
1426    - [OPTIMIZATION] Only make squeeze function call if necessary.
1427    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
1428    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
1429    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
1430    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
1431    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
1432      ordered.
1433    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
1434    - Fix: reset incoming streams that arrive after we send GOAWAY.
1435    - Fix: delay client on_new_conn() call until connection is fully set up.
1436    - Fixes to buffered packets logic: splitting, STREAM frame elision.
1437    - Fix: do not dispatch on_write callback if no packets are available.
1438    - Fix WINDOW_UPDATE send and resend logic.
1439    - Fix STREAM frame extension code.
1440    - Fix: Drop unflushed data when stream is reset.
1441    - Switch to tracking CWND using bytes rather than packets.
1442    - Fix TCP friendly adjustment in cubic.
1443    - Fix: do not generate invalid STOP_WAITING frames during high packet
1444      loss.
1445    - Pacer fixes.
1446
14472017-12-18
1448
1449    - Fix: better follow cubic curve after idle period
1450    - Fix: add missing parts to outgoing packet splitting code
1451    - Fix: compilation using gcc 4.8.4
1452
14532017-10-31
1454
1455    - Add APIs.txt -- describes LSQUIC APIs
1456
14572017-10-31
1458
1459    - [API Change] Sendfile-like functionality is gone.  The stream no
1460      longer opens files and deals with file descriptors.  (Among other
1461      things, this makes the code more portable.)  Three writing functions
1462      are provided:
1463
1464        lsquic_stream_write
1465        lsquic_stream_writev
1466        lsquic_stream_writef    (NEW)
1467
1468      lsquic_stream_writef() is given an abstract reader that has function
1469      pointers for size() and read() functions which the user can implement.
1470      This is the most flexible way.  lsquic_stream_write() and
1471      lsquic_stream_writev() are now both implemented as wrappers around
1472      lsquic_stream_writef().
1473
1474    - [OPTIMIZATION] When writing to stream, be it within or without the
1475      on_write() callback, place data directly into packet buffer,
1476      bypassing auxiliary data structures.  This reduces amount of memory
1477      required, for the amount of data that can be written is limited
1478      by the congestion window.
1479
1480      To support writes outside the on_write() callback, we keep N
1481      outgoing packet buffers per connection which can be written to
1482      by any stream.  One half of these are reserved for the highest
1483      priority stream(s), the other half for all other streams.  This way,
1484      low-priority streams cannot write instead of high-priority streams
1485      and, on the other hand, low-priority streams get a chance to send
1486      their packets out.
1487
1488      The algorithm is as follows:
1489
1490      - When user writes to stream outside of the callback:
1491        - If this is the highest priority stream, place it onto the
1492          reserved N/2 queue or fail.
1493            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
1494             rather than N/2, allowing high-priority streams to write as
1495             much as can be sent.)
1496        - If the stream is not the highest priority, try to place the
1497          data onto the reserved N/2 queue or fail.
1498      - When tick occurs *and* more packets can be scheduled:
1499        - Transfer packets from the high N/2 queue to the scheduled
1500          queue.
1501        - If more scheduling is allowed:
1502          - Call on_write callbacks for highest-priority streams,
1503            placing resulting packets directly onto the scheduled queue.
1504        - If more scheduling is allowed:
1505          - Transfer packets from the low N/2 queue to the scheduled
1506            queue.
1507        - If more scheduling is allowed:
1508          - Call on_write callbacks for non-highest-priority streams,
1509            placing resulting packets directly onto the scheduled queue
1510
1511      The number N is currently 20, but it could be varied based on
1512      resource usage.
1513
1514    - If stream is created due to incoming headers, make headers readable
1515      from on_new.
1516
1517    - Outgoing packets are no longer marked non-writeable to prevent placing
1518      more than one STREAM frame from the same stream into a single packet.
1519      This property is maintained via code flow and an explicit check.
1520      Packets for stream data are allocated using a special function.
1521
1522    - STREAM frame elision is cheaper, as we only perform it if a reset
1523      stream has outgoing packets referencing it.
1524
1525    - lsquic_packet_out_t is smaller, as stream_rec elements are now
1526      inside a union.
1527
15282017-10-12
1529
1530    - Do not send RST_STREAM when stream is closed for reading
1531    - Raise maximum header size from 4K to 64K
1532    - Check header name and value lengths against maximum imposed by HPACK
1533    - Fix NULL dereference in stream flow controller
1534
15352017-10-09
1536
1537    - Hide handshake implementation behind a set of function pointers
1538    - Use monotonically increasing clock
1539    - Make sure that retx delay is not larger than the max of 60 seconds
1540
15412017-09-29
1542
1543    - A few fixes to code and README
1544
15452017-09-28
1546
1547    - Add support for Q041; drop support for Q040
1548
15492017-09-27
1550
1551    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
1552
15532017-09-26
1554
1555    - Add support for Mac OS
1556    - Add support for Raspberry Pi
1557    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
1558
15592017-09-22
1560
1561    - Initial release
1562