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