v2.2.0
This commit is contained in:
parent
2f3b4c8f96
commit
6be573f2c9
7 changed files with 100 additions and 8 deletions
|
@ -9,12 +9,12 @@ project(libwebsockets C)
|
|||
set(PACKAGE "libwebsockets")
|
||||
set(CPACK_PACKAGE_NAME "${PACKAGE}")
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR "2")
|
||||
set(CPACK_PACKAGE_VERSION_MINOR "1")
|
||||
set(CPACK_PACKAGE_VERSION_MINOR "2")
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "0")
|
||||
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
||||
set(CPACK_PACKAGE_VENDOR "andy@warmcat.com")
|
||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PACKAGE} ${PACKAGE_VERSION}")
|
||||
set(SOVERSION "9")
|
||||
set(SOVERSION "10")
|
||||
if(NOT CPACK_GENERATOR)
|
||||
if(UNIX)
|
||||
set(CPACK_GENERATOR "TGZ")
|
||||
|
|
|
@ -303,6 +303,26 @@ this to work.
|
|||
|
||||
**NOTE**: On windows use the .lib file extension for `LWS_CYASSL_LIBRARIES` instead.
|
||||
|
||||
@section esp32 Building for ESP32
|
||||
|
||||
Step 1, get ESP-IDF with lws integrated as a component
|
||||
|
||||
```
|
||||
$ git clone --int --recursive https://github.com/lws-team/lws-esp-idf
|
||||
```
|
||||
|
||||
Step 2: Get Application including the test plugins
|
||||
|
||||
```
|
||||
$ git clone https://github.com/lws-team/lws-esp32
|
||||
```
|
||||
|
||||
Set your IDF_PATH to point to the esp-idf you downloaded in 1)
|
||||
|
||||
There's docs for how to build the lws-esp32 test app and reproduce it in the README.md here
|
||||
|
||||
https://github.com/lws-team/lws-esp32/blob/master/README.md
|
||||
|
||||
|
||||
@section extplugins Building plugins outside of lws itself
|
||||
|
||||
|
|
|
@ -376,7 +376,7 @@ Content-Type: header.
|
|||
7) A mount can be protected by HTTP Basic Auth. This only makes sense when using
|
||||
https, since otherwise the password can be sniffed.
|
||||
|
||||
You can add a `basic-auth` entry on a mount like this`
|
||||
You can add a `basic-auth` entry on a mount like this
|
||||
|
||||
```
|
||||
{
|
||||
|
|
|
@ -7,8 +7,8 @@ libwebsockets
|
|||
|
||||
| News |
|
||||
------
|
||||
| ESP8266 is now supported in lws! See https://github.com/warmcat/libwebsockets/blob/master/README.esp8266.md |
|
||||
|
||||
| ESP32 is now supported in lws! https://libwebsockets.org/lws-api-doc-master/html/md_README_8build.html |
|
||||
| v2.2 is out... see the changelog https://github.com/warmcat/libwebsockets/blob/v2.2-stable/changelog |
|
||||
|
||||
This is the libwebsockets C library for lightweight websocket clients and
|
||||
servers. For support, visit
|
||||
|
|
69
changelog
69
changelog
|
@ -1,6 +1,75 @@
|
|||
Changelog
|
||||
---------
|
||||
|
||||
v2.2.0
|
||||
======
|
||||
|
||||
Major new features
|
||||
|
||||
- A mount can be protected by Basic Auth... in lwsws it looks like this
|
||||
|
||||
```
|
||||
{
|
||||
"mountpoint": "/basic-auth",
|
||||
"origin": "file://_lws_ddir_/libwebsockets-test-server/private",
|
||||
"basic-auth": "/var/www/balogins-private"
|
||||
}
|
||||
```
|
||||
|
||||
The text file named in `basic-auth` contains user:password information
|
||||
one per line.
|
||||
|
||||
See README.lwsws.md for more information.
|
||||
|
||||
- RFC7233 RANGES support in lws server... both single and multipart.
|
||||
This allows seeking for multimedia file serving and download resume.
|
||||
It's enabled by default but can be disabled by CMake option.
|
||||
|
||||
- On Linux, lwsws can reload configuration without dropping ongoing
|
||||
connections, when sent a SIGHUP. The old configuration drops its
|
||||
listen sockets so the new configuration can listen on them.
|
||||
New connections connect to the server instance with the new
|
||||
configuration. When all old connections eventually close, the old
|
||||
instance automatically exits. This is equivalent to
|
||||
`systemctl reload apache`
|
||||
|
||||
- New `adopt` api allow adoption including SSL negotiation and
|
||||
for raw sockets and file descriptors.
|
||||
|
||||
- Chunked transfer encoding supported for client and server
|
||||
|
||||
- Adaptations to allow operations inside OPTEE Secure World
|
||||
|
||||
- ESP32 initial port - able to do all test server functions. See
|
||||
README.build.md
|
||||
|
||||
- Serving gzipped files from inside a ZIP file is supported... this
|
||||
includes directly serving the gzipped content if the client
|
||||
indicated it could accept it (ie, almost all browsers) saving
|
||||
bandwidth and time. For clients that can't accept it, lws
|
||||
automatically decompresses and serves the content in memory-
|
||||
efficient chunks. Only a few hundred bytes of heap are needed
|
||||
to serve any size file from inside the zip. See README.coding.md
|
||||
|
||||
- RAW file descriptors may now be adopted into the lws event loop,
|
||||
independent of event backend (including poll service).
|
||||
See README.coding.md
|
||||
|
||||
- RAW server socket descriptors may now be enabled on the vhost if
|
||||
the first thing sent on the connection is not a valid http method.
|
||||
The user code can associate these with a specific protocol per
|
||||
vhost, and RAW-specific callbacks appear there for creation, rx,
|
||||
writable and close. See libwebsockets-test-server-v2.0 for an example.
|
||||
See README.coding.md
|
||||
|
||||
- RAW client connections are now possible using the method "RAW".
|
||||
After connection, the socket is associated to the protocol
|
||||
named in the client connection info and RAW-specific callbacks
|
||||
appear there for creation, rx, writable and close.
|
||||
See libwebsockets-test-client (with raw://) for an example.
|
||||
See README.coding.md
|
||||
|
||||
|
||||
v2.1.0
|
||||
======
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Name: libwebsockets
|
||||
Version: 2.1.0
|
||||
Version: 2.2.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Websocket Server and Client Library
|
||||
|
||||
|
@ -55,7 +55,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
/usr/bin/libwebsockets-test-echo
|
||||
/usr/bin/libwebsockets-test-fraggle
|
||||
/usr/bin/libwebsockets-test-fuzxy
|
||||
/%{_libdir}/libwebsockets.so.8
|
||||
/%{_libdir}/libwebsockets.so.10
|
||||
/%{_libdir}/libwebsockets.so
|
||||
/%{_libdir}/cmake/libwebsockets/LibwebsocketsConfig.cmake
|
||||
/%{_libdir}/cmake/libwebsockets/LibwebsocketsConfigVersion.cmake
|
||||
|
@ -70,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||
/%{_libdir}/pkgconfig/libwebsockets.pc
|
||||
|
||||
%changelog
|
||||
* Mon Mar 06 2017 Andy Green <andy@warmcat.com> 2.2.0-1
|
||||
- MAJOR SONAMEBUMP APICHANGES Upstream 2.2.0 release
|
||||
|
||||
* Thu Oct 06 2016 Andy Green <andy@warmcat.com> 2.1.0-1
|
||||
- MAJOR SONAMEBUMP APICHANGES Upstream 2.1.0 release
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ Release Checklist
|
|||
Force update by browser using agent "libwebsockets"
|
||||
http://localhost:8080/test_browser.html
|
||||
|
||||
scp -rp ./reports to libwebsockets.org
|
||||
rsync -av ./reports/* root@warmcat.com:/var/www/libwebsockets.org
|
||||
|
||||
1) api
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue