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