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