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