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