Andy Green [Sun, 30 Nov 2014 04:29:04 +0000 (12:29 +0800)]
coverity 83681 unused assignment
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:27:47 +0000 (12:27 +0800)]
coverity 83682 suspicous signed bytewise reassembly
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:25:36 +0000 (12:25 +0800)]
coverity 83683 shift greater than 31 technically undefined
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:21:40 +0000 (12:21 +0800)]
coverity 83670 daemonize can leak lock handle
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 04:14:23 +0000 (12:14 +0800)]
coverity 83684 let parent close if ssl service fails
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 03:52:40 +0000 (11:52 +0800)]
coverty travis fix env indentation
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 30 Nov 2014 03:24:01 +0000 (11:24 +0800)]
coverity travis add key
Signed-off-by: Andy Green <andy.green@linaro.org>
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Thu, 27 Nov 2014 22:49:42 +0000 (23:49 +0100)]
Subject: [PATCH] Add support for coverity static analysis scan.
http://www.coverity.com
Samuel Martin [Fri, 2 May 2014 12:24:58 +0000 (14:24 +0200)]
Subject: [PATCH] cmake: set the project language
By default, CMake sets C and C++ as languages used by the project.
This makes the configuration failed if no C++ compiler is found.
Since libwesockets in written in pure C, no C++, there is no reason to
disable it when the toolchain has no C++ support.
This patch just make the CMake code reflecting the real status of the
project with regard to the languages used.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Wed, 26 Nov 2014 22:55:25 +0000 (23:55 +0100)]
Subject: [PATCH] Add appveyor CI support for Windows.
Christoph Muellner [Wed, 26 Nov 2014 17:16:25 +0000 (18:16 +0100)]
Subject: [PATCH] Adding lws_config.h to list of installed headers.
The lws_config.h is generated based on configuration
options for the build process. In order to write
applications which compile code depending of the
presence of a feature (like the test-server does)
this header file needs to be installed.
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Andy Green [Wed, 26 Nov 2014 06:38:04 +0000 (14:38 +0800)]
remove duplicate const
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 26 Nov 2014 06:36:17 +0000 (14:36 +0800)]
test echo initialize listen port
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 26 Nov 2014 06:29:03 +0000 (14:29 +0800)]
move bind passphrase out of LWS_NO_SERVER
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 26 Nov 2014 04:04:29 +0000 (12:04 +0800)]
clean test server a bit
Signed-off-by: Andy Green <andy.green@linaro.org>
Joakim Soderberg [Tue, 25 Nov 2014 17:23:34 +0000 (01:23 +0800)]
Add libev dependecny
Joakim Soderberg [Tue, 25 Nov 2014 17:23:13 +0000 (01:23 +0800)]
Remove lcov depdency
Joakim Soderberg [Tue, 25 Nov 2014 17:22:50 +0000 (01:22 +0800)]
CLang gives an error on -O4
clang: error: -O4 is equivalent to -O3
Joakim Soderberg [Tue, 25 Nov 2014 15:33:47 +0000 (16:33 +0100)]
Added travis support
Roger A. Light [Tue, 3 Jun 2014 00:35:00 +0000 (01:35 +0100)]
Subject: [PATCH] SSL: Disable support for SSLv2 and SSLv3.
Joakim Soderberg [Mon, 24 Nov 2014 15:03:19 +0000 (16:03 +0100)]
Subject: [PATCH] Enable usage of ancient OpenSSL.
Yes people should be upgrading their OpenSSL, but there are still old versions without Heartbleed out there being used...
Joakim Soderberg [Tue, 14 Oct 2014 13:24:31 +0000 (15:24 +0200)]
Subject: [PATCH] BUGFIX: Failed to get proper output dir for test-server
When creating the directory where to put the files needed by the test-server CMake would fail because it tried to create the directory /../share/libwebsockets-test-server, which is not possible. This happens since the TARGET_FILE_DIR for the test-server is not fetched properly.
Also mentioned in this trac ticket:
http://libwebsockets.org/trac/libwebsockets/ticket/84
Andy Green [Thu, 20 Nov 2014 04:10:40 +0000 (12:10 +0800)]
ssl fix client and server passphrase handling
again from "linedot" at
https://github.com/warmcat/libwebsockets/issues/152#issuecomment-
63647996
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 18 Nov 2014 10:25:24 +0000 (18:25 +0800)]
android64 make bzero def conditional
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 18 Nov 2014 01:28:35 +0000 (09:28 +0800)]
test-echo: enable for ssl cert serving and verification
Andy Green [Tue, 18 Nov 2014 01:28:06 +0000 (09:28 +0800)]
ssl: improve client error message on server cert probs
Andy Green [Mon, 17 Nov 2014 23:53:20 +0000 (07:53 +0800)]
ssl also allow passphrase management for server
Adapted from idea + diff provided by "linedot"
https://github.com/warmcat/libwebsockets/issues/152#issuecomment-
63364869
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 13 Nov 2014 23:21:02 +0000 (07:21 +0800)]
return_http_staus fix http2 defeating body addition
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 9 Nov 2014 04:05:29 +0000 (12:05 +0800)]
readme tag key
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 8 Nov 2014 03:18:47 +0000 (11:18 +0800)]
lws_union_transition
Signed-off-by: Andy Green <andy.green@linaro.org>
Andrew Canaday [Fri, 7 Nov 2014 20:28:35 +0000 (15:28 -0500)]
Be sure to invoke *lws_free_header_table*:
* Just prior to freeing a session
* When allocating a new header table
This prevents some memory leaks we've found.
Andrew Canaday [Fri, 7 Nov 2014 03:21:09 +0000 (11:21 +0800)]
Don't free wsi->u.hdr.ah except through lws_free_header_table (exception: server.c frees 'ah' after copying the header pointer and transitioning the union state).
Andrew Canaday [Fri, 7 Nov 2014 03:20:59 +0000 (11:20 +0800)]
Adding header table free function to make sure we free cleanly everywhere.
Emerson Clarke [Thu, 6 Nov 2014 15:06:01 +0000 (23:06 +0800)]
plat win add ibterface to sa
Andy Green [Wed, 5 Nov 2014 07:35:05 +0000 (15:35 +0800)]
ssl CYASSL doesnt have new api
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 5 Nov 2014 07:32:58 +0000 (15:32 +0800)]
clean http2 passphrase code
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 29 Oct 2014 01:39:08 +0000 (09:39 +0800)]
http2 window update
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 1 Nov 2014 00:41:02 +0000 (08:41 +0800)]
clean remove debug spew outside http2
Found by Drew Noakes at
https://github.com/warmcat/libwebsockets/issues/190
Signed-off-by: Andy Green <andy.green@linaro.org>
kulwik [Thu, 30 Oct 2014 18:26:14 +0000 (18:26 +0000)]
Subject: [PATCH] ssl fix self-singed certificate acceptation
Rene Jager [Tue, 28 Oct 2014 22:27:20 +0000 (23:27 +0100)]
Subject: [PATCH] fixes for handling multiple protocols in handshake
Andy Green [Mon, 27 Oct 2014 08:46:44 +0000 (16:46 +0800)]
http2 padding and ping to autopong
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 27 Oct 2014 03:38:03 +0000 (11:38 +0800)]
openssl update deprecated remove_state api
As suggested by svetlin-mladenov here
https://github.com/warmcat/libwebsockets/issues/186
Signed-off-by: Andy Green <andy.green@linaro.org>
Drew Noakes [Thu, 23 Oct 2014 14:34:26 +0000 (15:34 +0100)]
Subject: [PATCH] Fix minor typos in code documentation
Andy Green [Wed, 22 Oct 2014 07:37:28 +0000 (15:37 +0800)]
http2 alpn npn pollout
This adds npn / alpn support if your openssl can handle it.
Then, browsers that understand alpn will by default
negotiate http/1.1 and work as normal.
Clients that understand http2.0 can negotiate h2-14 and
use the basic but working http2.0 support automatically
Signed-off-by: Andy Green <andy.green@linaro.org>
Marek Kochanowicz [Mon, 13 Oct 2014 05:32:32 +0000 (07:32 +0200)]
Subject: [PATCH] Initialize openssl during client initialization.
Andy Green [Sat, 18 Oct 2014 23:36:20 +0000 (07:36 +0800)]
http2 dont use incoming END_STREAM when sending headers
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 18 Oct 2014 10:52:39 +0000 (18:52 +0800)]
add newline on libwebsockets.c for ancient compilers
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 18 Oct 2014 10:54:04 +0000 (18:54 +0800)]
http2 working nghttp fetch multi files completely
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 18 Oct 2014 04:23:05 +0000 (12:23 +0800)]
http2 track content length add END_STREAM
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Fri, 17 Oct 2014 00:38:44 +0000 (08:38 +0800)]
http2 handle flags
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Fri, 17 Oct 2014 00:47:51 +0000 (08:47 +0800)]
ssl clean recent external CTX patch so doesnt break build
Signed-off-by: Andy Green <andy.green@linaro.org>
joseph.urciuoli [Thu, 16 Oct 2014 00:53:19 +0000 (08:53 +0800)]
ssl allow externally managed SSL_CTX
Signed-off-by: joseph.urciuoli <trac90@UNKNOWN.org>
Andy Green [Thu, 16 Oct 2014 00:23:46 +0000 (08:23 +0800)]
trac 89 add flag on fatal send fail to use simple close
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 12 Oct 2014 06:31:47 +0000 (14:31 +0800)]
http2 able to send test.html to nghttp2
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 12 Oct 2014 00:38:16 +0000 (08:38 +0800)]
http2 hpack basic decode ok including huff
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 9 Oct 2014 08:57:47 +0000 (16:57 +0800)]
http2 add hpack decode support
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 9 Oct 2014 22:13:40 +0000 (06:13 +0800)]
fix return_http_status adaptation for http2
Signed-off-by: Andy Green <andy.green@linaro.org>
Christian Schüldt [Thu, 9 Oct 2014 08:58:24 +0000 (16:58 +0800)]
ssl renew timeout while post keeps coming
Signed-off-by: Christian Schüldt <crilla@kth.se>
Christian Schüldt [Thu, 9 Oct 2014 00:37:12 +0000 (08:37 +0800)]
ssl fix service problem in MORE_SERVICE case
Signed-off-by: Christian Schüldt <crilla@kth.se>
Andy Green [Thu, 9 Oct 2014 00:29:22 +0000 (08:29 +0800)]
ssl optimize poll when buffered ssl read data
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 9 Oct 2014 00:14:30 +0000 (08:14 +0800)]
ssl_capable_read add context param
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 8 Oct 2014 03:29:49 +0000 (11:29 +0800)]
ssl fix pending reads stuck in ssl layer
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 8 Oct 2014 04:15:15 +0000 (12:15 +0800)]
http2 fix build when http2 disabled
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 6 Oct 2014 08:47:20 +0000 (16:47 +0800)]
http2 headers huffman decoder
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 8 Oct 2014 04:00:53 +0000 (12:00 +0800)]
http2 can keep upgraded connection up
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 30 Sep 2014 08:35:16 +0000 (16:35 +0800)]
base64 add back decoder now we need it.patc
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 30 Sep 2014 08:33:56 +0000 (16:33 +0800)]
parser default to name parsing if unknown
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 30 Sep 2014 01:43:14 +0000 (09:43 +0800)]
http2 add h2c upgrade and http2 connmode
Connection upgrade handling for h2c
Establish http2 union struct and http2 connmode
No protocol code yet
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 23 Feb 2014 06:38:59 +0000 (14:38 +0800)]
add http2 settings token
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 30 Sep 2014 00:23:06 +0000 (08:23 +0800)]
test server correct header naming order
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 30 Sep 2014 00:15:49 +0000 (08:15 +0800)]
confirm upgrade actually for websocket
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 25 Sep 2014 21:56:23 +0000 (05:56 +0800)]
internal SHA1 users all use libwebsockets_SHA1
Signed-off-by: Andy Green <andy.green@linaro.org>
Dnyanesh Gate [Thu, 25 Sep 2014 21:39:05 +0000 (05:39 +0800)]
android fix syslog path
Duncan Tebbs [Thu, 25 Sep 2014 01:39:13 +0000 (10:39 +0900)]
Pass user_sapce to callback for LWS_CALLBACK_CLIENT_CONNECTION_ERROR
Hiroaki Sakon [Mon, 22 Sep 2014 13:39:59 +0000 (22:39 +0900)]
fix required CMake version
AG also updated the machine-readable min cmake version
emironov [Tue, 16 Sep 2014 10:05:13 +0000 (14:05 +0400)]
fix byte order for qnx
Stefan Schuermans [Mon, 8 Sep 2014 06:01:58 +0000 (14:01 +0800)]
also callback closed if flushing
Andy Green [Wed, 27 Aug 2014 08:31:20 +0000 (16:31 +0800)]
fix build for NO_SERVER
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 24 Aug 2014 06:39:19 +0000 (14:39 +0800)]
defer PONG send until no partial send buffer
Reported-by: Andrew Canaday
Signed-off-by: Andy Green <andy.green@linaro.org>
Andrew Canaday [Sun, 24 Aug 2014 01:45:12 +0000 (21:45 -0400)]
server.c: test **truncated_send_len** for partial
Testing against truncated_send_malloc won't work if we've already
buffered and completed a partial buffer, as truncated_send_malloc
isn't free'd until the socket is destroyed.
Andy Green [Fri, 22 Aug 2014 11:38:17 +0000 (19:38 +0800)]
accept fail char means we are done
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 19 Aug 2014 11:21:32 +0000 (19:21 +0800)]
fix bad cmake args example in README.build
As told here
https://github.com/warmcat/libwebsockets/issues/166
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 19 Aug 2014 10:34:31 +0000 (18:34 +0800)]
cleanup style in parser
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 19 Aug 2014 00:41:26 +0000 (08:41 +0800)]
fix build without ssl support
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 18 Aug 2014 15:21:28 +0000 (23:21 +0800)]
soname 5.0.0
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 18 Aug 2014 14:49:39 +0000 (22:49 +0800)]
introduce lws_partial_buffered
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 18 Aug 2014 14:21:51 +0000 (22:21 +0800)]
deprecate no_buffer_all_partials
Signed-off-by: Andy Green <andy.green@linaro.org>
Carl Stehle [Sat, 16 Aug 2014 02:17:59 +0000 (10:17 +0800)]
http keepalive needs to reinit some header union state
AG moved the code to the keepalive loop location
Andy Green [Sat, 16 Aug 2014 01:54:27 +0000 (09:54 +0800)]
add lws_is_ssl api
Suggested by Michael Harbler on the mailing list
Signed-off-by: Andy Green <andy.green@linaro.org>
Karl Palsson [Thu, 14 Aug 2014 16:30:48 +0000 (16:30 +0000)]
cyassl: correct include path for 3.1.x
Michael Haberler [Mon, 11 Aug 2014 12:36:57 +0000 (14:36 +0200)]
api: add feature test macro LWS_FEATURE_PROTOCOLS_HAS_ID_FIELD
Andy Green [Mon, 11 Aug 2014 04:11:36 +0000 (12:11 +0800)]
protocol struct add user controlled id member
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 11 Aug 2014 01:11:57 +0000 (09:11 +0800)]
fix spinning on NULL protocol name
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 10 Aug 2014 01:50:42 +0000 (09:50 +0800)]
ssl fix excessive crash workaround
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Thu, 7 Aug 2014 08:52:15 +0000 (16:52 +0800)]
no protocol usage inprove docs
Signed-off-by: Andy Green <andy.green@linaro.org>
Andrew Canaday [Wed, 6 Aug 2014 12:58:23 +0000 (08:58 -0400)]
Reset hdr_parsing_completed for WSI_STATE_HTTP:
This fixes a bug where a client issues two GET requests on the same connection
(keep-alive). If the second request is split into two reads, the
hdr_parsing_complete flag gets us into trouble by ending the request read two
early and giving us bogus data.
Andy Green [Thu, 31 Jul 2014 01:44:00 +0000 (09:44 +0800)]
trac82 consistently use CONTEXT_PORT_NO_LISTEN
Signed-off-by: Andy Green <andy.green@linaro.org>
Oleh [Tue, 29 Jul 2014 15:18:41 +0000 (23:18 +0800)]
ssl allow passing cert passphrase
https://github.com/warmcat/libwebsockets/issues/152
Andy Green [Tue, 29 Jul 2014 15:02:07 +0000 (23:02 +0800)]
avoid crash if we dont have new wsi
Signed-off-by: Andy Green <andy.green@linaro.org>
Aurelian Pop [Tue, 29 Jul 2014 12:36:06 +0000 (15:36 +0300)]
Fix TCP keepalive use in UNIX systems