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