blob: cc4fee4186b5aa4c7db30ce8af2f1a76230b2b62 [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
18 established. Not just the header data is saved, but the pointer and length
19 array is also removed from (union) scope saving several hundred bytes per
20 connection once it is established
21
22
Andy Greendf60b0c2013-02-06 19:57:12 +090023New features
24------------
25
26Cmake project file added, aimed initially at Windows support: this replaces
27the visual studio project files that were in the tree until now.
28
29
Andy Green7b405452013-02-01 10:50:15 +080030
Andy Greenbd1132f2013-01-31 19:53:05 +080031v1.1-chrome26-firefox18
Andy Greena35c86f2013-01-31 10:16:44 +080032=======================
33
34Diffstat
35--------
36
37 Makefile.am | 4 +
38 README-test-server | 291 ---
39 README.build | 239 ++
40 README.coding | 138 ++
41 README.rst | 72 -
42 README.test-apps | 272 +++
43 configure.ac | 116 +-
44 lib/Makefile.am | 55 +-
45 lib/base64-decode.c | 5 +-
46 lib/client-handshake.c | 121 +-
47 lib/client-parser.c | 394 ++++
48 lib/client.c | 807 +++++++
49 lib/daemonize.c | 212 ++
50 lib/extension-deflate-frame.c | 132 +-
51 lib/extension-deflate-stream.c | 12 +-
52 lib/extension-x-google-mux.c | 1223 ----------
53 lib/extension-x-google-mux.h | 96 -
54 lib/extension.c | 8 -
55 lib/getifaddrs.c | 271 +++
56 lib/getifaddrs.h | 76 +
57 lib/handshake.c | 582 +----
58 lib/libwebsockets.c | 2493 ++++++---------------
59 lib/libwebsockets.h | 115 +-
60 lib/md5.c | 217 --
61 lib/minilex.c | 440 ++++
62 lib/output.c | 628 ++++++
63 lib/parsers.c | 2016 +++++------------
64 lib/private-libwebsockets.h | 284 +--
65 lib/server-handshake.c | 275 +++
66 lib/server.c | 377 ++++
67 libwebsockets-api-doc.html | 300 +--
68 m4/ignore-me | 2 +
69 test-server/Makefile.am | 111 +-
70 test-server/libwebsockets.org-logo.png | Bin 0 -> 7029 bytes
71 test-server/test-client.c | 45 +-
72 test-server/test-echo.c | 330 +++
73 test-server/test-fraggle.c | 20 +-
74 test-server/test-ping.c | 22 +-
75 test-server/test-server-extpoll.c | 554 -----
76 test-server/test-server.c | 349 ++-
77 test-server/test.html | 3 +-
78 win32port/zlib/ZLib.vcxproj | 749 ++++---
79 win32port/zlib/ZLib.vcxproj.filters | 188 +-
80 win32port/zlib/adler32.c | 348 ++-
81 win32port/zlib/compress.c | 160 +-
82 win32port/zlib/crc32.c | 867 ++++----
83 win32port/zlib/crc32.h | 882 ++++----
84 win32port/zlib/deflate.c | 3799 +++++++++++++++-----------------
85 win32port/zlib/deflate.h | 688 +++---
86 win32port/zlib/gzclose.c | 50 +-
87 win32port/zlib/gzguts.h | 325 ++-
88 win32port/zlib/gzlib.c | 1157 +++++-----
89 win32port/zlib/gzread.c | 1242 ++++++-----
90 win32port/zlib/gzwrite.c | 1096 +++++----
91 win32port/zlib/infback.c | 1272 ++++++-----
92 win32port/zlib/inffast.c | 680 +++---
93 win32port/zlib/inffast.h | 22 +-
94 win32port/zlib/inffixed.h | 188 +-
95 win32port/zlib/inflate.c | 2976 +++++++++++++------------
96 win32port/zlib/inflate.h | 244 +-
97 win32port/zlib/inftrees.c | 636 +++---
98 win32port/zlib/inftrees.h | 124 +-
99 win32port/zlib/trees.c | 2468 +++++++++++----------
100 win32port/zlib/trees.h | 256 +--
101 win32port/zlib/uncompr.c | 118 +-
102 win32port/zlib/zconf.h | 934 ++++----
103 win32port/zlib/zlib.h | 3357 ++++++++++++++--------------
104 win32port/zlib/zutil.c | 642 +++---
105 win32port/zlib/zutil.h | 526 ++---
106 69 files changed, 19556 insertions(+), 20145 deletions(-)
107
108user api changes
109----------------
110
111 - libwebsockets_serve_http_file() now takes a context as first argument
112
113 - libwebsockets_get_peer_addresses() now takes a context and wsi as first
114 two arguments
115
116
117user api additions
118------------------
119
120 - lwsl_...() logging apis, default to stderr but retargetable by user code;
121 may be used also by user code
122
123 - lws_set_log_level() set which logging apis are able to emit (defaults to
124 notice, warn, err severities), optionally set the emit callback
125
126 - lwsl_emit_syslog() helper callback emits to syslog
127
128 - lws_daemonize() helper code that forks the app into a headless daemon
129 properly, maintains a lock file with pid in suitable for sysvinit etc to
130 control lifecycle
131
132 - LWS_CALLBACK_HTTP_FILE_COMPLETION callback added since http file
133 transfer is now asynchronous (see test server code)
134
135 - lws_frame_is_binary() from a wsi pointer, let you know if the received
136 data was sent in BINARY mode
137
138
139user api removals
140-----------------
141
142 - libwebsockets_fork_service_loop() - no longer supported (had intractable problems)
143 arrange your code to act from the user callback instead from same
144 process context as the service loop
145
146 - libwebsockets_broadcast() - use libwebsocket_callback_on_writable[_all_protocol]()
147 instead from same process context as the service loop. See the test apps
148 for examples.
149
150 - x-google-mux() removed until someone wants it
151
152 - pre -v13 (ancient) protocol support removed
153
154
155New features
156------------
157
158 - echo test server and client compatible with echo.websocket.org added
159
160 - many new configure options (see README.build) to reduce footprint of the
161 library to what you actually need, eg, --without-client and
162 --without-server
163
164 - http + websocket server can build to as little as 12K .text for ARM
165
166 - no more MAX_CLIENTS limitation; adapts to support the max number of fds
167 allowed to the process by ulimit, defaults to 1024 on Fedora and
168 Ubuntu. Use ulimit to control this without needing to configure
169 the library. Code here is smaller and faster.
170
171 - adaptive ratio of listen socket to connection socket service allows
172 good behaviour under Apache ab test load. Tested with thousands
173 of simultaneous connections
174
175 - reduction in per-connection memory footprint by moving to a union to hold
176 mutually-exclusive state for the connection
177
178 - robustness: Out of Memory taken care of for all allocation code now
179
180 - internal getifaddrs option if your toolchain lacks it (some uclibc)
181
182 - configurable memory limit for deflate operations
183
184 - improvements in SSL code nonblocking operation, possible hang solved,
185 some SSL operations broken down into pollable states so there is
186 no library blocking, timeout coverage for SSL_connect
187
188 - extpoll test server merged into single test server source
189
190 - robustness: library should deal with all recoverable socket conditions
191
192 - rx flowcontrol for backpressure notification fixed and implmeneted
193 correctly in the test server
194
195 - optimal lexical parser added for header processing; all headers in a
196 single 276-byte state table
197
198 - latency tracking api added (configure --with-latency)
199
200 - Improved in-tree documentation, REAME.build, README.coding,
201 README.test-apps, changelog
202
203 - Many small fixes
204
205
206v1.0-chrome25-firefox17 (6cd1ea9b005933f)