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