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