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