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