CHANGELOG revision 07354a9a
12018-05-16
2
3    - [FEATURE] DNS resolution
4    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
5    - http_client: fix priority range generated by -E flag
6
72018-05-09
8
9    - [FEATURE] Add support for Q043.
10    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
11    - Fix typo in debug message.
12    - Fix code indentation.
13    - Add /* fallthru */ comment to stop newer gcc from complaining.
14    - Logger: fix compilation of optimized Windows build.
15
162018-05-04
17
18    - [FEATURE] Add support for Q042.
19    - Remove comment: MSPC is obsolete (no code changes)
20    - Prog: use lsquic_str2ver() when processing -o version flag
21    - Remove unused CTIM and SRBF transport parameters
22    - Disable QUIC versions Q037 and Q038 by default
23    - Fix Windows compilation by including compat header file in
24      lshpack.c
25    - Address warnings produced by newer versions of gcc
26    - Future-proof: turn off -Werror
27
282018-05-02
29
30    - [BUGFIX] Make lsquic_conn_quic_version() available
31    - Switch to using ls-hpack 1.1
32    - [BUGFIX] Do not ignore stream resets after receiving FIN
33
342018-04-27
35
36    - HPACK: do not allow header block to end with table size update.
37
382018-04-25
39
40    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
41      packets.
42    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
43    - [BUGFIX] connections with blocked scheduled packets are not tickable
44      for sending.
45    - [BUGFIX] Conn is tickable if it wants to send a connection-level
46      frame.
47
482018-04-23
49
50    - Fix busy loop: tickable must make progress.  When connection is
51      self-reporting as tickable, it must make progress when ticked.  There
52      are two issues:
53        1. If there are buffered packets, the connection is only tickable if
54           they can be sent out.
55        2. A connection is tickable if there are streams on the servicing
56           queue.  When the tick occurs, we must service the stream
57           independent of whether any packets are sent.
58    - Fix assertion in pacer which can be incorrect under some
59      conditions.
60    - cmake: do not turn on address sanitizer if in Travis.
61
622018-04-20
63
64    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
65      changes.
66
672018-04-19
68
69    - [BUGFIX] Add connection to Tickable Queue on stream write
70    - cmake: use MSVC variable instead of trying to detect
71    - engine: improve connection incref/decref logging
72    - stream: don't ignore errors that may occur on triggered flush
73    - connection: remove obsolete method
74    - engine: indicate connection as tickable if previous call went
75      over threshold
76
772018-04-09
78
79    [API Change, OPTIMIZATION] Only process conns that need to be processed
80
81    The API is simplified: do not expose the user code to several
82    queues.  A "connection queue" is now an internal concept.
83    The user processes connections using the single function
84    lsquic_engine_process_conns().  When this function is called,
85    only those connections are processed that need to be processed.
86    A connection needs to be processed when:
87
88        1. New incoming packets have been fed to the connection.
89        2. User wants to read from a stream that is readable.
90        3. User wants to write to a stream that is writeable.
91        4. There are buffered packets that can be sent out.  (This
92           means that the user wrote to a stream outside of the
93           lsquic library callback.)
94        5. A control frame (such as BLOCKED) needs to be sent out.
95        6. A stream needs to be serviced or delayed stream needs to
96           be created.
97        7. An alarm rings.
98        8. Pacer timer expires.
99
100    To achieve this, the library places the connections into two
101    priority queues (min heaps):
102
103        1. Tickable Queue; and
104        2. Advisory Tick Time queue (ATTQ).
105
106    Each time lsquic_engine_process_conns() is called, the Tickable
107    Queue is emptied.  After the connections have been ticked, they are
108    queried again: if a connection is not being closed, it is placed
109    either in the Tickable Queue if it is ready to be ticked again or
110    it is placed in the Advisory Tick Time Queue.  It is assumed that
111    a connection always has at least one timer set (the idle alarm).
112
113    The connections in the Tickable Queue are arranged in the least
114    recently ticked order.  This lets connections that have been quiet
115    longer to get their packets scheduled first.
116
117    This change means that the library no longer needs to be ticked
118    periodically.  The user code can query the library when is the
119    next tick event and schedule it exactly.  When connections are
120    processed, only the tickable connections are processed, not *all*
121    the connections.  When there are no tick events, it means that no
122    timer event is necessary -- only the file descriptor READ event
123    is active.
124
125    The following are improvements and simplifications that have
126    been triggered:
127
128        - Queue of connections with incoming packets is gone.
129        - "Pending Read/Write Events" Queue is gone (along with its
130          history and progress checks).  This queue has become the
131          Tickable Queue.
132        - The connection hash no longer needs to track the connection
133          insertion order.
134
1352018-04-02
136
137    - [FEATURE] Windows support
138
139    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
140
1412018-03-09
142
143    - [OPTIMIZATION] Merge series of ACKs if possible
144
145      Parsed single-range ACK frames (that is the majority of frames) are
146      saved in the connection and their processing is deferred until the
147      connection is ticked.  If several ACKs come in a series between
148      adjacent ticks, we check whether the latest ACK is a strict superset
149      of the saved ACK.  If it is, the older ACK is not processed.
150
151      If ACK frames can be merged, they are merged and only one of them is
152      either processed or saved.
153
154    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
155
156      Never generate a gap in the sent packet number sequence.  This reduces
157      the send history to a single number instead of potentially a series of
158      packet ranges and thereby speeds up ACK verification.
159
160      By default, detecting a gap in the send history is not fatal: only a
161      single warning is generated per connection.  The connection can continue
162      to operate even if the ACK verification code is not able to detect some
163      inconsistencies.
164
165    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
166
167      The first part of struct lsquic_send_ctl now consists of members that
168      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
169      which is the normal case).  To speed up reads and writes, we no longer
170      try to save space by using 8- and 16-bit integers.  Use regular integer
171      width for everything.
172
173    - [OPTIMIZATION] Cache size of sent packet.
174
175    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
176
177      Instead of parsing our own ACK frames when packet has been acked,
178      use the value saved in the packet_out structure when the ACK frame
179      was generated.
180
181    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
182
183    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
184
185    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
186
187    - Fix: http_client: fix -I flag; switch assert() to abort()
188
1892018-02-26
190    - [API Change] lsquic_engine_connect() returns pointer to the connection
191      object.
192    - [API Change] Add lsquic_conn_get_engine() to get engine object from
193      connection object.
194    - [API Change] Add lsquic_conn_status() to query connection status.
195    - [API Change] Add add lsquic_conn_set_ctx().
196    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
197    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
198      arrives.
199    - [OPTIMIZATION] Do not compile expensive send controller sanity check
200      by default.
201    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
202    - [OPTIMIZATION] Only make squeeze function call if necessary.
203    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
204    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
205    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
206    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
207    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
208      ordered.
209    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
210    - Fix: reset incoming streams that arrive after we send GOAWAY.
211    - Fix: delay client on_new_conn() call until connection is fully set up.
212    - Fixes to buffered packets logic: splitting, STREAM frame elision.
213    - Fix: do not dispatch on_write callback if no packets are available.
214    - Fix WINDOW_UPDATE send and resend logic.
215    - Fix STREAM frame extension code.
216    - Fix: Drop unflushed data when stream is reset.
217    - Switch to tracking CWND using bytes rather than packets.
218    - Fix TCP friendly adjustment in cubic.
219    - Fix: do not generate invalid STOP_WAITING frames during high packet
220      loss.
221    - Pacer fixes.
222
2232017-12-18
224
225    - Fix: better follow cubic curve after idle period
226    - Fix: add missing parts to outgoing packet splitting code
227    - Fix: compilation using gcc 4.8.4
228
2292017-10-31
230
231    - Add APIs.txt -- describes LSQUIC APIs
232
2332017-10-31
234
235    - [API Change] Sendfile-like functionality is gone.  The stream no
236      longer opens files and deals with file descriptors.  (Among other
237      things, this makes the code more portable.)  Three writing functions
238      are provided:
239
240        lsquic_stream_write
241        lsquic_stream_writev
242        lsquic_stream_writef    (NEW)
243
244      lsquic_stream_writef() is given an abstract reader that has function
245      pointers for size() and read() functions which the user can implement.
246      This is the most flexible way.  lsquic_stream_write() and
247      lsquic_stream_writev() are now both implemented as wrappers around
248      lsquic_stream_writef().
249
250    - [OPTIMIZATION] When writing to stream, be it within or without the
251      on_write() callback, place data directly into packet buffer,
252      bypassing auxiliary data structures.  This reduces amount of memory
253      required, for the amount of data that can be written is limited
254      by the congestion window.
255
256      To support writes outside the on_write() callback, we keep N
257      outgoing packet buffers per connection which can be written to
258      by any stream.  One half of these are reserved for the highest
259      priority stream(s), the other half for all other streams.  This way,
260      low-priority streams cannot write instead of high-priority streams
261      and, on the other hand, low-priority streams get a chance to send
262      their packets out.
263
264      The algorithm is as follows:
265
266      - When user writes to stream outside of the callback:
267        - If this is the highest priority stream, place it onto the
268          reserved N/2 queue or fail.
269            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
270             rather than N/2, allowing high-priority streams to write as
271             much as can be sent.)
272        - If the stream is not the highest priority, try to place the
273          data onto the reserved N/2 queue or fail.
274      - When tick occurs *and* more packets can be scheduled:
275        - Transfer packets from the high N/2 queue to the scheduled
276          queue.
277        - If more scheduling is allowed:
278          - Call on_write callbacks for highest-priority streams,
279            placing resulting packets directly onto the scheduled queue.
280        - If more scheduling is allowed:
281          - Transfer packets from the low N/2 queue to the scheduled
282            queue.
283        - If more scheduling is allowed:
284          - Call on_write callbacks for non-highest-priority streams,
285            placing resulting packets directly onto the scheduled queue
286
287      The number N is currently 20, but it could be varied based on
288      resource usage.
289
290    - If stream is created due to incoming headers, make headers readable
291      from on_new.
292
293    - Outgoing packets are no longer marked non-writeable to prevent placing
294      more than one STREAM frame from the same stream into a single packet.
295      This property is maintained via code flow and an explicit check.
296      Packets for stream data are allocated using a special function.
297
298    - STREAM frame elision is cheaper, as we only perform it if a reset
299      stream has outgoing packets referencing it.
300
301    - lsquic_packet_out_t is smaller, as stream_rec elements are now
302      inside a union.
303
3042017-10-12
305
306    - Do not send RST_STREAM when stream is closed for reading
307    - Raise maximum header size from 4K to 64K
308    - Check header name and value lengths against maximum imposed by HPACK
309    - Fix NULL dereference in stream flow controller
310
3112017-10-09
312
313    - Hide handshake implementation behind a set of function pointers
314    - Use monotonically increasing clock
315    - Make sure that retx delay is not larger than the max of 60 seconds
316
3172017-09-29
318
319    - A few fixes to code and README
320
3212017-09-28
322
323    - Add support for Q041; drop support for Q040
324
3252017-09-27
326
327    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
328
3292017-09-26
330
331    - Add support for Mac OS
332    - Add support for Raspberry Pi
333    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
334
3352017-09-22
336
337    - Initial release
338