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