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