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