CHANGELOG revision 3b55e6ae
12018-08-27
2
3    - 1.13.0
4    - [FEATURE, API Change] Add ability to create custom header set
5      objects via callbacks.  This avoids reading and re-parsing
6      headers from the stream.
7
82018-08-27
9
10    - 1.12.4
11    - Fix memory leak when engine is destroyed
12    - Fix memory leak in http_client
13    - Fix gcc warning in unit tests
14
152018-08-22
16
17    - 1.12.3
18    - [BUGFIX] Fix duplicate STREAM frame detection
19
202018-08-20
21
22    - 1.12.2
23    - [BUGFIX] Update count of scheduled bytes when adjusting size of
24      an already-scheduled packet.
25    - Emit info instead of warning messages when stream is used in
26      unexpected ways.
27
282018-08-17
29
30    - 1.12.0
31    - [FEATURE, API Change] Add support for certificate verification
32
332018-08-16
34
35    - 1.11.1
36    - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code
37
382018-08-15
39
40    - 1.11.0
41    - [FEATURE] Add support for Q044.
42
432018-08-09
44
45    - 1.10.2
46    - [BUGFIX] Don't go over limit when creating delayed streams
47
482018-07-10
49
50    - 1.10.1
51    - [BUGFIX]  process connections after each batch of packets is read
52      This avoids a problem of accumulating a very large list of packets
53      (possible when speeds are high and socket's receive buffer is large)
54      and processing it all at once.
55    - If glibc is older than 2.17, link with rt.  This is necessary for
56      clock_getres(2).
57    - Add version macros to lsquic.h; remove unnecessary includes.
58
592018-06-13
60
61    - [BUGFIX] allow multiple parallel connections by default
62
63      Use the original method of tracking connections by CIDs by default.
64      If zero-sized CID support is turned on, connections are tracked by
65      the address.  A new connection is not created if another connection
66      is using the same network address
67
682018-05-30
69
70    - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets
71
722018-05-24
73
74    - Close connection properly when packet encryption fails
75
762018-05-23
77
78    - [BUGFIX] Do not produce packet sequence gaps due to delayed packets
79
802018-05-21
81
82    - [API Change] Add optional callback to call when handshake is done
83    - [API Change, BUGFIX] After send failure, wait until transport available
84
852018-05-18
86
87    - [API] Expose useful lsquic_ver2str[] in lsquic.h
88    - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision
89    - Improve checks of number of incoming streams limit and associated
90      error reporting.
91    - [BUGFIX] Command-line option `-6` now works correctly.
92
932018-05-16
94
95    - [FEATURE] DNS resolution
96    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
97    - http_client: fix priority range generated by -E flag
98
992018-05-09
100
101    - [FEATURE] Add support for Q043.
102    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
103    - Fix typo in debug message.
104    - Fix code indentation.
105    - Add /* fallthru */ comment to stop newer gcc from complaining.
106    - Logger: fix compilation of optimized Windows build.
107
1082018-05-04
109
110    - [FEATURE] Add support for Q042.
111    - Remove comment: MSPC is obsolete (no code changes)
112    - Prog: use lsquic_str2ver() when processing -o version flag
113    - Remove unused CTIM and SRBF transport parameters
114    - Disable QUIC versions Q037 and Q038 by default
115    - Fix Windows compilation by including compat header file in
116      lshpack.c
117    - Address warnings produced by newer versions of gcc
118    - Future-proof: turn off -Werror
119
1202018-05-02
121
122    - [BUGFIX] Make lsquic_conn_quic_version() available
123    - Switch to using ls-hpack 1.1
124    - [BUGFIX] Do not ignore stream resets after receiving FIN
125
1262018-04-27
127
128    - HPACK: do not allow header block to end with table size update.
129
1302018-04-25
131
132    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
133      packets.
134    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
135    - [BUGFIX] connections with blocked scheduled packets are not tickable
136      for sending.
137    - [BUGFIX] Conn is tickable if it wants to send a connection-level
138      frame.
139
1402018-04-23
141
142    - Fix busy loop: tickable must make progress.  When connection is
143      self-reporting as tickable, it must make progress when ticked.  There
144      are two issues:
145        1. If there are buffered packets, the connection is only tickable if
146           they can be sent out.
147        2. A connection is tickable if there are streams on the servicing
148           queue.  When the tick occurs, we must service the stream
149           independent of whether any packets are sent.
150    - Fix assertion in pacer which can be incorrect under some
151      conditions.
152    - cmake: do not turn on address sanitizer if in Travis.
153
1542018-04-20
155
156    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
157      changes.
158
1592018-04-19
160
161    - [BUGFIX] Add connection to Tickable Queue on stream write
162    - cmake: use MSVC variable instead of trying to detect
163    - engine: improve connection incref/decref logging
164    - stream: don't ignore errors that may occur on triggered flush
165    - connection: remove obsolete method
166    - engine: indicate connection as tickable if previous call went
167      over threshold
168
1692018-04-09
170
171    [API Change, OPTIMIZATION] Only process conns that need to be processed
172
173    The API is simplified: do not expose the user code to several
174    queues.  A "connection queue" is now an internal concept.
175    The user processes connections using the single function
176    lsquic_engine_process_conns().  When this function is called,
177    only those connections are processed that need to be processed.
178    A connection needs to be processed when:
179
180        1. New incoming packets have been fed to the connection.
181        2. User wants to read from a stream that is readable.
182        3. User wants to write to a stream that is writeable.
183        4. There are buffered packets that can be sent out.  (This
184           means that the user wrote to a stream outside of the
185           lsquic library callback.)
186        5. A control frame (such as BLOCKED) needs to be sent out.
187        6. A stream needs to be serviced or delayed stream needs to
188           be created.
189        7. An alarm rings.
190        8. Pacer timer expires.
191
192    To achieve this, the library places the connections into two
193    priority queues (min heaps):
194
195        1. Tickable Queue; and
196        2. Advisory Tick Time queue (ATTQ).
197
198    Each time lsquic_engine_process_conns() is called, the Tickable
199    Queue is emptied.  After the connections have been ticked, they are
200    queried again: if a connection is not being closed, it is placed
201    either in the Tickable Queue if it is ready to be ticked again or
202    it is placed in the Advisory Tick Time Queue.  It is assumed that
203    a connection always has at least one timer set (the idle alarm).
204
205    The connections in the Tickable Queue are arranged in the least
206    recently ticked order.  This lets connections that have been quiet
207    longer to get their packets scheduled first.
208
209    This change means that the library no longer needs to be ticked
210    periodically.  The user code can query the library when is the
211    next tick event and schedule it exactly.  When connections are
212    processed, only the tickable connections are processed, not *all*
213    the connections.  When there are no tick events, it means that no
214    timer event is necessary -- only the file descriptor READ event
215    is active.
216
217    The following are improvements and simplifications that have
218    been triggered:
219
220        - Queue of connections with incoming packets is gone.
221        - "Pending Read/Write Events" Queue is gone (along with its
222          history and progress checks).  This queue has become the
223          Tickable Queue.
224        - The connection hash no longer needs to track the connection
225          insertion order.
226
2272018-04-02
228
229    - [FEATURE] Windows support
230
231    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
232
2332018-03-09
234
235    - [OPTIMIZATION] Merge series of ACKs if possible
236
237      Parsed single-range ACK frames (that is the majority of frames) are
238      saved in the connection and their processing is deferred until the
239      connection is ticked.  If several ACKs come in a series between
240      adjacent ticks, we check whether the latest ACK is a strict superset
241      of the saved ACK.  If it is, the older ACK is not processed.
242
243      If ACK frames can be merged, they are merged and only one of them is
244      either processed or saved.
245
246    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
247
248      Never generate a gap in the sent packet number sequence.  This reduces
249      the send history to a single number instead of potentially a series of
250      packet ranges and thereby speeds up ACK verification.
251
252      By default, detecting a gap in the send history is not fatal: only a
253      single warning is generated per connection.  The connection can continue
254      to operate even if the ACK verification code is not able to detect some
255      inconsistencies.
256
257    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
258
259      The first part of struct lsquic_send_ctl now consists of members that
260      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
261      which is the normal case).  To speed up reads and writes, we no longer
262      try to save space by using 8- and 16-bit integers.  Use regular integer
263      width for everything.
264
265    - [OPTIMIZATION] Cache size of sent packet.
266
267    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
268
269      Instead of parsing our own ACK frames when packet has been acked,
270      use the value saved in the packet_out structure when the ACK frame
271      was generated.
272
273    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
274
275    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
276
277    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
278
279    - Fix: http_client: fix -I flag; switch assert() to abort()
280
2812018-02-26
282    - [API Change] lsquic_engine_connect() returns pointer to the connection
283      object.
284    - [API Change] Add lsquic_conn_get_engine() to get engine object from
285      connection object.
286    - [API Change] Add lsquic_conn_status() to query connection status.
287    - [API Change] Add add lsquic_conn_set_ctx().
288    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
289    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
290      arrives.
291    - [OPTIMIZATION] Do not compile expensive send controller sanity check
292      by default.
293    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
294    - [OPTIMIZATION] Only make squeeze function call if necessary.
295    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
296    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
297    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
298    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
299    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
300      ordered.
301    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
302    - Fix: reset incoming streams that arrive after we send GOAWAY.
303    - Fix: delay client on_new_conn() call until connection is fully set up.
304    - Fixes to buffered packets logic: splitting, STREAM frame elision.
305    - Fix: do not dispatch on_write callback if no packets are available.
306    - Fix WINDOW_UPDATE send and resend logic.
307    - Fix STREAM frame extension code.
308    - Fix: Drop unflushed data when stream is reset.
309    - Switch to tracking CWND using bytes rather than packets.
310    - Fix TCP friendly adjustment in cubic.
311    - Fix: do not generate invalid STOP_WAITING frames during high packet
312      loss.
313    - Pacer fixes.
314
3152017-12-18
316
317    - Fix: better follow cubic curve after idle period
318    - Fix: add missing parts to outgoing packet splitting code
319    - Fix: compilation using gcc 4.8.4
320
3212017-10-31
322
323    - Add APIs.txt -- describes LSQUIC APIs
324
3252017-10-31
326
327    - [API Change] Sendfile-like functionality is gone.  The stream no
328      longer opens files and deals with file descriptors.  (Among other
329      things, this makes the code more portable.)  Three writing functions
330      are provided:
331
332        lsquic_stream_write
333        lsquic_stream_writev
334        lsquic_stream_writef    (NEW)
335
336      lsquic_stream_writef() is given an abstract reader that has function
337      pointers for size() and read() functions which the user can implement.
338      This is the most flexible way.  lsquic_stream_write() and
339      lsquic_stream_writev() are now both implemented as wrappers around
340      lsquic_stream_writef().
341
342    - [OPTIMIZATION] When writing to stream, be it within or without the
343      on_write() callback, place data directly into packet buffer,
344      bypassing auxiliary data structures.  This reduces amount of memory
345      required, for the amount of data that can be written is limited
346      by the congestion window.
347
348      To support writes outside the on_write() callback, we keep N
349      outgoing packet buffers per connection which can be written to
350      by any stream.  One half of these are reserved for the highest
351      priority stream(s), the other half for all other streams.  This way,
352      low-priority streams cannot write instead of high-priority streams
353      and, on the other hand, low-priority streams get a chance to send
354      their packets out.
355
356      The algorithm is as follows:
357
358      - When user writes to stream outside of the callback:
359        - If this is the highest priority stream, place it onto the
360          reserved N/2 queue or fail.
361            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
362             rather than N/2, allowing high-priority streams to write as
363             much as can be sent.)
364        - If the stream is not the highest priority, try to place the
365          data onto the reserved N/2 queue or fail.
366      - When tick occurs *and* more packets can be scheduled:
367        - Transfer packets from the high N/2 queue to the scheduled
368          queue.
369        - If more scheduling is allowed:
370          - Call on_write callbacks for highest-priority streams,
371            placing resulting packets directly onto the scheduled queue.
372        - If more scheduling is allowed:
373          - Transfer packets from the low N/2 queue to the scheduled
374            queue.
375        - If more scheduling is allowed:
376          - Call on_write callbacks for non-highest-priority streams,
377            placing resulting packets directly onto the scheduled queue
378
379      The number N is currently 20, but it could be varied based on
380      resource usage.
381
382    - If stream is created due to incoming headers, make headers readable
383      from on_new.
384
385    - Outgoing packets are no longer marked non-writeable to prevent placing
386      more than one STREAM frame from the same stream into a single packet.
387      This property is maintained via code flow and an explicit check.
388      Packets for stream data are allocated using a special function.
389
390    - STREAM frame elision is cheaper, as we only perform it if a reset
391      stream has outgoing packets referencing it.
392
393    - lsquic_packet_out_t is smaller, as stream_rec elements are now
394      inside a union.
395
3962017-10-12
397
398    - Do not send RST_STREAM when stream is closed for reading
399    - Raise maximum header size from 4K to 64K
400    - Check header name and value lengths against maximum imposed by HPACK
401    - Fix NULL dereference in stream flow controller
402
4032017-10-09
404
405    - Hide handshake implementation behind a set of function pointers
406    - Use monotonically increasing clock
407    - Make sure that retx delay is not larger than the max of 60 seconds
408
4092017-09-29
410
411    - A few fixes to code and README
412
4132017-09-28
414
415    - Add support for Q041; drop support for Q040
416
4172017-09-27
418
419    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
420
4212017-09-26
422
423    - Add support for Mac OS
424    - Add support for Raspberry Pi
425    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
426
4272017-09-22
428
429    - Initial release
430