CHANGELOG revision cd35ff02
12020-09-23 2 - 2.20.1 3 - [BUGFIX] Typo in new "validate peer addr by DCID" code. It is 4 a benign bug (works either way), but better to fix it. 5 - Simplify Stream Priority Iterator (SPI). 6 - Minor documentation updates. 7 82020-09-15 9 - 2.20.0 10 - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support. 11 - [FEATURE] Unreliable Datagram Extension support. 12 - [FEATURE] Adaptive congestion controller. 13 - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams. 14 - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO 15 data comes in. 16 - [BUGFIX] Spin bit is now strictly per path; value is reset on 17 DCID change. 18 - [BUGFIX] Check that max value of max_streams_uni and 19 max_streams_bidi TPs is 2^60. 20 - [BUGFIX] Close IETF mini conn immediately if crypto session 21 cannot be initialized. 22 - Deprecate ID-28 (no browser uses it): it's no longer in the 23 default versions list. 24 - New programs duck_server and duck_client that implement the 25 experimental siduck-00 protocol. They quack! 26 - IETF crypto streams: don't limit ourselves from sending. 27 - Command-line programs: turn off QL loss bits if -G is used, as 28 Wireshark cannot decrypt QUIC packets when this extension is used. 29 - Turn all h3 framing unit tests back on. 30 - Fix malo initialization when compiled in no-pool mode. 31 322020-09-08 33 - 2.19.10 34 - [FEATURE] Add lsquic_stream_pwritev(). This function allows one to 35 reduce the number of system calls required to read a file from disk 36 by using lsquic_stream_pwritev() together with preadv(2). 37 - [BUGFIX] When stream is reset, it is writeable -- let user collect 38 the error. 39 - [BUGFIX] Calculate correct conn flow control if reading ends early. 40 - [BUGFIX] Remove stream from read and write queues on internal 41 shutdown. This is a regression introduced in 2.19.7. 42 - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation. 43 - Turn off mini conn history when compiling with Visual Studio; this 44 allows the project to compile on Windows again. 45 - http_client: Add -3 flag to stop reading from streams early; code 46 cleanup. 47 - Don't use -Werror. 48 492020-09-02 50 - 2.19.8 51 - [FEATURE] Update the timestamp extension to latest version. 52 - [FEATURE] Cope with appearance of ECN blackholes. 53 - [OPTIMIZATION] return packno offset and size when header is generated. 54 - [BUGFIX] ignore old ACK frames in mini conns. 55 - [BUGFIX] Mark initial server path as initialized. 56 - [BUGFIX] Do not merge ACK if ECN counts do not match. 57 - Turn incoming packet number history in mini conn back on. 58 - Record mini conn event history again when compiled in debug mode. 59 - IETF mini conn: log when ACK is queued. 60 - Clean up and refactor code in several places. 61 622020-08-26 63 - 2.19.7 64 - Handle ECT-CE event: issue a loss event. 65 - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE. 66 - Use Max Push ID in GOAWAY frame to cancel promises. 67 - Add support for HTTP/3 CANCEL_PUSH frame. 68 - lsquic_stream_is_pushed: streams without headers are never pushed. 69 - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down. 70 - Improve logic whether to generate CONNECTION_CLOSE. 71 722020-08-20 73 - 2.19.6 74 - Don't process incoming ECN marks if ECN is not enabled. 75 - Schedule ACK when incoming packet is marked with CE. 76 772020-08-11 78 - 2.19.5 79 - [BUGFIX] Generate frame record when moving an ACK from one buffered 80 packet to another. 81 822020-08-06 83 - 2.19.4 84 - [BUGFIX] Do not return an oversize MTU probe to connection twice. 85 - [FEATURE] Delayed Acks updated to latest draft. Still experimental. 86 - Minor code cleanup in IETF full connection. 87 882020-08-04 89 - 2.19.3 90 - [BUGFIX] Regression in 2.19.1 that breaks Q050 91 922020-07-30 93 - 2.19.2 94 - [BUGFIX] Do not reduce PLPMTU size by network overhead. 95 - [BUGFIX] Windows build. 96 972020-07-29 98 - 2.19.1 99 - [FEATURE] DPLPMTUD support. IETF connections now search for the 100 maximum packet size, improving throughput. 101 - [DEBUG] Record event in stream history when on_close() is called 102 in dtor. 103 1042020-07-22 105 - 2.18.2 106 - [BUGFIX] Send prediction: lone path challenges do not get squeezed out 107 - Fix crash in http_client: now -K and -B can be used simultaneously 108 1092020-07-14 110 - 2.18.1 111 - [FEATURE] Implement the "QUIC bit grease" extension. 112 - [BUGFIX] Selecting CID used for logging on client. 113 - [BUGFIX] Header protection assertion. 114 - [BUGFIX] Server: enable SSL key logging when cert lookup callback 115 is not set. 116 - Remove some dead code. 117 1182020-07-06 119 - 2.18.0 120 - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT" 121 always refers to early data, meaning a request that the server can 122 reply to in the very first return flight. A more appropriate name 123 for what we support on the client site is "session resumption," which 124 is standard TLS terminology. Later, when we add support for 0-RTT 125 (early data), we can use the 0-RTT terminology again, this time in 126 proper context. 127 - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL. 128 - [BUGFIX] Make connection tickable when it's marked as closed. 129 - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode. 130 - Several documentation fixes and improvements. 131 - Minor code cleanup. 132 1332020-06-24 134 - 2.17.2 135 - [BUGFIX] Infinite loop in stream: advance read offset when discarding 136 data. 137 - [OPTIMIZATION] Header protection: only initialize cipher once. 138 - [OPTIMIZATION] Batch header protection application. 139 1402020-06-18 141 - 2.17.1 142 - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support. 143 - [BUGFIX] Check that scheduled packets are also sendable when 144 calculating a connection's "tickable" property. 145 - [BUGFIX] Don't count scheduled packets as in-flight when pacer is 146 checked on tick. 147 - gQUIC: delay calling on_new for pushed stream until headers are 148 available. 149 - Allow nested calls to lsquic_engine_connect(). 150 1512020-06-15 152 - 2.16.3 153 - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn 154 instead of dropping them. 155 - [BUGFIX] Crash: check decrypt context before using it. This regression 156 was introduced in 2.16.2. 157 1582020-06-12 159 - 2.16.2 160 - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in 161 ClientHello. This change requires using a newer version of BoringSSL. 162 - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor. 163 - [BUGFIX] IETF QUIC client: narrow migration check to a single path. 164 - [BUGFIX] NULL dereference: set function pointers for alarm for path 165 challenges 2 and 3. 166 - [BUGFIX] HTTP/3 headers may be followed immediately by trailers. 167 - [BUGFIX] Log messages when SCID changes. 168 1692020-06-09 170 - 2.16.1 171 - [FEATURE] Use "no-progress timeout" after which connection is closed. 172 - [BUGFIX] Select new SCID when current SCID is retired. 173 - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during 174 mini/full handoff. 175 - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated. 176 - [BUGFIX] Mini conn: consider amplification when deciding to return 177 TICK_SEND. 178 - [BUGFIX] Don't double-count tag length in amplification logic. 179 - [BUGFIX] Don't squeeze out lone path challenges. 180 - [BUGFIX] Log messages dealing with scheduled packet queue squeezing. 181 - [BUGFIX] don't wipe current path if no path challenge responses 182 come back. 183 - [BUGFIX] When path is reset, don't lose path_id which is used for 184 logging. 185 - Downgrade flow control violations to info log level from warnings. 186 - Fix connection cap extra check, avoid checks in nested calls. 187 - Fix some unit tests when extra checks are enabled. 188 - Use ls-hpack 2.2.1. 189 - Turn off unconditional extra checks for IETF clients. 190 - Extra checks: don't verify sent size of hello packets. Client 191 changes DCID length and this check will fail. 192 1932020-06-03 194 - 2.16.0 195 - [API] Use lsxpack_header v206. 196 - [FEATURE] Windows supported. 197 - [BUGFIX] Fix uninitialized variable use in client (regression in 198 2.15.0). 199 - Use ls-hpack 2.2.0. 200 - Use ls-qpack 2.2.0. 201 - Sample programs: fix the way maximum number of packets is 202 calculated. 203 - Remove some dead code. 204 2052020-05-27 206 - 2.15.0 207 - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support. 208 - [BUGFIX] Ignore Retry packets after other packets are decrypted 209 successfully. 210 - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte 211 length minimum. 212 - http_client: fix and optimize lsxpack_header allocator. 213 - Drop support for Internet Draft 25. 214 2152020-05-19 216 - 2.14.8 217 - Support Android. 218 - Rerrange tree: move command-line examples into bin/ and unit 219 tests into tests/ from test/unittests/. 220 2212020-05-12 222 - 2.14.7 223 - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050. 224 - [BUGFIX] Frame reader: skip headers if target stream is closed. 225 2262020-05-06 227 - 2.14.6 228 - [BUGFIX] Fix amplification mitigation in 0-RTT case. 229 - [BUGFIX] IETF mini connection should not tickable if cannot send 230 a packet due to amplification. 231 - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2. 232 - [BUGFIX] Qlog server certificates for IETF QUIC connections. 233 - [BUGFIX] Uninitialized struct padding usage in tokgen (benign). 234 - [BUGFIX] Incorrect argument to shi_lookup() (benign). 235 2362020-04-29 237 - 2.14.5 238 - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match. 239 - [BUGFIX] Frame reader: skip headers if target stream is not found. 240 - [BUGFIX] Log message in QPACK decoder handler. 241 2422020-04-24 243 - 2.14.4 244 - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams. 245 - [BUGFIX] IETF client: set correct flags on bidirectional streams. 246 - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned 247 streams. 248 - [BUGFIX] Do not call header callbacks after stream is closed. 249 - Use ls-qpack 2.1.1 250 2512020-04-15 252 - 2.14.3 253 - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback. 254 - [BUGFIX] Use ls-hpack 2.1.1 255 - Improve stream code readability. 256 - Use ls-qpack 2.0.5 257 2582020-04-08 259 - 2.14.2 260 - [BUGFIX] Use ls-qpack 2.0.4 261 - [BUGFIX] Honor max packet size on the client and when path changes. 262 - http_server: fix prepare_decode() function. 263 2642020-04-07 265 - 2.14.1 266 - [BUGFIX] Place connections on tickable queue when sending is reenabled. 267 - [BUGFIX] A connection is tickable if it has unsent packets. 268 - [BUGFIX] Heed peer's max_packet_size transport parameter. 269 2702020-03-30 271 - 2.14.0 272 - [API] Use lsxpack_header structure to send HTTP headers. 273 - [OPTIMIZATION] nocopy's readable_bytes() function. 274 - http_server: fix typo in error message 275 - Use ls-hpack 2.1.0. 276 - Use ls-qpack 2.0.0. 277 2782020-03-23 279 - 2.13.3 280 - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked. 281 2822020-03-13 283 - 2.13.2 284 - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode(). 285 2862020-03-12 287 - 2.13.1 288 - [API] Use lsxpack_header structure to process incoming headers. 289 - [BUGFIX] Fix assertion when zero-padding Initial packet. 290 - [BUGFIX] Use idle timeout before we learn of peer's value. 291 - Use ls-hpack 2.0.1 -- has lsxpack_header changes. 292 - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not 293 used yet). 294 - Code cleanup: prefix exported functions with "lsquic_". 295 2962020-03-02 297 - 2.12.0 298 - [FEATURE] QUIC timestamps extension. 299 - [API] New: ea_alpn that is used when not in HTTP mode. 300 - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC. 301 - [BUGFIX] Benign double-free -- issue #110. 302 - [BUGFIX] Printing of transport parameters. 303 3042020-02-24 305 - 2.11.1 306 - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support. 307 - [FEATURE] Add experimental delayed ACKs extension. 308 - Drop support for Internet Draft 24. 309 - Code cleanup. 310 3112020-02-14 312 - 2.10.6 313 - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error. 314 - [BUGFIX] Send gap warning due to missing poisoned packet. 315 - Stream unit test for scenario in issue #106. 316 3172020-02-13 318 - 2.10.5 319 - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct 320 time. 321 - Refactor transport parameters module. 322 - Minor code cleanup. 323 3242020-02-11 325 - 2.10.4 326 - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received. 327 - [BUGFIX] Don't treat garbage UDP padding as library error; ignore 328 it instead. 329 - [BUGFIX] Fix compilation on FreeBSD (missing header). 330 - Code cleanup: remove unnecessary #includes. 331 3322020-01-31 333 - 2.10.3 334 - [BUGFIX] Cancel path responses and challenges on old path when 335 switching to new path 336 - Logging network path information. 337 3382020-01-30 339 - 2.10.2 340 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 341 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 342 promotion. 343 - Logging improvements. 344 - http_client: discard data faster. 345 3462020-01-29 347 - 2.10.1 348 - [BUGFIX] Coalesced packets could get longer than normal packet 349 size. 350 - Add spin bit configuration option es_spin (-o spin=[01]). 351 - Disable spin bit in 1/16 of connections. 352 - Improve logging a bit. 353 3542020-01-28 355 - 2.10.0 356 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 357 - [API] Drop support for ID-23. 358 - [BUGFIX] Set key phase bit on outgoing packets correctly. 359 - Code cleanup. 360 3612020-01-20 362 - 2.9.0 363 - [API] Drop support for Q039. 364 - Improve ACK-queuing logic. Send an ACK once in a while if 365 peer keeps on sending non-ack-eliciting packets. 366 - Improve Alt-Svc string: Q050 and later are not included in 367 the old-style "quic" string. 368 - Send stateless resets if connection could not be promoted. 369 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 370 - Use ls-qpack 0.11.2 -- needed for server push optimization. 371 - Code cleanup: handle some error cases, improve logging. 372 3732020-01-16 374 - 2.8.9 375 - [BUGFIX] Use ls-qpack 0.11.1 376 - [OPTIMIZATION] Generate random bytes in batches. 377 - Change loss_bits transport parameter ID to 0x1057 following 378 latest draft. 379 - Randomize period with which PINGs are sent to elicit ACKs. 380 - Some refactoring and code cleanup. 381 3822020-01-14 383 - 2.8.8 384 - [BUGFIX] Invalid read when parsing IETF transport parameters 385 (this was benign). 386 - [OPTIMIZATION] Frame bundling when using buffered packets in 387 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 388 in opportunistic fashion. 389 - Fix HTTP/3 framing unit test. 390 - Code cleanup. 391 3922020-01-09 393 - 2.8.7 394 - [BUGFIX] Initial packet size check for IETF mini conn applies to 395 UDP payload, not QUIC packet. 396 - Support old and new school loss_bits transport parameter. 397 - Use Q run length of 64 as suggested in the loss bits Draft. 398 - Undo square wave count when packet is delayed. 399 - Code cleanup; minor fixes. 400 4012020-01-06 402 - 2.8.5 403 - [HTTP3] Verify number of bytes in incoming DATA frames against 404 content-length. 405 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 406 decoder window. This addresses a potential attack whereby client 407 can cause the server to keep allocating memory. See Security 408 Considerations in the QPACK draft. 409 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 410 - [BUGFIX] Init IETF connection flow controller using correct setting. 411 - [BUGFIX] Fix unintended sign extension when removing header protection. 412 - Code cleanup and minor fixes. 413 4142019-12-30 415 - 2.8.1 416 - [FEATURE] Use occasional packet number gaps to detect optimistic 417 ACK attacks. 418 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 419 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 420 ACK frames. 421 - IETF QUIC: use RTT estimate in ack timeout calculation. 422 - IETF handshake: abort conn when unexpected errors occur. 423 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 424 - Server: enforce 1200 byte Initial minimum packet size. 425 - [CLEANUP] Remove code to disable gQUIC crypto. 426 - [CLEANUP] Remove n_timestamps from ACK info struct. 427 - Optimize driver: reuse previous ancillary message when possible. 428 4292019-12-23 430 - 2.8.0 431 - [FEATURE] Add support for Q050. 432 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 433 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 434 logging. 435 4362019-12-18 437 - 2.7.3 438 - [DEBUG] Further dedup next advisory tick messages when reason is 439 the same. 440 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 441 GitHub bug #94. 442 - Use Cubic by default again instead of BBR, as it delivers more 443 consistent performance. 444 4452019-12-11 446 - 2.7.2 447 - [BUGFIX] Send controller: update scheduled bytes when DCID length 448 changes (IETF client). 449 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 450 that we use loss chains. 451 - [PORTABILITY] Fix build on Alpine Linux. 452 - [PORTABILITY] Fix build using XCode. 453 - Client initial DCID length: use RAND_bytes() instead of rand(3). 454 - Add unit tests for connection min heap. 455 - [DEBUG] Log CID in gQUIC handshake module 456 - [DEBUG] Turn on extra checks for IETF client send controller. 457 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 458 - [DEBUG] QPACK decoder handler: log header error code. 459 4602019-12-05 461 - 2.7.1 462 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 463 ignore_init() makes an assumption that the send controller has access 464 to all outgoing packets. This change wraps a few IETF full connection 465 methods to delay calling ignore_init() until the engine returns all 466 outgoing packets that were batched. 467 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 468 This needs to be done because the value of errno may be lost on 469 some platforms. 470 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 471 - [BUGFIX] Do not cancel header block processing after failure, as 472 QPACK releases the reference in that case. 473 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 474 - Several small improvements to the test server. 475 4762019-11-27 477 - 2.7.0 478 - [API, FEATURE] Close connection immediately when ea_packets_out() 479 fails with errno != EAGAIN. The API change is that errno is now 480 examined. Make sure to set it if using something other than 481 sendmsg() to send packets. 482 - [CLEANUP] Immediate close logic in IETF full conn. 483 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 484 4852019-11-22 486 - 2.6.7 487 - [FEATURE] Implement the QL extension (offered by default). 488 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 489 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 490 - [DEBUG] Turn on debug message for next advisory tick. 491 4922019-11-20 493 - 2.6.6 494 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 495 - [BUGFIX] Truncate log messages instead of throwing them away. 496 4972019-11-15 498 - 2.6.5 499 - [BUGFIX] High priority buffered packet queue length. 500 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 501 5022019-11-12 503 - 2.6.3 504 - [BUGFIX] Close DATA frames with empty payload correctly. 505 5062019-11-11 507 - 2.6.2 508 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 509 packets. 510 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 511 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 512 connection. 513 - [BUGFIX] Client: don't send duplicate reset tokens. 514 - [BUGFIX] Remove invalid assertion in H3 framing code. 515 - Silence a warning in send ctl by restructuring switch() statement. 516 5172019-11-08 518 - 2.6.1 519 - [BUGFIX] set retry token on all resubmitted packets. 520 - Event log: log sent packet flags. In particular, this allows one 521 to see whether token was sent. 522 - Don't migrate client if es_allow_migration is false. 523 5242019-11-07 525 - 2.6.0 526 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 527 5282019-11-07 529 - 2.5.2 530 - [BUGFIX] argument order to gQUIC client constructor. Regression 531 introduced in 2.5.0. 532 - [BUGFIX] split buffered packet error recovery: destroy the correct 533 packet. 534 5352019-11-04 536 - 2.5.1 537 - [BUGFIX] Fix double-free when emptying a packet number space. 538 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 539 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 540 verneg packets (regression introduced in 2.5.0). 541 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 542 - [OPTIMIZATION] http_server: compile regexes only once. 543 5442019-10-31 545 - 2.5.0 546 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 547 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 548 - [BUGFIX] Don't evict streams from priority iterator if there is 549 only one queue. 550 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 551 - Use ls-qpack v0.10.7. 552 5532019-10-24 554 - 2.4.10 555 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 556 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 557 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 558 values are not unique). 559 - [BUGFIX] Always set the idle alarm in IETF connection so that it 560 can time out. 561 - Use ls-qpack v0.10.6, as it silences some warnings. 562 5632019-10-21 564 - 2.4.8 565 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 566 5672019-10-15 568 - 2.4.7 569 - Add echo client and server to the distibution. 570 - Add MD5 client and server to the distibution. 571 - Fix http_client: check command-line arguments better, prevent crash. 572 - Fix IETF conn: can_write_ack() should only care about APP PNS. 573 - Client: delay stream creation until handshake succeds. 574 - Reset HTTP stream whose write end is closed prematurely. 575 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 576 - Log reason why engine is tickable. 577 5782019-10-11 579 - 2.4.6 580 - Minor code cleanup and logging improvements. 581 - Server and client programs: include library version (e.g. 2.4.6) 582 into `server' and `user-agent' headers. 583 5842019-10-08 585 - 2.4.5 586 - [OPTIMIZATION]: flush encoder stream only when necessary. 587 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 588 - [BUGFIX] Typo in IETF conn SETTINGS writer. 589 - Use latest BoringSSL. 590 5912019-10-08 592 - 2.4.4 593 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 594 - [BUGFIX] NULL dereference when H3 frame header would be split. 595 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 596 - [BUGFIX] Allow PING frames in IETF mini conn. 597 - [BUGFIX] Mini conns: don't send any packets after receiving 598 CONNECTION_CLOSE. 599 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 600 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 601 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 602 valid stream number). 603 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 604 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 605 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 606 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 607 - Update ls-qpack to v0.10.1. 608 6092019-09-30 610 - 2.4.3 611 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 612 For example, h3-Q043. Chrome will switch to using this format at 613 some point in the future. 614 - [BUGFIX] Send correct value in max_streams_uni transport param 615 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 616 to 0xFFFFFFFF 617 6182019-09-23 619 - 2.4.2 620 - [BUGFIX] H3 framing: fix zero-byte write when space is available 621 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 622 is closed 623 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 624 - [BUGFIX] Fix use-after-free in IETF full conn 625 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 626 SSL object and crypto streams. 627 6282019-09-18 629 - 2.4.0 630 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 631 6322019-09-13 633 - 2.3.1 634 - [BUGFIX] Fix memory leaks 635 - [BUGFIX] Fix unit tests 636 6372019-09-12 638 - 2.3.0 639 - [FEATURE] BBR congestion control is on by default 640 - [BUGFIX] BBR app-limited logic 641 - [BUGFIX] Fix uninitialized warnings in IETF 642 - [BUGFIX] Update ls-qpack to v0.9.14 643 - [CLEANUP] Code cleanup 644 6452019-09-11 646 - 2.2.0 647 - [FEATURE] Server code is included in the library 648 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 649 6502019-05-13 651 - 1.21.2 652 - [OPTIMIZATION] HPACK: use history to improve compression performance 653 6542019-05-06 655 - 1.21.1 656 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 657 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 658 search static and dynamic tables. 659 6602019-04-12 661 - 1.21.0 662 - [FEATURE] Add qlog log module. 663 6642019-04-01 665 - 1.20.0 666 - [FEATURE] Add support for Q046. 667 6682019-03-19 669 - 1.19.6 670 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 671 send. ACK frames placed in packets in buffered queues (optimization 672 introduced in 1.17.15) can be preceded by an ACK frame generated later. 673 In this case, the older ACK frame should not be sent out, as Chromium- 674 based servers flags decrease in the ACK frame's Largest Observed value 675 as an error. 676 6772019-03-05 678 - 1.19.5 679 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 680 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 681 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 682 6832019-02-25 684 - 1.19.4 685 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 686 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 687 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 688 6892019-02-18 690 - 1.19.3 691 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 692 packet number encoding does not exist in Q044. This fixes a 693 regression introduced in '[BUGFIX] Buffered packets can contain 694 ACK frames' -- we need to keep QUIC version in mind when selecting 695 the longest possible packet number encoding used for the buffered 696 packet that carries the ACK. 697 - [BUGFIX] Do not increase CWND when timeout occurs. 698 - http_client: support setting handshake timeout on command line. 699 Use -o handshake_to=timeout. 700 - http_client: use -k to connect UDP socket to pick up ICMP errors. 701 - http_client: allow pathless mode, when only handshake is performed 702 without issuing any requests. This can be done by simply not 703 specifying a -p flag on the command line. 704 7052019-02-11 706 - 1.19.2 707 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 708 - [BUGFIX] Version checking in zero_rtt deserialize function. 709 7102019-02-04 711 - 1.19.1 712 - [BUGFIX] Fix Windows build. 713 7142019-02-04 715 - 1.19.0 716 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 717 information; it can be supplied to a subsequent connect() call. 718 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 719 - [BUGFIX] Resuscitate the Windows build. 720 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 721 - [BUGFIX] Buffered packets can contain ACK frames. 722 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 723 - [BUGFIX] Fix potential null dereference when realloc fails. 724 - cmake: simplify build configuration. 725 7262019-01-28 727 - 1.18.0 728 - [API Change] Can specify clock granularity in engine settings. 729 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 730 2018-04-09, it is not necessary to try to approximate the next tick 731 time in the pacer: it can use fix clock granularity specified by 732 the user. 733 - [BUGFIX] Do not tick constantly before handshake is done. 734 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 735 if we cannot allocate *more* packets, we could still be able to write 736 to one already allocated. 737 - [BUGFIX] Do not schedule pacer if there are no lost packets. 738 7392019-01-17 740 - 1.17.15 741 - [BUGFIX] http_client: make sure only one read per on_read() callback 742 is performed in the header conversion bypass (-B) mode. 743 - http_client: with -E, assign random priority when stream is created. 744 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 745 buffered packet if an ACK is queued. This reduces the number of 746 standalone ACK packets. 747 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 748 stream into an outgoing packet. This change minimizes the number of 749 buffered packets required to store several small HTTP messages by 750 virtue of allowing more than one STREAM frame from HEADERS stream in 751 the same packet. 752 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 753 causes the headers to be written to the same buffered packet queue, 754 thereby improving packet utilization, especially for small HTTP 755 messages. 756 7572019-01-16 758 - 1.17.14 759 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 760 time to download, requests per seconds, and bandwidth. See -t flag. 761 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 762 - [BUGFIX] http_client: do not display cert chain before each request. 763 Now this is only done once per connection, if the handshake is 764 successful and -a option is given. 765 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 766 stream is scheduled to be closed after on_read() callback returns, 767 close it immediately instead of waiting until the end of the tick. 768 If client creates new request from on_close() event, they will be 769 processed in the same tick instead of waiting for the next one. 770 - [BUGFIX] HEADERS stream is critical: always treat it with highest 771 priority. 772 7732019-01-10 774 - 1.17.12 775 - [FEATURE] http_client can now issue parallel requests in the context 776 of a single connection. See -w option. 777 7782019-01-03 779 - 1.17.11 780 - Fix strict aliasing warning in optimized compilation. 781 7822018-12-27 783 - 1.17.10 784 - Fix the example program to be able to use parallel connections 785 again. (See the -n argument.) 786 7872018-12-18 788 - 1.17.9 789 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 790 7912018-12-10 792 - 1.17.8 793 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 794 7952018-12-03 796 - 1.17.7 797 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 798 This prevented PING from ever being sent. 799 8002018-11-29 801 - 1.17.6 802 - Add failsafe: resume sending packets after some time 803 804 The change puts a 1-second limit on the amount of time the engine 805 will not send packets after some packets are delayed. This makes 806 the library robust in case the user does not unblock the engine 807 explicitly using lsquic_engine_send_unsent_packets() call. 808 809 - [BUGFIX] Handle corner cases in send controller when packets are 810 a) delayed or b) dropped during repackaging. 811 - [BUGFIX] Memory leak: destroy buffered packets during controller 812 cleanup. 813 8142018-11-16 815 - 1.17.3 816 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 817 8182018-10-19 819 - 1.17.2 820 - [BUGFIX] Memory leak in test_frame_rw unit test. 821 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 822 flags. (Only a problem in unit tests -- benign otherwise.) 823 8242018-10-16 825 - 1.17.0 826 - [API Change] Packet out Memory Interface (PMI) update: 827 - Split PMI pool return into pmi_release and pmi_return 828 - PMI callbacks take peer_ctx and is_ipv6 arguments 829 - [BUGFIX] Fix use-after-free when certificate is updated 830 - Silence gcc warning in optimized mode by performing useless 831 initialization 832 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 833 DEVEL_MODE 834 8352018-10-03 836 - 1.16.0 837 - [API Change] Add lsquic_conn_n_avail_streams() 838 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 839 8402018-09-27 841 - 1.15.0 842 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 843 - [BUGFIX] free uncompressed headers correctly when error occurs 844 8452018-09-12 846 - 1.14.3 847 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 848 - [BUGFIX] Drop packets that would become empty due to repackaging. 849 Packets on the scheduled queue may be marked for repackaging. 850 Frames such as ACK frame that are never resent are removed from 851 repackaged packets. We must check that the newly repackaged packet 852 would not be empty. If it would be, it is destroyed instead and 853 the next packet on the scheduled queue is used. Note that this 854 change only affects the logic to return the next packet to be sent. 855 Lost packets that are being rescheduled are already processed in 856 this fashion. 857 - Byteswap CID before logging it - this makes it match Chrome CIDs. 858 (Except Q035, which is the last little-endian GQUIC version we 859 support.) 860 8612018-09-06 862 - 1.14.0 863 - [API Change] Disable packet sending if full batch cannot be sent 864 If lsquic_packets_out_f() cannot send the whole batch, disable 865 packet sending until lsquic_engine_send_unsent_packets() is called. 866 - [BUGFIX] Handle case when STREAM frame does not fit. 867 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 868 may send overlapping STREAM frames even if using versions older 869 than Q043. 870 - Custom header set fixes: 871 - set "FIN reached" flag when custom header with FIN flag is 872 claimed; 873 - do not return custom header set for a reset stream. 874 8752018-08-27 876 877 - 1.13.0 878 - [FEATURE, API Change] Add ability to create custom header set 879 objects via callbacks. This avoids reading and re-parsing 880 headers from the stream. 881 8822018-08-27 883 884 - 1.12.4 885 - Fix memory leak when engine is destroyed 886 - Fix memory leak in http_client 887 - Fix gcc warning in unit tests 888 8892018-08-22 890 891 - 1.12.3 892 - [BUGFIX] Fix duplicate STREAM frame detection 893 8942018-08-20 895 896 - 1.12.2 897 - [BUGFIX] Update count of scheduled bytes when adjusting size of 898 an already-scheduled packet. 899 - Emit info instead of warning messages when stream is used in 900 unexpected ways. 901 9022018-08-17 903 904 - 1.12.0 905 - [FEATURE, API Change] Add support for certificate verification 906 9072018-08-16 908 909 - 1.11.1 910 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 911 9122018-08-15 913 914 - 1.11.0 915 - [FEATURE] Add support for Q044. 916 9172018-08-09 918 919 - 1.10.2 920 - [BUGFIX] Don't go over limit when creating delayed streams 921 9222018-07-10 923 924 - 1.10.1 925 - [BUGFIX] process connections after each batch of packets is read 926 This avoids a problem of accumulating a very large list of packets 927 (possible when speeds are high and socket's receive buffer is large) 928 and processing it all at once. 929 - If glibc is older than 2.17, link with rt. This is necessary for 930 clock_getres(2). 931 - Add version macros to lsquic.h; remove unnecessary includes. 932 9332018-06-13 934 935 - [BUGFIX] allow multiple parallel connections by default 936 937 Use the original method of tracking connections by CIDs by default. 938 If zero-sized CID support is turned on, connections are tracked by 939 the address. A new connection is not created if another connection 940 is using the same network address 941 9422018-05-30 943 944 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 945 9462018-05-24 947 948 - Close connection properly when packet encryption fails 949 9502018-05-23 951 952 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 953 9542018-05-21 955 956 - [API Change] Add optional callback to call when handshake is done 957 - [API Change, BUGFIX] After send failure, wait until transport available 958 9592018-05-18 960 961 - [API] Expose useful lsquic_ver2str[] in lsquic.h 962 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 963 - Improve checks of number of incoming streams limit and associated 964 error reporting. 965 - [BUGFIX] Command-line option `-6` now works correctly. 966 9672018-05-16 968 969 - [FEATURE] DNS resolution 970 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 971 - http_client: fix priority range generated by -E flag 972 9732018-05-09 974 975 - [FEATURE] Add support for Q043. 976 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 977 - Fix typo in debug message. 978 - Fix code indentation. 979 - Add /* fallthru */ comment to stop newer gcc from complaining. 980 - Logger: fix compilation of optimized Windows build. 981 9822018-05-04 983 984 - [FEATURE] Add support for Q042. 985 - Remove comment: MSPC is obsolete (no code changes) 986 - Prog: use lsquic_str2ver() when processing -o version flag 987 - Remove unused CTIM and SRBF transport parameters 988 - Disable QUIC versions Q037 and Q038 by default 989 - Fix Windows compilation by including compat header file in 990 lshpack.c 991 - Address warnings produced by newer versions of gcc 992 - Future-proof: turn off -Werror 993 9942018-05-02 995 996 - [BUGFIX] Make lsquic_conn_quic_version() available 997 - Switch to using ls-hpack 1.1 998 - [BUGFIX] Do not ignore stream resets after receiving FIN 999 10002018-04-27 1001 1002 - HPACK: do not allow header block to end with table size update. 1003 10042018-04-25 1005 1006 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 1007 packets. 1008 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 1009 - [BUGFIX] connections with blocked scheduled packets are not tickable 1010 for sending. 1011 - [BUGFIX] Conn is tickable if it wants to send a connection-level 1012 frame. 1013 10142018-04-23 1015 1016 - Fix busy loop: tickable must make progress. When connection is 1017 self-reporting as tickable, it must make progress when ticked. There 1018 are two issues: 1019 1. If there are buffered packets, the connection is only tickable if 1020 they can be sent out. 1021 2. A connection is tickable if there are streams on the servicing 1022 queue. When the tick occurs, we must service the stream 1023 independent of whether any packets are sent. 1024 - Fix assertion in pacer which can be incorrect under some 1025 conditions. 1026 - cmake: do not turn on address sanitizer if in Travis. 1027 10282018-04-20 1029 1030 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 1031 changes. 1032 10332018-04-19 1034 1035 - [BUGFIX] Add connection to Tickable Queue on stream write 1036 - cmake: use MSVC variable instead of trying to detect 1037 - engine: improve connection incref/decref logging 1038 - stream: don't ignore errors that may occur on triggered flush 1039 - connection: remove obsolete method 1040 - engine: indicate connection as tickable if previous call went 1041 over threshold 1042 10432018-04-09 1044 1045 [API Change, OPTIMIZATION] Only process conns that need to be processed 1046 1047 The API is simplified: do not expose the user code to several 1048 queues. A "connection queue" is now an internal concept. 1049 The user processes connections using the single function 1050 lsquic_engine_process_conns(). When this function is called, 1051 only those connections are processed that need to be processed. 1052 A connection needs to be processed when: 1053 1054 1. New incoming packets have been fed to the connection. 1055 2. User wants to read from a stream that is readable. 1056 3. User wants to write to a stream that is writeable. 1057 4. There are buffered packets that can be sent out. (This 1058 means that the user wrote to a stream outside of the 1059 lsquic library callback.) 1060 5. A control frame (such as BLOCKED) needs to be sent out. 1061 6. A stream needs to be serviced or delayed stream needs to 1062 be created. 1063 7. An alarm rings. 1064 8. Pacer timer expires. 1065 1066 To achieve this, the library places the connections into two 1067 priority queues (min heaps): 1068 1069 1. Tickable Queue; and 1070 2. Advisory Tick Time queue (ATTQ). 1071 1072 Each time lsquic_engine_process_conns() is called, the Tickable 1073 Queue is emptied. After the connections have been ticked, they are 1074 queried again: if a connection is not being closed, it is placed 1075 either in the Tickable Queue if it is ready to be ticked again or 1076 it is placed in the Advisory Tick Time Queue. It is assumed that 1077 a connection always has at least one timer set (the idle alarm). 1078 1079 The connections in the Tickable Queue are arranged in the least 1080 recently ticked order. This lets connections that have been quiet 1081 longer to get their packets scheduled first. 1082 1083 This change means that the library no longer needs to be ticked 1084 periodically. The user code can query the library when is the 1085 next tick event and schedule it exactly. When connections are 1086 processed, only the tickable connections are processed, not *all* 1087 the connections. When there are no tick events, it means that no 1088 timer event is necessary -- only the file descriptor READ event 1089 is active. 1090 1091 The following are improvements and simplifications that have 1092 been triggered: 1093 1094 - Queue of connections with incoming packets is gone. 1095 - "Pending Read/Write Events" Queue is gone (along with its 1096 history and progress checks). This queue has become the 1097 Tickable Queue. 1098 - The connection hash no longer needs to track the connection 1099 insertion order. 1100 11012018-04-02 1102 1103 - [FEATURE] Windows support 1104 1105 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 1106 11072018-03-09 1108 1109 - [OPTIMIZATION] Merge series of ACKs if possible 1110 1111 Parsed single-range ACK frames (that is the majority of frames) are 1112 saved in the connection and their processing is deferred until the 1113 connection is ticked. If several ACKs come in a series between 1114 adjacent ticks, we check whether the latest ACK is a strict superset 1115 of the saved ACK. If it is, the older ACK is not processed. 1116 1117 If ACK frames can be merged, they are merged and only one of them is 1118 either processed or saved. 1119 1120 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 1121 1122 Never generate a gap in the sent packet number sequence. This reduces 1123 the send history to a single number instead of potentially a series of 1124 packet ranges and thereby speeds up ACK verification. 1125 1126 By default, detecting a gap in the send history is not fatal: only a 1127 single warning is generated per connection. The connection can continue 1128 to operate even if the ACK verification code is not able to detect some 1129 inconsistencies. 1130 1131 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 1132 1133 The first part of struct lsquic_send_ctl now consists of members that 1134 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 1135 which is the normal case). To speed up reads and writes, we no longer 1136 try to save space by using 8- and 16-bit integers. Use regular integer 1137 width for everything. 1138 1139 - [OPTIMIZATION] Cache size of sent packet. 1140 1141 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 1142 1143 Instead of parsing our own ACK frames when packet has been acked, 1144 use the value saved in the packet_out structure when the ACK frame 1145 was generated. 1146 1147 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 1148 1149 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 1150 1151 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 1152 1153 - Fix: http_client: fix -I flag; switch assert() to abort() 1154 11552018-02-26 1156 - [API Change] lsquic_engine_connect() returns pointer to the connection 1157 object. 1158 - [API Change] Add lsquic_conn_get_engine() to get engine object from 1159 connection object. 1160 - [API Change] Add lsquic_conn_status() to query connection status. 1161 - [API Change] Add add lsquic_conn_set_ctx(). 1162 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 1163 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 1164 arrives. 1165 - [OPTIMIZATION] Do not compile expensive send controller sanity check 1166 by default. 1167 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 1168 - [OPTIMIZATION] Only make squeeze function call if necessary. 1169 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 1170 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 1171 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 1172 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 1173 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 1174 ordered. 1175 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 1176 - Fix: reset incoming streams that arrive after we send GOAWAY. 1177 - Fix: delay client on_new_conn() call until connection is fully set up. 1178 - Fixes to buffered packets logic: splitting, STREAM frame elision. 1179 - Fix: do not dispatch on_write callback if no packets are available. 1180 - Fix WINDOW_UPDATE send and resend logic. 1181 - Fix STREAM frame extension code. 1182 - Fix: Drop unflushed data when stream is reset. 1183 - Switch to tracking CWND using bytes rather than packets. 1184 - Fix TCP friendly adjustment in cubic. 1185 - Fix: do not generate invalid STOP_WAITING frames during high packet 1186 loss. 1187 - Pacer fixes. 1188 11892017-12-18 1190 1191 - Fix: better follow cubic curve after idle period 1192 - Fix: add missing parts to outgoing packet splitting code 1193 - Fix: compilation using gcc 4.8.4 1194 11952017-10-31 1196 1197 - Add APIs.txt -- describes LSQUIC APIs 1198 11992017-10-31 1200 1201 - [API Change] Sendfile-like functionality is gone. The stream no 1202 longer opens files and deals with file descriptors. (Among other 1203 things, this makes the code more portable.) Three writing functions 1204 are provided: 1205 1206 lsquic_stream_write 1207 lsquic_stream_writev 1208 lsquic_stream_writef (NEW) 1209 1210 lsquic_stream_writef() is given an abstract reader that has function 1211 pointers for size() and read() functions which the user can implement. 1212 This is the most flexible way. lsquic_stream_write() and 1213 lsquic_stream_writev() are now both implemented as wrappers around 1214 lsquic_stream_writef(). 1215 1216 - [OPTIMIZATION] When writing to stream, be it within or without the 1217 on_write() callback, place data directly into packet buffer, 1218 bypassing auxiliary data structures. This reduces amount of memory 1219 required, for the amount of data that can be written is limited 1220 by the congestion window. 1221 1222 To support writes outside the on_write() callback, we keep N 1223 outgoing packet buffers per connection which can be written to 1224 by any stream. One half of these are reserved for the highest 1225 priority stream(s), the other half for all other streams. This way, 1226 low-priority streams cannot write instead of high-priority streams 1227 and, on the other hand, low-priority streams get a chance to send 1228 their packets out. 1229 1230 The algorithm is as follows: 1231 1232 - When user writes to stream outside of the callback: 1233 - If this is the highest priority stream, place it onto the 1234 reserved N/2 queue or fail. 1235 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 1236 rather than N/2, allowing high-priority streams to write as 1237 much as can be sent.) 1238 - If the stream is not the highest priority, try to place the 1239 data onto the reserved N/2 queue or fail. 1240 - When tick occurs *and* more packets can be scheduled: 1241 - Transfer packets from the high N/2 queue to the scheduled 1242 queue. 1243 - If more scheduling is allowed: 1244 - Call on_write callbacks for highest-priority streams, 1245 placing resulting packets directly onto the scheduled queue. 1246 - If more scheduling is allowed: 1247 - Transfer packets from the low N/2 queue to the scheduled 1248 queue. 1249 - If more scheduling is allowed: 1250 - Call on_write callbacks for non-highest-priority streams, 1251 placing resulting packets directly onto the scheduled queue 1252 1253 The number N is currently 20, but it could be varied based on 1254 resource usage. 1255 1256 - If stream is created due to incoming headers, make headers readable 1257 from on_new. 1258 1259 - Outgoing packets are no longer marked non-writeable to prevent placing 1260 more than one STREAM frame from the same stream into a single packet. 1261 This property is maintained via code flow and an explicit check. 1262 Packets for stream data are allocated using a special function. 1263 1264 - STREAM frame elision is cheaper, as we only perform it if a reset 1265 stream has outgoing packets referencing it. 1266 1267 - lsquic_packet_out_t is smaller, as stream_rec elements are now 1268 inside a union. 1269 12702017-10-12 1271 1272 - Do not send RST_STREAM when stream is closed for reading 1273 - Raise maximum header size from 4K to 64K 1274 - Check header name and value lengths against maximum imposed by HPACK 1275 - Fix NULL dereference in stream flow controller 1276 12772017-10-09 1278 1279 - Hide handshake implementation behind a set of function pointers 1280 - Use monotonically increasing clock 1281 - Make sure that retx delay is not larger than the max of 60 seconds 1282 12832017-09-29 1284 1285 - A few fixes to code and README 1286 12872017-09-28 1288 1289 - Add support for Q041; drop support for Q040 1290 12912017-09-27 1292 1293 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 1294 12952017-09-26 1296 1297 - Add support for Mac OS 1298 - Add support for Raspberry Pi 1299 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 1300 13012017-09-22 1302 1303 - Initial release 1304