CHANGELOG revision 55f8042d
12019-11-20 2 - 2.6.6 3 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 4 - [BUGFIX] Truncate log messages instead of throwing them away. 5 62019-11-15 7 - 2.6.5 8 - [BUGFIX] High priority buffered packet queue length. 9 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 10 112019-11-12 12 - 2.6.3 13 - [BUGFIX] Close DATA frames with empty payload correctly. 14 152019-11-11 16 - 2.6.2 17 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 18 packets. 19 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 20 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 21 connection. 22 - [BUGFIX] Client: don't send duplicate reset tokens. 23 - [BUGFIX] Remove invalid assertion in H3 framing code. 24 - Silence a warning in send ctl by restructuring switch() statement. 25 262019-11-08 27 - 2.6.1 28 - [BUGFIX] set retry token on all resubmitted packets. 29 - Event log: log sent packet flags. In particular, this allows one 30 to see whether token was sent. 31 - Don't migrate client if es_allow_migration is false. 32 332019-11-07 34 - 2.6.0 35 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 36 372019-11-07 38 - 2.5.2 39 - [BUGFIX] argument order to gQUIC client constructor. Regression 40 introduced in 2.5.0. 41 - [BUGFIX] split buffered packet error recovery: destroy the correct 42 packet. 43 442019-11-04 45 - 2.5.1 46 - [BUGFIX] Fix double-free when emptying a packet number space. 47 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 48 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 49 verneg packets (regression introduced in 2.5.0). 50 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 51 - [OPTIMIZATION] http_server: compile regexes only once. 52 532019-10-31 54 - 2.5.0 55 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 56 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 57 - [BUGFIX] Don't evict streams from priority iterator if there is 58 only one queue. 59 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 60 - Use ls-qpack v0.10.7. 61 622019-10-24 63 - 2.4.10 64 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 65 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 66 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 67 values are not unique). 68 - [BUGFIX] Always set the idle alarm in IETF connection so that it 69 can time out. 70 - Use ls-qpack v0.10.6, as it silences some warnings. 71 722019-10-21 73 - 2.4.8 74 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 75 762019-10-15 77 - 2.4.7 78 - Add echo client and server to the distibution. 79 - Add MD5 client and server to the distibution. 80 - Fix http_client: check command-line arguments better, prevent crash. 81 - Fix IETF conn: can_write_ack() should only care about APP PNS. 82 - Client: delay stream creation until handshake succeds. 83 - Reset HTTP stream whose write end is closed prematurely. 84 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 85 - Log reason why engine is tickable. 86 872019-10-11 88 - 2.4.6 89 - Minor code cleanup and logging improvements. 90 - Server and client programs: include library version (e.g. 2.4.6) 91 into `server' and `user-agent' headers. 92 932019-10-08 94 - 2.4.5 95 - [OPTIMIZATION]: flush encoder stream only when necessary. 96 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 97 - [BUGFIX] Typo in IETF conn SETTINGS writer. 98 - Use latest BoringSSL. 99 1002019-10-08 101 - 2.4.4 102 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 103 - [BUGFIX] NULL dereference when H3 frame header would be split. 104 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 105 - [BUGFIX] Allow PING frames in IETF mini conn. 106 - [BUGFIX] Mini conns: don't send any packets after receiving 107 CONNECTION_CLOSE. 108 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 109 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 110 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 111 valid stream number). 112 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 113 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 114 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 115 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 116 - Update ls-qpack to v0.10.1. 117 1182019-09-30 119 - 2.4.3 120 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 121 For example, h3-Q043. Chrome will switch to using this format at 122 some point in the future. 123 - [BUGFIX] Send correct value in max_streams_uni transport param 124 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 125 to 0xFFFFFFFF 126 1272019-09-23 128 - 2.4.2 129 - [BUGFIX] H3 framing: fix zero-byte write when space is available 130 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 131 is closed 132 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 133 - [BUGFIX] Fix use-after-free in IETF full conn 134 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 135 SSL object and crypto streams. 136 1372019-09-18 138 - 2.4.0 139 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 140 1412019-09-13 142 - 2.3.1 143 - [BUGFIX] Fix memory leaks 144 - [BUGFIX] Fix unit tests 145 1462019-09-12 147 - 2.3.0 148 - [FEATURE] BBR congestion control is on by default 149 - [BUGFIX] BBR app-limited logic 150 - [BUGFIX] Fix uninitialized warnings in IETF 151 - [BUGFIX] Update ls-qpack to v0.9.14 152 - [CLEANUP] Code cleanup 153 1542019-09-11 155 - 2.2.0 156 - [FEATURE] Server code is included in the library 157 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 158 1592019-05-13 160 - 1.21.2 161 - [OPTIMIZATION] HPACK: use history to improve compression performance 162 1632019-05-06 164 - 1.21.1 165 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 166 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 167 search static and dynamic tables. 168 1692019-04-12 170 - 1.21.0 171 - [FEATURE] Add qlog log module. 172 1732019-04-01 174 - 1.20.0 175 - [FEATURE] Add support for Q046. 176 1772019-03-19 178 - 1.19.6 179 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 180 send. ACK frames placed in packets in buffered queues (optimization 181 introduced in 1.17.15) can be preceded by an ACK frame generated later. 182 In this case, the older ACK frame should not be sent out, as Chromium- 183 based servers flags decrease in the ACK frame's Largest Observed value 184 as an error. 185 1862019-03-05 187 - 1.19.5 188 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 189 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 190 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 191 1922019-02-25 193 - 1.19.4 194 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 195 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 196 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 197 1982019-02-18 199 - 1.19.3 200 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 201 packet number encoding does not exist in Q044. This fixes a 202 regression introduced in '[BUGFIX] Buffered packets can contain 203 ACK frames' -- we need to keep QUIC version in mind when selecting 204 the longest possible packet number encoding used for the buffered 205 packet that carries the ACK. 206 - [BUGFIX] Do not increase CWND when timeout occurs. 207 - http_client: support setting handshake timeout on command line. 208 Use -o handshake_to=timeout. 209 - http_client: use -k to connect UDP socket to pick up ICMP errors. 210 - http_client: allow pathless mode, when only handshake is performed 211 without issuing any requests. This can be done by simply not 212 specifying a -p flag on the command line. 213 2142019-02-11 215 - 1.19.2 216 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 217 - [BUGFIX] Version checking in zero_rtt deserialize function. 218 2192019-02-04 220 - 1.19.1 221 - [BUGFIX] Fix Windows build. 222 2232019-02-04 224 - 1.19.0 225 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 226 information; it can be supplied to a subsequent connect() call. 227 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 228 - [BUGFIX] Resuscitate the Windows build. 229 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 230 - [BUGFIX] Buffered packets can contain ACK frames. 231 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 232 - [BUGFIX] Fix potential null dereference when realloc fails. 233 - cmake: simplify build configuration. 234 2352019-01-28 236 - 1.18.0 237 - [API Change] Can specify clock granularity in engine settings. 238 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 239 2018-04-09, it is not necessary to try to approximate the next tick 240 time in the pacer: it can use fix clock granularity specified by 241 the user. 242 - [BUGFIX] Do not tick constantly before handshake is done. 243 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 244 if we cannot allocate *more* packets, we could still be able to write 245 to one already allocated. 246 - [BUGFIX] Do not schedule pacer if there are no lost packets. 247 2482019-01-17 249 - 1.17.15 250 - [BUGFIX] http_client: make sure only one read per on_read() callback 251 is performed in the header conversion bypass (-B) mode. 252 - http_client: with -E, assign random priority when stream is created. 253 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 254 buffered packet if an ACK is queued. This reduces the number of 255 standalone ACK packets. 256 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 257 stream into an outgoing packet. This change minimizes the number of 258 buffered packets required to store several small HTTP messages by 259 virtue of allowing more than one STREAM frame from HEADERS stream in 260 the same packet. 261 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 262 causes the headers to be written to the same buffered packet queue, 263 thereby improving packet utilization, especially for small HTTP 264 messages. 265 2662019-01-16 267 - 1.17.14 268 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 269 time to download, requests per seconds, and bandwidth. See -t flag. 270 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 271 - [BUGFIX] http_client: do not display cert chain before each request. 272 Now this is only done once per connection, if the handshake is 273 successful and -a option is given. 274 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 275 stream is scheduled to be closed after on_read() callback returns, 276 close it immediately instead of waiting until the end of the tick. 277 If client creates new request from on_close() event, they will be 278 processed in the same tick instead of waiting for the next one. 279 - [BUGFIX] HEADERS stream is critical: always treat it with highest 280 priority. 281 2822019-01-10 283 - 1.17.12 284 - [FEATURE] http_client can now issue parallel requests in the context 285 of a single connection. See -w option. 286 2872019-01-03 288 - 1.17.11 289 - Fix strict aliasing warning in optimized compilation. 290 2912018-12-27 292 - 1.17.10 293 - Fix the example program to be able to use parallel connections 294 again. (See the -n argument.) 295 2962018-12-18 297 - 1.17.9 298 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 299 3002018-12-10 301 - 1.17.8 302 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 303 3042018-12-03 305 - 1.17.7 306 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 307 This prevented PING from ever being sent. 308 3092018-11-29 310 - 1.17.6 311 - Add failsafe: resume sending packets after some time 312 313 The change puts a 1-second limit on the amount of time the engine 314 will not send packets after some packets are delayed. This makes 315 the library robust in case the user does not unblock the engine 316 explicitly using lsquic_engine_send_unsent_packets() call. 317 318 - [BUGFIX] Handle corner cases in send controller when packets are 319 a) delayed or b) dropped during repackaging. 320 - [BUGFIX] Memory leak: destroy buffered packets during controller 321 cleanup. 322 3232018-11-16 324 - 1.17.3 325 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 326 3272018-10-19 328 - 1.17.2 329 - [BUGFIX] Memory leak in test_frame_rw unit test. 330 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 331 flags. (Only a problem in unit tests -- benign otherwise.) 332 3332018-10-16 334 - 1.17.0 335 - [API Change] Packet out Memory Interface (PMI) update: 336 - Split PMI pool return into pmi_release and pmi_return 337 - PMI callbacks take peer_ctx and is_ipv6 arguments 338 - [BUGFIX] Fix use-after-free when certificate is updated 339 - Silence gcc warning in optimized mode by performing useless 340 initialization 341 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 342 DEVEL_MODE 343 3442018-10-03 345 - 1.16.0 346 - [API Change] Add lsquic_conn_n_avail_streams() 347 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 348 3492018-09-27 350 - 1.15.0 351 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 352 - [BUGFIX] free uncompressed headers correctly when error occurs 353 3542018-09-12 355 - 1.14.3 356 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 357 - [BUGFIX] Drop packets that would become empty due to repackaging. 358 Packets on the scheduled queue may be marked for repackaging. 359 Frames such as ACK frame that are never resent are removed from 360 repackaged packets. We must check that the newly repackaged packet 361 would not be empty. If it would be, it is destroyed instead and 362 the next packet on the scheduled queue is used. Note that this 363 change only affects the logic to return the next packet to be sent. 364 Lost packets that are being rescheduled are already processed in 365 this fashion. 366 - Byteswap CID before logging it - this makes it match Chrome CIDs. 367 (Except Q035, which is the last little-endian GQUIC version we 368 support.) 369 3702018-09-06 371 - 1.14.0 372 - [API Change] Disable packet sending if full batch cannot be sent 373 If lsquic_packets_out_f() cannot send the whole batch, disable 374 packet sending until lsquic_engine_send_unsent_packets() is called. 375 - [BUGFIX] Handle case when STREAM frame does not fit. 376 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 377 may send overlapping STREAM frames even if using versions older 378 than Q043. 379 - Custom header set fixes: 380 - set "FIN reached" flag when custom header with FIN flag is 381 claimed; 382 - do not return custom header set for a reset stream. 383 3842018-08-27 385 386 - 1.13.0 387 - [FEATURE, API Change] Add ability to create custom header set 388 objects via callbacks. This avoids reading and re-parsing 389 headers from the stream. 390 3912018-08-27 392 393 - 1.12.4 394 - Fix memory leak when engine is destroyed 395 - Fix memory leak in http_client 396 - Fix gcc warning in unit tests 397 3982018-08-22 399 400 - 1.12.3 401 - [BUGFIX] Fix duplicate STREAM frame detection 402 4032018-08-20 404 405 - 1.12.2 406 - [BUGFIX] Update count of scheduled bytes when adjusting size of 407 an already-scheduled packet. 408 - Emit info instead of warning messages when stream is used in 409 unexpected ways. 410 4112018-08-17 412 413 - 1.12.0 414 - [FEATURE, API Change] Add support for certificate verification 415 4162018-08-16 417 418 - 1.11.1 419 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 420 4212018-08-15 422 423 - 1.11.0 424 - [FEATURE] Add support for Q044. 425 4262018-08-09 427 428 - 1.10.2 429 - [BUGFIX] Don't go over limit when creating delayed streams 430 4312018-07-10 432 433 - 1.10.1 434 - [BUGFIX] process connections after each batch of packets is read 435 This avoids a problem of accumulating a very large list of packets 436 (possible when speeds are high and socket's receive buffer is large) 437 and processing it all at once. 438 - If glibc is older than 2.17, link with rt. This is necessary for 439 clock_getres(2). 440 - Add version macros to lsquic.h; remove unnecessary includes. 441 4422018-06-13 443 444 - [BUGFIX] allow multiple parallel connections by default 445 446 Use the original method of tracking connections by CIDs by default. 447 If zero-sized CID support is turned on, connections are tracked by 448 the address. A new connection is not created if another connection 449 is using the same network address 450 4512018-05-30 452 453 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 454 4552018-05-24 456 457 - Close connection properly when packet encryption fails 458 4592018-05-23 460 461 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 462 4632018-05-21 464 465 - [API Change] Add optional callback to call when handshake is done 466 - [API Change, BUGFIX] After send failure, wait until transport available 467 4682018-05-18 469 470 - [API] Expose useful lsquic_ver2str[] in lsquic.h 471 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 472 - Improve checks of number of incoming streams limit and associated 473 error reporting. 474 - [BUGFIX] Command-line option `-6` now works correctly. 475 4762018-05-16 477 478 - [FEATURE] DNS resolution 479 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 480 - http_client: fix priority range generated by -E flag 481 4822018-05-09 483 484 - [FEATURE] Add support for Q043. 485 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 486 - Fix typo in debug message. 487 - Fix code indentation. 488 - Add /* fallthru */ comment to stop newer gcc from complaining. 489 - Logger: fix compilation of optimized Windows build. 490 4912018-05-04 492 493 - [FEATURE] Add support for Q042. 494 - Remove comment: MSPC is obsolete (no code changes) 495 - Prog: use lsquic_str2ver() when processing -o version flag 496 - Remove unused CTIM and SRBF transport parameters 497 - Disable QUIC versions Q037 and Q038 by default 498 - Fix Windows compilation by including compat header file in 499 lshpack.c 500 - Address warnings produced by newer versions of gcc 501 - Future-proof: turn off -Werror 502 5032018-05-02 504 505 - [BUGFIX] Make lsquic_conn_quic_version() available 506 - Switch to using ls-hpack 1.1 507 - [BUGFIX] Do not ignore stream resets after receiving FIN 508 5092018-04-27 510 511 - HPACK: do not allow header block to end with table size update. 512 5132018-04-25 514 515 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 516 packets. 517 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 518 - [BUGFIX] connections with blocked scheduled packets are not tickable 519 for sending. 520 - [BUGFIX] Conn is tickable if it wants to send a connection-level 521 frame. 522 5232018-04-23 524 525 - Fix busy loop: tickable must make progress. When connection is 526 self-reporting as tickable, it must make progress when ticked. There 527 are two issues: 528 1. If there are buffered packets, the connection is only tickable if 529 they can be sent out. 530 2. A connection is tickable if there are streams on the servicing 531 queue. When the tick occurs, we must service the stream 532 independent of whether any packets are sent. 533 - Fix assertion in pacer which can be incorrect under some 534 conditions. 535 - cmake: do not turn on address sanitizer if in Travis. 536 5372018-04-20 538 539 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 540 changes. 541 5422018-04-19 543 544 - [BUGFIX] Add connection to Tickable Queue on stream write 545 - cmake: use MSVC variable instead of trying to detect 546 - engine: improve connection incref/decref logging 547 - stream: don't ignore errors that may occur on triggered flush 548 - connection: remove obsolete method 549 - engine: indicate connection as tickable if previous call went 550 over threshold 551 5522018-04-09 553 554 [API Change, OPTIMIZATION] Only process conns that need to be processed 555 556 The API is simplified: do not expose the user code to several 557 queues. A "connection queue" is now an internal concept. 558 The user processes connections using the single function 559 lsquic_engine_process_conns(). When this function is called, 560 only those connections are processed that need to be processed. 561 A connection needs to be processed when: 562 563 1. New incoming packets have been fed to the connection. 564 2. User wants to read from a stream that is readable. 565 3. User wants to write to a stream that is writeable. 566 4. There are buffered packets that can be sent out. (This 567 means that the user wrote to a stream outside of the 568 lsquic library callback.) 569 5. A control frame (such as BLOCKED) needs to be sent out. 570 6. A stream needs to be serviced or delayed stream needs to 571 be created. 572 7. An alarm rings. 573 8. Pacer timer expires. 574 575 To achieve this, the library places the connections into two 576 priority queues (min heaps): 577 578 1. Tickable Queue; and 579 2. Advisory Tick Time queue (ATTQ). 580 581 Each time lsquic_engine_process_conns() is called, the Tickable 582 Queue is emptied. After the connections have been ticked, they are 583 queried again: if a connection is not being closed, it is placed 584 either in the Tickable Queue if it is ready to be ticked again or 585 it is placed in the Advisory Tick Time Queue. It is assumed that 586 a connection always has at least one timer set (the idle alarm). 587 588 The connections in the Tickable Queue are arranged in the least 589 recently ticked order. This lets connections that have been quiet 590 longer to get their packets scheduled first. 591 592 This change means that the library no longer needs to be ticked 593 periodically. The user code can query the library when is the 594 next tick event and schedule it exactly. When connections are 595 processed, only the tickable connections are processed, not *all* 596 the connections. When there are no tick events, it means that no 597 timer event is necessary -- only the file descriptor READ event 598 is active. 599 600 The following are improvements and simplifications that have 601 been triggered: 602 603 - Queue of connections with incoming packets is gone. 604 - "Pending Read/Write Events" Queue is gone (along with its 605 history and progress checks). This queue has become the 606 Tickable Queue. 607 - The connection hash no longer needs to track the connection 608 insertion order. 609 6102018-04-02 611 612 - [FEATURE] Windows support 613 614 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 615 6162018-03-09 617 618 - [OPTIMIZATION] Merge series of ACKs if possible 619 620 Parsed single-range ACK frames (that is the majority of frames) are 621 saved in the connection and their processing is deferred until the 622 connection is ticked. If several ACKs come in a series between 623 adjacent ticks, we check whether the latest ACK is a strict superset 624 of the saved ACK. If it is, the older ACK is not processed. 625 626 If ACK frames can be merged, they are merged and only one of them is 627 either processed or saved. 628 629 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 630 631 Never generate a gap in the sent packet number sequence. This reduces 632 the send history to a single number instead of potentially a series of 633 packet ranges and thereby speeds up ACK verification. 634 635 By default, detecting a gap in the send history is not fatal: only a 636 single warning is generated per connection. The connection can continue 637 to operate even if the ACK verification code is not able to detect some 638 inconsistencies. 639 640 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 641 642 The first part of struct lsquic_send_ctl now consists of members that 643 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 644 which is the normal case). To speed up reads and writes, we no longer 645 try to save space by using 8- and 16-bit integers. Use regular integer 646 width for everything. 647 648 - [OPTIMIZATION] Cache size of sent packet. 649 650 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 651 652 Instead of parsing our own ACK frames when packet has been acked, 653 use the value saved in the packet_out structure when the ACK frame 654 was generated. 655 656 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 657 658 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 659 660 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 661 662 - Fix: http_client: fix -I flag; switch assert() to abort() 663 6642018-02-26 665 - [API Change] lsquic_engine_connect() returns pointer to the connection 666 object. 667 - [API Change] Add lsquic_conn_get_engine() to get engine object from 668 connection object. 669 - [API Change] Add lsquic_conn_status() to query connection status. 670 - [API Change] Add add lsquic_conn_set_ctx(). 671 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 672 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 673 arrives. 674 - [OPTIMIZATION] Do not compile expensive send controller sanity check 675 by default. 676 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 677 - [OPTIMIZATION] Only make squeeze function call if necessary. 678 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 679 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 680 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 681 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 682 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 683 ordered. 684 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 685 - Fix: reset incoming streams that arrive after we send GOAWAY. 686 - Fix: delay client on_new_conn() call until connection is fully set up. 687 - Fixes to buffered packets logic: splitting, STREAM frame elision. 688 - Fix: do not dispatch on_write callback if no packets are available. 689 - Fix WINDOW_UPDATE send and resend logic. 690 - Fix STREAM frame extension code. 691 - Fix: Drop unflushed data when stream is reset. 692 - Switch to tracking CWND using bytes rather than packets. 693 - Fix TCP friendly adjustment in cubic. 694 - Fix: do not generate invalid STOP_WAITING frames during high packet 695 loss. 696 - Pacer fixes. 697 6982017-12-18 699 700 - Fix: better follow cubic curve after idle period 701 - Fix: add missing parts to outgoing packet splitting code 702 - Fix: compilation using gcc 4.8.4 703 7042017-10-31 705 706 - Add APIs.txt -- describes LSQUIC APIs 707 7082017-10-31 709 710 - [API Change] Sendfile-like functionality is gone. The stream no 711 longer opens files and deals with file descriptors. (Among other 712 things, this makes the code more portable.) Three writing functions 713 are provided: 714 715 lsquic_stream_write 716 lsquic_stream_writev 717 lsquic_stream_writef (NEW) 718 719 lsquic_stream_writef() is given an abstract reader that has function 720 pointers for size() and read() functions which the user can implement. 721 This is the most flexible way. lsquic_stream_write() and 722 lsquic_stream_writev() are now both implemented as wrappers around 723 lsquic_stream_writef(). 724 725 - [OPTIMIZATION] When writing to stream, be it within or without the 726 on_write() callback, place data directly into packet buffer, 727 bypassing auxiliary data structures. This reduces amount of memory 728 required, for the amount of data that can be written is limited 729 by the congestion window. 730 731 To support writes outside the on_write() callback, we keep N 732 outgoing packet buffers per connection which can be written to 733 by any stream. One half of these are reserved for the highest 734 priority stream(s), the other half for all other streams. This way, 735 low-priority streams cannot write instead of high-priority streams 736 and, on the other hand, low-priority streams get a chance to send 737 their packets out. 738 739 The algorithm is as follows: 740 741 - When user writes to stream outside of the callback: 742 - If this is the highest priority stream, place it onto the 743 reserved N/2 queue or fail. 744 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 745 rather than N/2, allowing high-priority streams to write as 746 much as can be sent.) 747 - If the stream is not the highest priority, try to place the 748 data onto the reserved N/2 queue or fail. 749 - When tick occurs *and* more packets can be scheduled: 750 - Transfer packets from the high N/2 queue to the scheduled 751 queue. 752 - If more scheduling is allowed: 753 - Call on_write callbacks for highest-priority streams, 754 placing resulting packets directly onto the scheduled queue. 755 - If more scheduling is allowed: 756 - Transfer packets from the low N/2 queue to the scheduled 757 queue. 758 - If more scheduling is allowed: 759 - Call on_write callbacks for non-highest-priority streams, 760 placing resulting packets directly onto the scheduled queue 761 762 The number N is currently 20, but it could be varied based on 763 resource usage. 764 765 - If stream is created due to incoming headers, make headers readable 766 from on_new. 767 768 - Outgoing packets are no longer marked non-writeable to prevent placing 769 more than one STREAM frame from the same stream into a single packet. 770 This property is maintained via code flow and an explicit check. 771 Packets for stream data are allocated using a special function. 772 773 - STREAM frame elision is cheaper, as we only perform it if a reset 774 stream has outgoing packets referencing it. 775 776 - lsquic_packet_out_t is smaller, as stream_rec elements are now 777 inside a union. 778 7792017-10-12 780 781 - Do not send RST_STREAM when stream is closed for reading 782 - Raise maximum header size from 4K to 64K 783 - Check header name and value lengths against maximum imposed by HPACK 784 - Fix NULL dereference in stream flow controller 785 7862017-10-09 787 788 - Hide handshake implementation behind a set of function pointers 789 - Use monotonically increasing clock 790 - Make sure that retx delay is not larger than the max of 60 seconds 791 7922017-09-29 793 794 - A few fixes to code and README 795 7962017-09-28 797 798 - Add support for Q041; drop support for Q040 799 8002017-09-27 801 802 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 803 8042017-09-26 805 806 - Add support for Mac OS 807 - Add support for Raspberry Pi 808 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 809 8102017-09-22 811 812 - Initial release 813