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