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