blob: ecce0cedb7fcea935276a60a2f9c8766fb32d4dc [file] [log] [blame]
Andy Greena35c86f2013-01-31 10:16:44 +08001Changelog
2---------
3
Andy Green7b405452013-02-01 10:50:15 +08004(development since 1.1....)
5
6User api additions
7------------------
8
9 - lws_get_library_version() returns a const char * with a string like
10 "1.1 9e7f737", representing the library version from configure.ac
11 and the git HEAD hash the library was built from
12
13
Andy Greened334462013-02-07 21:14:33 +080014User api changes
15----------------
16
17 - Header tokens are now deleted after the websocket connection is
Andy Green54495112013-02-06 21:10:16 +090018 established. Not just the header data is saved, but the pointer and
19 length array is also removed from (union) scope saving several hundred
20 bytes per connection once it is established
21
22 - struct libwebsocket_protocols has a new member rx_buffer_size, this
23 controls rx buffer size per connection of that protocol now. Sources
24 for apps built against older versions of the library won't declare
25 this in their protocols, defaulting it to 0. Zero buffer is legal,
26 it causes a default buffer to be allocated (currently 4096)
27
28 If you want to receive only atomic frames in your user callback, you
29 should set this to greater than your largest frame size. If a frame
30 comes that exceeds that, no error occurs but the callback happens as
31 soon as the buffer limit is reached, and again if it is reached again
32 or the frame completes. You can detect that has happened by seeing
33 there is still frame content pending using
34 libwebsockets_remaining_packet_payload()
35
36 By correctly setting this, you can save a lot of memory when your
37 protocol has small frames (see the test server and client sources).
38
39
40User api removals
41-----------------
42
43The configuration-time option MAX_USER_RX_BUFFER has been replaced by a
44buffer size chosen per-protocol. For compatibility, there's a default of
454096 rx buffer, but user code should set the appropriate size for the
46protocol frames.
Andy Greened334462013-02-07 21:14:33 +080047
48
Andy Greendf60b0c2013-02-06 19:57:12 +090049New features
50------------
51
Andy Green9b09dc02013-02-08 12:48:36 +080052 - Cmake project file added, aimed initially at Windows support: this replaces
Andy Greendf60b0c2013-02-06 19:57:12 +090053the visual studio project files that were in the tree until now.
54
Andy Green9b09dc02013-02-08 12:48:36 +080055 - PATH_MAX or MAX_PATH no longer needed
Andy Greendf60b0c2013-02-06 19:57:12 +090056
Andy Green54495112013-02-06 21:10:16 +090057 - cutomizable frame rx buffer size by protocol
58
59
Andy Green7b405452013-02-01 10:50:15 +080060
Andy Greenbd1132f2013-01-31 19:53:05 +080061v1.1-chrome26-firefox18
Andy Greena35c86f2013-01-31 10:16:44 +080062=======================
63
64Diffstat
65--------
66
67 Makefile.am | 4 +
68 README-test-server | 291 ---
69 README.build | 239 ++
70 README.coding | 138 ++
71 README.rst | 72 -
72 README.test-apps | 272 +++
73 configure.ac | 116 +-
74 lib/Makefile.am | 55 +-
75 lib/base64-decode.c | 5 +-
76 lib/client-handshake.c | 121 +-
77 lib/client-parser.c | 394 ++++
78 lib/client.c | 807 +++++++
79 lib/daemonize.c | 212 ++
80 lib/extension-deflate-frame.c | 132 +-
81 lib/extension-deflate-stream.c | 12 +-
82 lib/extension-x-google-mux.c | 1223 ----------
83 lib/extension-x-google-mux.h | 96 -
84 lib/extension.c | 8 -
85 lib/getifaddrs.c | 271 +++
86 lib/getifaddrs.h | 76 +
87 lib/handshake.c | 582 +----
88 lib/libwebsockets.c | 2493 ++++++---------------
89 lib/libwebsockets.h | 115 +-
90 lib/md5.c | 217 --
91 lib/minilex.c | 440 ++++
92 lib/output.c | 628 ++++++
93 lib/parsers.c | 2016 +++++------------
94 lib/private-libwebsockets.h | 284 +--
95 lib/server-handshake.c | 275 +++
96 lib/server.c | 377 ++++
97 libwebsockets-api-doc.html | 300 +--
98 m4/ignore-me | 2 +
99 test-server/Makefile.am | 111 +-
100 test-server/libwebsockets.org-logo.png | Bin 0 -> 7029 bytes
101 test-server/test-client.c | 45 +-
102 test-server/test-echo.c | 330 +++
103 test-server/test-fraggle.c | 20 +-
104 test-server/test-ping.c | 22 +-
105 test-server/test-server-extpoll.c | 554 -----
106 test-server/test-server.c | 349 ++-
107 test-server/test.html | 3 +-
108 win32port/zlib/ZLib.vcxproj | 749 ++++---
109 win32port/zlib/ZLib.vcxproj.filters | 188 +-
110 win32port/zlib/adler32.c | 348 ++-
111 win32port/zlib/compress.c | 160 +-
112 win32port/zlib/crc32.c | 867 ++++----
113 win32port/zlib/crc32.h | 882 ++++----
114 win32port/zlib/deflate.c | 3799 +++++++++++++++-----------------
115 win32port/zlib/deflate.h | 688 +++---
116 win32port/zlib/gzclose.c | 50 +-
117 win32port/zlib/gzguts.h | 325 ++-
118 win32port/zlib/gzlib.c | 1157 +++++-----
119 win32port/zlib/gzread.c | 1242 ++++++-----
120 win32port/zlib/gzwrite.c | 1096 +++++----
121 win32port/zlib/infback.c | 1272 ++++++-----
122 win32port/zlib/inffast.c | 680 +++---
123 win32port/zlib/inffast.h | 22 +-
124 win32port/zlib/inffixed.h | 188 +-
125 win32port/zlib/inflate.c | 2976 +++++++++++++------------
126 win32port/zlib/inflate.h | 244 +-
127 win32port/zlib/inftrees.c | 636 +++---
128 win32port/zlib/inftrees.h | 124 +-
129 win32port/zlib/trees.c | 2468 +++++++++++----------
130 win32port/zlib/trees.h | 256 +--
131 win32port/zlib/uncompr.c | 118 +-
132 win32port/zlib/zconf.h | 934 ++++----
133 win32port/zlib/zlib.h | 3357 ++++++++++++++--------------
134 win32port/zlib/zutil.c | 642 +++---
135 win32port/zlib/zutil.h | 526 ++---
136 69 files changed, 19556 insertions(+), 20145 deletions(-)
137
138user api changes
139----------------
140
141 - libwebsockets_serve_http_file() now takes a context as first argument
142
143 - libwebsockets_get_peer_addresses() now takes a context and wsi as first
144 two arguments
145
146
147user api additions
148------------------
149
150 - lwsl_...() logging apis, default to stderr but retargetable by user code;
151 may be used also by user code
152
153 - lws_set_log_level() set which logging apis are able to emit (defaults to
154 notice, warn, err severities), optionally set the emit callback
155
156 - lwsl_emit_syslog() helper callback emits to syslog
157
158 - lws_daemonize() helper code that forks the app into a headless daemon
159 properly, maintains a lock file with pid in suitable for sysvinit etc to
160 control lifecycle
161
162 - LWS_CALLBACK_HTTP_FILE_COMPLETION callback added since http file
163 transfer is now asynchronous (see test server code)
164
165 - lws_frame_is_binary() from a wsi pointer, let you know if the received
166 data was sent in BINARY mode
167
168
169user api removals
170-----------------
171
172 - libwebsockets_fork_service_loop() - no longer supported (had intractable problems)
173 arrange your code to act from the user callback instead from same
174 process context as the service loop
175
176 - libwebsockets_broadcast() - use libwebsocket_callback_on_writable[_all_protocol]()
177 instead from same process context as the service loop. See the test apps
178 for examples.
179
180 - x-google-mux() removed until someone wants it
181
182 - pre -v13 (ancient) protocol support removed
183
184
185New features
186------------
187
188 - echo test server and client compatible with echo.websocket.org added
189
190 - many new configure options (see README.build) to reduce footprint of the
191 library to what you actually need, eg, --without-client and
192 --without-server
193
194 - http + websocket server can build to as little as 12K .text for ARM
195
196 - no more MAX_CLIENTS limitation; adapts to support the max number of fds
197 allowed to the process by ulimit, defaults to 1024 on Fedora and
198 Ubuntu. Use ulimit to control this without needing to configure
199 the library. Code here is smaller and faster.
200
201 - adaptive ratio of listen socket to connection socket service allows
202 good behaviour under Apache ab test load. Tested with thousands
203 of simultaneous connections
204
205 - reduction in per-connection memory footprint by moving to a union to hold
206 mutually-exclusive state for the connection
207
208 - robustness: Out of Memory taken care of for all allocation code now
209
210 - internal getifaddrs option if your toolchain lacks it (some uclibc)
211
212 - configurable memory limit for deflate operations
213
214 - improvements in SSL code nonblocking operation, possible hang solved,
215 some SSL operations broken down into pollable states so there is
216 no library blocking, timeout coverage for SSL_connect
217
218 - extpoll test server merged into single test server source
219
220 - robustness: library should deal with all recoverable socket conditions
221
222 - rx flowcontrol for backpressure notification fixed and implmeneted
223 correctly in the test server
224
225 - optimal lexical parser added for header processing; all headers in a
226 single 276-byte state table
227
228 - latency tracking api added (configure --with-latency)
229
230 - Improved in-tree documentation, REAME.build, README.coding,
231 README.test-apps, changelog
232
233 - Many small fixes
234
235
236v1.0-chrome25-firefox17 (6cd1ea9b005933f)