diff options
author | Andy Green <andy@warmcat.com> | 2017-10-13 10:33:02 +0800 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2017-10-16 17:13:49 +0800 |
commit | 904a9c09205f0241dc7837225326d09009acf1b5 (patch) | |
tree | b8e0960783d479206292386095376a18552c8050 /component.mk | |
parent | 028551271ecaed3cddabe3c3e4f5af23ec1a2014 (diff) | |
download | libwebsockets-904a9c09205f0241dc7837225326d09009acf1b5.tar.gz |
http2: make usable
HTTP/2 support is now able to serve the test server, complete with
websockets, from a single vhost.
- This works the same with both OpenSSL and mbedTLS.
- POST is now wired up and works (also for file upload).
- CGI is wired up and works.
- Redirect is adapted and works
- lwsws works.
- URI urldecode, sanitation and argument parsing wired up for :path
valgrind clean (aside from openssl-style false uninit data usage in mbedtls send occasionally)
h2spec reports:
$ h2spec -h 127.0.0.1 -p 7681 -t -k -o 1
...
145 tests, 145 passed, 0 skipped, 0 failed"
Incorporates:
- "https://github.com/warmcat/libwebsockets/pull/1039
Fixes issue with -Werror=unused-variable flag
- https://github.com/sartura/libwebsockets/commit/2c843a1395bdca5c23b40d989f508fc96aa5ba3b
ssl: fix infinite loop on client cert verification failure
Signed-off-by: Petar Paradzik <petar.paradzik@sartura.hr>"
Caused and fixes Coverity 184887 - 184892
Diffstat (limited to 'component.mk')
-rw-r--r-- | component.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/component.mk b/component.mk index 236395a4..8baf3d6d 100644 --- a/component.mk +++ b/component.mk @@ -19,7 +19,7 @@ CROSS_PATH:= $(shell dirname $(CROSS_PATH1) )/.. build: cd $(COMPONENT_BUILD_DIR) ; \ echo "doing lws cmake" ; \ - cmake $(COMPONENT_PATH) -DLWS_C_FLAGS="$(CFLAGS) -DNDEBUG=1 " \ + cmake $(COMPONENT_PATH) -DLWS_C_FLAGS="$(CFLAGS) " \ -DIDF_PATH=$(IDF_PATH) \ -DCROSS_PATH=$(CROSS_PATH) \ -DBUILD_DIR_BASE=$(BUILD_DIR_BASE) \ @@ -27,6 +27,7 @@ build: -DCMAKE_BUILD_TYPE=RELEASE \ -DLWS_MBEDTLS_INCLUDE_DIRS="${IDF_PATH}/components/openssl/include;${IDF_PATH}/components/mbedtls/include;${IDF_PATH}/components/mbedtls/port/include" \ -DLWS_WITH_STATS=0 \ + -DLWS_WITH_HTTP2=1 \ -DZLIB_LIBRARY=$(BUILD_DIR_BASE)/zlib/libzlib.a \ -DZLIB_INCLUDE_DIR=$(COMPONENT_PATH)/../zlib \ -DLWS_WITH_ESP32=1 ;\ |