CHANGELOG revision 7d09751d
12020-01-09 2 - 2.8.7 3 - [BUGFIX] Initial packet size check for IETF mini conn applies to 4 UDP payload, not QUIC packet. 5 - Support old and new school loss_bits transport parameter. 6 - Use Q run length of 64 as suggested in the loss bits Draft. 7 - Undo square wave count when packet is delayed. 8 - Code cleanup; minor fixes. 9 102020-01-06 11 - 2.8.5 12 - [HTTP3] Verify number of bytes in incoming DATA frames against 13 content-length. 14 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 15 decoder window. This addresses a potential attack whereby client 16 can cause the server to keep allocating memory. See Security 17 Considerations in the QPACK draft. 18 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 19 - [BUGFIX] Init IETF connection flow controller using correct setting. 20 - [BUGFIX] Fix unintended sign extension when removing header protection. 21 - Code cleanup and minor fixes. 22 232019-12-30 24 - 2.8.1 25 - [FEATURE] Use occasional packet number gaps to detect optimistic 26 ACK attacks. 27 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 28 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 29 ACK frames. 30 - IETF QUIC: use RTT estimate in ack timeout calculation. 31 - IETF handshake: abort conn when unexpected errors occur. 32 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 33 - Server: enforce 1200 byte Initial minimum packet size. 34 - [CLEANUP] Remove code to disable gQUIC crypto. 35 - [CLEANUP] Remove n_timestamps from ACK info struct. 36 - Optimize driver: reuse previous ancillary message when possible. 37 382019-12-23 39 - 2.8.0 40 - [FEATURE] Add support for Q050. 41 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 42 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 43 logging. 44 452019-12-18 46 - 2.7.3 47 - [DEBUG] Further dedup next advisory tick messages when reason is 48 the same. 49 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 50 GitHub bug #94. 51 - Use Cubic by default again instead of BBR, as it delivers more 52 consistent performance. 53 542019-12-11 55 - 2.7.2 56 - [BUGFIX] Send controller: update scheduled bytes when DCID length 57 changes (IETF client). 58 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 59 that we use loss chains. 60 - [PORTABILITY] Fix build on Alpine Linux. 61 - [PORTABILITY] Fix build using XCode. 62 - Client initial DCID length: use RAND_bytes() instead of rand(3). 63 - Add unit tests for connection min heap. 64 - [DEBUG] Log CID in gQUIC handshake module 65 - [DEBUG] Turn on extra checks for IETF client send controller. 66 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 67 - [DEBUG] QPACK decoder handler: log header error code. 68 692019-12-05 70 - 2.7.1 71 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 72 ignore_init() makes an assumption that the send controller has access 73 to all outgoing packets. This change wraps a few IETF full connection 74 methods to delay calling ignore_init() until the engine returns all 75 outgoing packets that were batched. 76 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 77 This needs to be done because the value of errno may be lost on 78 some platforms. 79 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 80 - [BUGFIX] Do not cancel header block processing after failure, as 81 QPACK releases the reference in that case. 82 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 83 - Several small improvements to the test server. 84 852019-11-27 86 - 2.7.0 87 - [API, FEATURE] Close connection immediately when ea_packets_out() 88 fails with errno != EAGAIN. The API change is that errno is now 89 examined. Make sure to set it if using something other than 90 sendmsg() to send packets. 91 - [CLEANUP] Immediate close logic in IETF full conn. 92 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 93 942019-11-22 95 - 2.6.7 96 - [FEATURE] Implement the QL extension (offered by default). 97 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 98 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 99 - [DEBUG] Turn on debug message for next advisory tick. 100 1012019-11-20 102 - 2.6.6 103 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 104 - [BUGFIX] Truncate log messages instead of throwing them away. 105 1062019-11-15 107 - 2.6.5 108 - [BUGFIX] High priority buffered packet queue length. 109 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 110 1112019-11-12 112 - 2.6.3 113 - [BUGFIX] Close DATA frames with empty payload correctly. 114 1152019-11-11 116 - 2.6.2 117 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 118 packets. 119 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 120 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 121 connection. 122 - [BUGFIX] Client: don't send duplicate reset tokens. 123 - [BUGFIX] Remove invalid assertion in H3 framing code. 124 - Silence a warning in send ctl by restructuring switch() statement. 125 1262019-11-08 127 - 2.6.1 128 - [BUGFIX] set retry token on all resubmitted packets. 129 - Event log: log sent packet flags. In particular, this allows one 130 to see whether token was sent. 131 - Don't migrate client if es_allow_migration is false. 132 1332019-11-07 134 - 2.6.0 135 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 136 1372019-11-07 138 - 2.5.2 139 - [BUGFIX] argument order to gQUIC client constructor. Regression 140 introduced in 2.5.0. 141 - [BUGFIX] split buffered packet error recovery: destroy the correct 142 packet. 143 1442019-11-04 145 - 2.5.1 146 - [BUGFIX] Fix double-free when emptying a packet number space. 147 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 148 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 149 verneg packets (regression introduced in 2.5.0). 150 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 151 - [OPTIMIZATION] http_server: compile regexes only once. 152 1532019-10-31 154 - 2.5.0 155 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 156 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 157 - [BUGFIX] Don't evict streams from priority iterator if there is 158 only one queue. 159 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 160 - Use ls-qpack v0.10.7. 161 1622019-10-24 163 - 2.4.10 164 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 165 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 166 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 167 values are not unique). 168 - [BUGFIX] Always set the idle alarm in IETF connection so that it 169 can time out. 170 - Use ls-qpack v0.10.6, as it silences some warnings. 171 1722019-10-21 173 - 2.4.8 174 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 175 1762019-10-15 177 - 2.4.7 178 - Add echo client and server to the distibution. 179 - Add MD5 client and server to the distibution. 180 - Fix http_client: check command-line arguments better, prevent crash. 181 - Fix IETF conn: can_write_ack() should only care about APP PNS. 182 - Client: delay stream creation until handshake succeds. 183 - Reset HTTP stream whose write end is closed prematurely. 184 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 185 - Log reason why engine is tickable. 186 1872019-10-11 188 - 2.4.6 189 - Minor code cleanup and logging improvements. 190 - Server and client programs: include library version (e.g. 2.4.6) 191 into `server' and `user-agent' headers. 192 1932019-10-08 194 - 2.4.5 195 - [OPTIMIZATION]: flush encoder stream only when necessary. 196 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 197 - [BUGFIX] Typo in IETF conn SETTINGS writer. 198 - Use latest BoringSSL. 199 2002019-10-08 201 - 2.4.4 202 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 203 - [BUGFIX] NULL dereference when H3 frame header would be split. 204 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 205 - [BUGFIX] Allow PING frames in IETF mini conn. 206 - [BUGFIX] Mini conns: don't send any packets after receiving 207 CONNECTION_CLOSE. 208 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 209 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 210 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 211 valid stream number). 212 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 213 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 214 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 215 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 216 - Update ls-qpack to v0.10.1. 217 2182019-09-30 219 - 2.4.3 220 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 221 For example, h3-Q043. Chrome will switch to using this format at 222 some point in the future. 223 - [BUGFIX] Send correct value in max_streams_uni transport param 224 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 225 to 0xFFFFFFFF 226 2272019-09-23 228 - 2.4.2 229 - [BUGFIX] H3 framing: fix zero-byte write when space is available 230 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 231 is closed 232 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 233 - [BUGFIX] Fix use-after-free in IETF full conn 234 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 235 SSL object and crypto streams. 236 2372019-09-18 238 - 2.4.0 239 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 240 2412019-09-13 242 - 2.3.1 243 - [BUGFIX] Fix memory leaks 244 - [BUGFIX] Fix unit tests 245 2462019-09-12 247 - 2.3.0 248 - [FEATURE] BBR congestion control is on by default 249 - [BUGFIX] BBR app-limited logic 250 - [BUGFIX] Fix uninitialized warnings in IETF 251 - [BUGFIX] Update ls-qpack to v0.9.14 252 - [CLEANUP] Code cleanup 253 2542019-09-11 255 - 2.2.0 256 - [FEATURE] Server code is included in the library 257 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 258 2592019-05-13 260 - 1.21.2 261 - [OPTIMIZATION] HPACK: use history to improve compression performance 262 2632019-05-06 264 - 1.21.1 265 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 266 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 267 search static and dynamic tables. 268 2692019-04-12 270 - 1.21.0 271 - [FEATURE] Add qlog log module. 272 2732019-04-01 274 - 1.20.0 275 - [FEATURE] Add support for Q046. 276 2772019-03-19 278 - 1.19.6 279 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 280 send. ACK frames placed in packets in buffered queues (optimization 281 introduced in 1.17.15) can be preceded by an ACK frame generated later. 282 In this case, the older ACK frame should not be sent out, as Chromium- 283 based servers flags decrease in the ACK frame's Largest Observed value 284 as an error. 285 2862019-03-05 287 - 1.19.5 288 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 289 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 290 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 291 2922019-02-25 293 - 1.19.4 294 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 295 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 296 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 297 2982019-02-18 299 - 1.19.3 300 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 301 packet number encoding does not exist in Q044. This fixes a 302 regression introduced in '[BUGFIX] Buffered packets can contain 303 ACK frames' -- we need to keep QUIC version in mind when selecting 304 the longest possible packet number encoding used for the buffered 305 packet that carries the ACK. 306 - [BUGFIX] Do not increase CWND when timeout occurs. 307 - http_client: support setting handshake timeout on command line. 308 Use -o handshake_to=timeout. 309 - http_client: use -k to connect UDP socket to pick up ICMP errors. 310 - http_client: allow pathless mode, when only handshake is performed 311 without issuing any requests. This can be done by simply not 312 specifying a -p flag on the command line. 313 3142019-02-11 315 - 1.19.2 316 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 317 - [BUGFIX] Version checking in zero_rtt deserialize function. 318 3192019-02-04 320 - 1.19.1 321 - [BUGFIX] Fix Windows build. 322 3232019-02-04 324 - 1.19.0 325 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 326 information; it can be supplied to a subsequent connect() call. 327 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 328 - [BUGFIX] Resuscitate the Windows build. 329 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 330 - [BUGFIX] Buffered packets can contain ACK frames. 331 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 332 - [BUGFIX] Fix potential null dereference when realloc fails. 333 - cmake: simplify build configuration. 334 3352019-01-28 336 - 1.18.0 337 - [API Change] Can specify clock granularity in engine settings. 338 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 339 2018-04-09, it is not necessary to try to approximate the next tick 340 time in the pacer: it can use fix clock granularity specified by 341 the user. 342 - [BUGFIX] Do not tick constantly before handshake is done. 343 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 344 if we cannot allocate *more* packets, we could still be able to write 345 to one already allocated. 346 - [BUGFIX] Do not schedule pacer if there are no lost packets. 347 3482019-01-17 349 - 1.17.15 350 - [BUGFIX] http_client: make sure only one read per on_read() callback 351 is performed in the header conversion bypass (-B) mode. 352 - http_client: with -E, assign random priority when stream is created. 353 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 354 buffered packet if an ACK is queued. This reduces the number of 355 standalone ACK packets. 356 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 357 stream into an outgoing packet. This change minimizes the number of 358 buffered packets required to store several small HTTP messages by 359 virtue of allowing more than one STREAM frame from HEADERS stream in 360 the same packet. 361 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 362 causes the headers to be written to the same buffered packet queue, 363 thereby improving packet utilization, especially for small HTTP 364 messages. 365 3662019-01-16 367 - 1.17.14 368 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 369 time to download, requests per seconds, and bandwidth. See -t flag. 370 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 371 - [BUGFIX] http_client: do not display cert chain before each request. 372 Now this is only done once per connection, if the handshake is 373 successful and -a option is given. 374 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 375 stream is scheduled to be closed after on_read() callback returns, 376 close it immediately instead of waiting until the end of the tick. 377 If client creates new request from on_close() event, they will be 378 processed in the same tick instead of waiting for the next one. 379 - [BUGFIX] HEADERS stream is critical: always treat it with highest 380 priority. 381 3822019-01-10 383 - 1.17.12 384 - [FEATURE] http_client can now issue parallel requests in the context 385 of a single connection. See -w option. 386 3872019-01-03 388 - 1.17.11 389 - Fix strict aliasing warning in optimized compilation. 390 3912018-12-27 392 - 1.17.10 393 - Fix the example program to be able to use parallel connections 394 again. (See the -n argument.) 395 3962018-12-18 397 - 1.17.9 398 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 399 4002018-12-10 401 - 1.17.8 402 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 403 4042018-12-03 405 - 1.17.7 406 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 407 This prevented PING from ever being sent. 408 4092018-11-29 410 - 1.17.6 411 - Add failsafe: resume sending packets after some time 412 413 The change puts a 1-second limit on the amount of time the engine 414 will not send packets after some packets are delayed. This makes 415 the library robust in case the user does not unblock the engine 416 explicitly using lsquic_engine_send_unsent_packets() call. 417 418 - [BUGFIX] Handle corner cases in send controller when packets are 419 a) delayed or b) dropped during repackaging. 420 - [BUGFIX] Memory leak: destroy buffered packets during controller 421 cleanup. 422 4232018-11-16 424 - 1.17.3 425 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 426 4272018-10-19 428 - 1.17.2 429 - [BUGFIX] Memory leak in test_frame_rw unit test. 430 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 431 flags. (Only a problem in unit tests -- benign otherwise.) 432 4332018-10-16 434 - 1.17.0 435 - [API Change] Packet out Memory Interface (PMI) update: 436 - Split PMI pool return into pmi_release and pmi_return 437 - PMI callbacks take peer_ctx and is_ipv6 arguments 438 - [BUGFIX] Fix use-after-free when certificate is updated 439 - Silence gcc warning in optimized mode by performing useless 440 initialization 441 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 442 DEVEL_MODE 443 4442018-10-03 445 - 1.16.0 446 - [API Change] Add lsquic_conn_n_avail_streams() 447 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 448 4492018-09-27 450 - 1.15.0 451 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 452 - [BUGFIX] free uncompressed headers correctly when error occurs 453 4542018-09-12 455 - 1.14.3 456 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 457 - [BUGFIX] Drop packets that would become empty due to repackaging. 458 Packets on the scheduled queue may be marked for repackaging. 459 Frames such as ACK frame that are never resent are removed from 460 repackaged packets. We must check that the newly repackaged packet 461 would not be empty. If it would be, it is destroyed instead and 462 the next packet on the scheduled queue is used. Note that this 463 change only affects the logic to return the next packet to be sent. 464 Lost packets that are being rescheduled are already processed in 465 this fashion. 466 - Byteswap CID before logging it - this makes it match Chrome CIDs. 467 (Except Q035, which is the last little-endian GQUIC version we 468 support.) 469 4702018-09-06 471 - 1.14.0 472 - [API Change] Disable packet sending if full batch cannot be sent 473 If lsquic_packets_out_f() cannot send the whole batch, disable 474 packet sending until lsquic_engine_send_unsent_packets() is called. 475 - [BUGFIX] Handle case when STREAM frame does not fit. 476 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 477 may send overlapping STREAM frames even if using versions older 478 than Q043. 479 - Custom header set fixes: 480 - set "FIN reached" flag when custom header with FIN flag is 481 claimed; 482 - do not return custom header set for a reset stream. 483 4842018-08-27 485 486 - 1.13.0 487 - [FEATURE, API Change] Add ability to create custom header set 488 objects via callbacks. This avoids reading and re-parsing 489 headers from the stream. 490 4912018-08-27 492 493 - 1.12.4 494 - Fix memory leak when engine is destroyed 495 - Fix memory leak in http_client 496 - Fix gcc warning in unit tests 497 4982018-08-22 499 500 - 1.12.3 501 - [BUGFIX] Fix duplicate STREAM frame detection 502 5032018-08-20 504 505 - 1.12.2 506 - [BUGFIX] Update count of scheduled bytes when adjusting size of 507 an already-scheduled packet. 508 - Emit info instead of warning messages when stream is used in 509 unexpected ways. 510 5112018-08-17 512 513 - 1.12.0 514 - [FEATURE, API Change] Add support for certificate verification 515 5162018-08-16 517 518 - 1.11.1 519 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 520 5212018-08-15 522 523 - 1.11.0 524 - [FEATURE] Add support for Q044. 525 5262018-08-09 527 528 - 1.10.2 529 - [BUGFIX] Don't go over limit when creating delayed streams 530 5312018-07-10 532 533 - 1.10.1 534 - [BUGFIX] process connections after each batch of packets is read 535 This avoids a problem of accumulating a very large list of packets 536 (possible when speeds are high and socket's receive buffer is large) 537 and processing it all at once. 538 - If glibc is older than 2.17, link with rt. This is necessary for 539 clock_getres(2). 540 - Add version macros to lsquic.h; remove unnecessary includes. 541 5422018-06-13 543 544 - [BUGFIX] allow multiple parallel connections by default 545 546 Use the original method of tracking connections by CIDs by default. 547 If zero-sized CID support is turned on, connections are tracked by 548 the address. A new connection is not created if another connection 549 is using the same network address 550 5512018-05-30 552 553 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 554 5552018-05-24 556 557 - Close connection properly when packet encryption fails 558 5592018-05-23 560 561 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 562 5632018-05-21 564 565 - [API Change] Add optional callback to call when handshake is done 566 - [API Change, BUGFIX] After send failure, wait until transport available 567 5682018-05-18 569 570 - [API] Expose useful lsquic_ver2str[] in lsquic.h 571 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 572 - Improve checks of number of incoming streams limit and associated 573 error reporting. 574 - [BUGFIX] Command-line option `-6` now works correctly. 575 5762018-05-16 577 578 - [FEATURE] DNS resolution 579 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 580 - http_client: fix priority range generated by -E flag 581 5822018-05-09 583 584 - [FEATURE] Add support for Q043. 585 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 586 - Fix typo in debug message. 587 - Fix code indentation. 588 - Add /* fallthru */ comment to stop newer gcc from complaining. 589 - Logger: fix compilation of optimized Windows build. 590 5912018-05-04 592 593 - [FEATURE] Add support for Q042. 594 - Remove comment: MSPC is obsolete (no code changes) 595 - Prog: use lsquic_str2ver() when processing -o version flag 596 - Remove unused CTIM and SRBF transport parameters 597 - Disable QUIC versions Q037 and Q038 by default 598 - Fix Windows compilation by including compat header file in 599 lshpack.c 600 - Address warnings produced by newer versions of gcc 601 - Future-proof: turn off -Werror 602 6032018-05-02 604 605 - [BUGFIX] Make lsquic_conn_quic_version() available 606 - Switch to using ls-hpack 1.1 607 - [BUGFIX] Do not ignore stream resets after receiving FIN 608 6092018-04-27 610 611 - HPACK: do not allow header block to end with table size update. 612 6132018-04-25 614 615 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 616 packets. 617 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 618 - [BUGFIX] connections with blocked scheduled packets are not tickable 619 for sending. 620 - [BUGFIX] Conn is tickable if it wants to send a connection-level 621 frame. 622 6232018-04-23 624 625 - Fix busy loop: tickable must make progress. When connection is 626 self-reporting as tickable, it must make progress when ticked. There 627 are two issues: 628 1. If there are buffered packets, the connection is only tickable if 629 they can be sent out. 630 2. A connection is tickable if there are streams on the servicing 631 queue. When the tick occurs, we must service the stream 632 independent of whether any packets are sent. 633 - Fix assertion in pacer which can be incorrect under some 634 conditions. 635 - cmake: do not turn on address sanitizer if in Travis. 636 6372018-04-20 638 639 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 640 changes. 641 6422018-04-19 643 644 - [BUGFIX] Add connection to Tickable Queue on stream write 645 - cmake: use MSVC variable instead of trying to detect 646 - engine: improve connection incref/decref logging 647 - stream: don't ignore errors that may occur on triggered flush 648 - connection: remove obsolete method 649 - engine: indicate connection as tickable if previous call went 650 over threshold 651 6522018-04-09 653 654 [API Change, OPTIMIZATION] Only process conns that need to be processed 655 656 The API is simplified: do not expose the user code to several 657 queues. A "connection queue" is now an internal concept. 658 The user processes connections using the single function 659 lsquic_engine_process_conns(). When this function is called, 660 only those connections are processed that need to be processed. 661 A connection needs to be processed when: 662 663 1. New incoming packets have been fed to the connection. 664 2. User wants to read from a stream that is readable. 665 3. User wants to write to a stream that is writeable. 666 4. There are buffered packets that can be sent out. (This 667 means that the user wrote to a stream outside of the 668 lsquic library callback.) 669 5. A control frame (such as BLOCKED) needs to be sent out. 670 6. A stream needs to be serviced or delayed stream needs to 671 be created. 672 7. An alarm rings. 673 8. Pacer timer expires. 674 675 To achieve this, the library places the connections into two 676 priority queues (min heaps): 677 678 1. Tickable Queue; and 679 2. Advisory Tick Time queue (ATTQ). 680 681 Each time lsquic_engine_process_conns() is called, the Tickable 682 Queue is emptied. After the connections have been ticked, they are 683 queried again: if a connection is not being closed, it is placed 684 either in the Tickable Queue if it is ready to be ticked again or 685 it is placed in the Advisory Tick Time Queue. It is assumed that 686 a connection always has at least one timer set (the idle alarm). 687 688 The connections in the Tickable Queue are arranged in the least 689 recently ticked order. This lets connections that have been quiet 690 longer to get their packets scheduled first. 691 692 This change means that the library no longer needs to be ticked 693 periodically. The user code can query the library when is the 694 next tick event and schedule it exactly. When connections are 695 processed, only the tickable connections are processed, not *all* 696 the connections. When there are no tick events, it means that no 697 timer event is necessary -- only the file descriptor READ event 698 is active. 699 700 The following are improvements and simplifications that have 701 been triggered: 702 703 - Queue of connections with incoming packets is gone. 704 - "Pending Read/Write Events" Queue is gone (along with its 705 history and progress checks). This queue has become the 706 Tickable Queue. 707 - The connection hash no longer needs to track the connection 708 insertion order. 709 7102018-04-02 711 712 - [FEATURE] Windows support 713 714 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 715 7162018-03-09 717 718 - [OPTIMIZATION] Merge series of ACKs if possible 719 720 Parsed single-range ACK frames (that is the majority of frames) are 721 saved in the connection and their processing is deferred until the 722 connection is ticked. If several ACKs come in a series between 723 adjacent ticks, we check whether the latest ACK is a strict superset 724 of the saved ACK. If it is, the older ACK is not processed. 725 726 If ACK frames can be merged, they are merged and only one of them is 727 either processed or saved. 728 729 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 730 731 Never generate a gap in the sent packet number sequence. This reduces 732 the send history to a single number instead of potentially a series of 733 packet ranges and thereby speeds up ACK verification. 734 735 By default, detecting a gap in the send history is not fatal: only a 736 single warning is generated per connection. The connection can continue 737 to operate even if the ACK verification code is not able to detect some 738 inconsistencies. 739 740 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 741 742 The first part of struct lsquic_send_ctl now consists of members that 743 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 744 which is the normal case). To speed up reads and writes, we no longer 745 try to save space by using 8- and 16-bit integers. Use regular integer 746 width for everything. 747 748 - [OPTIMIZATION] Cache size of sent packet. 749 750 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 751 752 Instead of parsing our own ACK frames when packet has been acked, 753 use the value saved in the packet_out structure when the ACK frame 754 was generated. 755 756 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 757 758 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 759 760 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 761 762 - Fix: http_client: fix -I flag; switch assert() to abort() 763 7642018-02-26 765 - [API Change] lsquic_engine_connect() returns pointer to the connection 766 object. 767 - [API Change] Add lsquic_conn_get_engine() to get engine object from 768 connection object. 769 - [API Change] Add lsquic_conn_status() to query connection status. 770 - [API Change] Add add lsquic_conn_set_ctx(). 771 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 772 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 773 arrives. 774 - [OPTIMIZATION] Do not compile expensive send controller sanity check 775 by default. 776 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 777 - [OPTIMIZATION] Only make squeeze function call if necessary. 778 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 779 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 780 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 781 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 782 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 783 ordered. 784 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 785 - Fix: reset incoming streams that arrive after we send GOAWAY. 786 - Fix: delay client on_new_conn() call until connection is fully set up. 787 - Fixes to buffered packets logic: splitting, STREAM frame elision. 788 - Fix: do not dispatch on_write callback if no packets are available. 789 - Fix WINDOW_UPDATE send and resend logic. 790 - Fix STREAM frame extension code. 791 - Fix: Drop unflushed data when stream is reset. 792 - Switch to tracking CWND using bytes rather than packets. 793 - Fix TCP friendly adjustment in cubic. 794 - Fix: do not generate invalid STOP_WAITING frames during high packet 795 loss. 796 - Pacer fixes. 797 7982017-12-18 799 800 - Fix: better follow cubic curve after idle period 801 - Fix: add missing parts to outgoing packet splitting code 802 - Fix: compilation using gcc 4.8.4 803 8042017-10-31 805 806 - Add APIs.txt -- describes LSQUIC APIs 807 8082017-10-31 809 810 - [API Change] Sendfile-like functionality is gone. The stream no 811 longer opens files and deals with file descriptors. (Among other 812 things, this makes the code more portable.) Three writing functions 813 are provided: 814 815 lsquic_stream_write 816 lsquic_stream_writev 817 lsquic_stream_writef (NEW) 818 819 lsquic_stream_writef() is given an abstract reader that has function 820 pointers for size() and read() functions which the user can implement. 821 This is the most flexible way. lsquic_stream_write() and 822 lsquic_stream_writev() are now both implemented as wrappers around 823 lsquic_stream_writef(). 824 825 - [OPTIMIZATION] When writing to stream, be it within or without the 826 on_write() callback, place data directly into packet buffer, 827 bypassing auxiliary data structures. This reduces amount of memory 828 required, for the amount of data that can be written is limited 829 by the congestion window. 830 831 To support writes outside the on_write() callback, we keep N 832 outgoing packet buffers per connection which can be written to 833 by any stream. One half of these are reserved for the highest 834 priority stream(s), the other half for all other streams. This way, 835 low-priority streams cannot write instead of high-priority streams 836 and, on the other hand, low-priority streams get a chance to send 837 their packets out. 838 839 The algorithm is as follows: 840 841 - When user writes to stream outside of the callback: 842 - If this is the highest priority stream, place it onto the 843 reserved N/2 queue or fail. 844 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 845 rather than N/2, allowing high-priority streams to write as 846 much as can be sent.) 847 - If the stream is not the highest priority, try to place the 848 data onto the reserved N/2 queue or fail. 849 - When tick occurs *and* more packets can be scheduled: 850 - Transfer packets from the high N/2 queue to the scheduled 851 queue. 852 - If more scheduling is allowed: 853 - Call on_write callbacks for highest-priority streams, 854 placing resulting packets directly onto the scheduled queue. 855 - If more scheduling is allowed: 856 - Transfer packets from the low N/2 queue to the scheduled 857 queue. 858 - If more scheduling is allowed: 859 - Call on_write callbacks for non-highest-priority streams, 860 placing resulting packets directly onto the scheduled queue 861 862 The number N is currently 20, but it could be varied based on 863 resource usage. 864 865 - If stream is created due to incoming headers, make headers readable 866 from on_new. 867 868 - Outgoing packets are no longer marked non-writeable to prevent placing 869 more than one STREAM frame from the same stream into a single packet. 870 This property is maintained via code flow and an explicit check. 871 Packets for stream data are allocated using a special function. 872 873 - STREAM frame elision is cheaper, as we only perform it if a reset 874 stream has outgoing packets referencing it. 875 876 - lsquic_packet_out_t is smaller, as stream_rec elements are now 877 inside a union. 878 8792017-10-12 880 881 - Do not send RST_STREAM when stream is closed for reading 882 - Raise maximum header size from 4K to 64K 883 - Check header name and value lengths against maximum imposed by HPACK 884 - Fix NULL dereference in stream flow controller 885 8862017-10-09 887 888 - Hide handshake implementation behind a set of function pointers 889 - Use monotonically increasing clock 890 - Make sure that retx delay is not larger than the max of 60 seconds 891 8922017-09-29 893 894 - A few fixes to code and README 895 8962017-09-28 897 898 - Add support for Q041; drop support for Q040 899 9002017-09-27 901 902 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 903 9042017-09-26 905 906 - Add support for Mac OS 907 - Add support for Raspberry Pi 908 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 909 9102017-09-22 911 912 - Initial release 913