platform/upstream/libwebsockets.git
6 years agouse license macro in the spec file 17/129717/1 tizen_210817 tizen_4.0_121017 accepted/tizen/4.0/unified/20170816.011814 accepted/tizen/4.0/unified/20170828.222857 accepted/tizen/unified/20170531.082329 submit/tizen/20170522.051826 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_4.0/20170912.084710
Youngjae Shin [Thu, 18 May 2017 01:13:46 +0000 (10:13 +0900)]
use license macro in the spec file

Change-Id: I29eb21b7e528d92751ead52962f172cb1d757d1d

7 years agows-server: restrict returned Sec-Websocket-Protocol to the chosen name only 28/105328/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170105.024727 accepted/tizen/3.0.m2/tv/20170105.024907 accepted/tizen/3.0.m2/wearable/20170105.025032 accepted/tizen/3.0/common/20161220.101248 accepted/tizen/3.0/ivi/20161220.010528 accepted/tizen/3.0/mobile/20161220.010434 accepted/tizen/3.0/tv/20161220.010450 accepted/tizen/3.0/wearable/20161220.010508 accepted/tizen/common/20161219.152124 accepted/tizen/ivi/20161219.225127 accepted/tizen/mobile/20161219.225030 accepted/tizen/tv/20161219.225048 accepted/tizen/unified/20170309.040104 accepted/tizen/wearable/20161219.225107 submit/tizen/20161219.052346 submit/tizen_3.0.m2/20170104.093753 submit/tizen_3.0/20161219.052217 submit/tizen_3.0/20161219.052244 submit/tizen_unified/20170308.100414 tizen_4.0.m1_release
Andy Green [Sat, 10 Dec 2016 01:14:37 +0000 (09:14 +0800)]
ws-server: restrict returned Sec-Websocket-Protocol to the chosen name only

https://libwebsockets.org/pipermail/libwebsockets/2016-November/002948.html

Updated to fix a problem with no protocol

https://github.com/warmcat/libwebsockets/issues/705

Change-Id: I06e9f9d5849e66291b246316008c6e2c5981a372

7 years agoRemove win32port 27/105327/1
Dmitry Kovalenko [Fri, 16 Dec 2016 08:01:43 +0000 (11:01 +0300)]
Remove win32port

Change-Id: Iafa286c46019f90eaef2b3260d6f571bdbc8ee1c

7 years agoAdd packaging code and LICENSE 26/105326/1
Dmitry Kovalenko [Fri, 4 Mar 2016 07:33:07 +0000 (10:33 +0300)]
Add packaging code and LICENSE

Change-Id: If938a6255de53076acc584d88b16e7706ed49454
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoclient: avoid possible NULL deref on error path upstream_210817 upstream/1.7.9
Andy Green [Mon, 12 Dec 2016 12:41:05 +0000 (20:41 +0800)]
client: avoid possible NULL deref on error path

https://github.com/warmcat/libwebsockets/issues/672

7 years agows-server: restrict returned Sec-Websocket-Protocol to the chosen name only
Andy Green [Tue, 29 Nov 2016 12:42:29 +0000 (20:42 +0800)]
ws-server: restrict returned Sec-Websocket-Protocol to the chosen name only

https://libwebsockets.org/pipermail/libwebsockets/2016-November/002948.html

7 years agoclient: protect againt losing ah by lws_client_connect_2
Andy Green [Tue, 15 Nov 2016 09:01:19 +0000 (17:01 +0800)]
client: protect againt losing ah by lws_client_connect_2

7 years agoRemove the cleanup functions with OpenSSL 1.1.
Peter Pentchev [Wed, 2 Nov 2016 21:23:53 +0000 (05:23 +0800)]
Remove the cleanup functions with OpenSSL 1.1.

7 years agotravis: explicitly point to openssl on osx
Andy Green [Sat, 8 Oct 2016 12:15:13 +0000 (20:15 +0800)]
travis: explicitly point to openssl on osx

One day this started failing at CMake autofind. This forces it to look at the right place.

7 years agodocs: explain lws_write handling of truncated sends better
Andy Green [Sat, 8 Oct 2016 10:12:49 +0000 (18:12 +0800)]
docs: explain lws_write handling of truncated sends better

7 years agowindows: fix snprintf vs _snprintf
Andy Green [Mon, 26 Sep 2016 22:55:58 +0000 (06:55 +0800)]
windows: fix snprintf vs _snprintf

7 years agoappveyor: get nsis from libwebsockets.org
Andy Green [Mon, 26 Sep 2016 22:47:33 +0000 (06:47 +0800)]
appveyor: get nsis from libwebsockets.org

7 years agoappveyor: get windows openssl from libwebsockets.org
Andy Green [Mon, 26 Sep 2016 22:44:20 +0000 (06:44 +0800)]
appveyor: get windows openssl from libwebsockets.org

7 years agotravis: update to trusty for CMake version
Andy Green [Mon, 26 Sep 2016 22:42:10 +0000 (06:42 +0800)]
travis: update to trusty for CMake version

7 years agoAdded option to build the static library with PIC
Brown, Matthew [Mon, 26 Sep 2016 20:47:53 +0000 (16:47 -0400)]
Added option to build the static library with PIC

7 years agoCMakeLists: move config file generation to after LWS_HAVE_OPENSSL_ECDH_H
Fabrice GILOT [Fri, 16 Sep 2016 01:03:22 +0000 (09:03 +0800)]
CMakeLists: move config file generation to after LWS_HAVE_OPENSSL_ECDH_H

This is already fixed in v2.0 and master

7 years agov1.7.9
Andy Green [Wed, 14 Sep 2016 18:43:37 +0000 (02:43 +0800)]
v1.7.9

SONAME to 7.1 because of lws_snprintf()

7 years agolws_snprintf
Andy Green [Wed, 14 Sep 2016 18:36:22 +0000 (02:36 +0800)]
lws_snprintf

Thanks to Fabrice Gilot for reporting the problem that led to uncovering this.

Due to a misunderstanding of the return value of snprintf (it is not truncated according
to the max size passed in) in places relying on snprintf to truncate the length
overflows are possible.

This patch wraps snprintf with a new lws_snprintf() which does truncate its length to allow
the buffer limiting scheme to work properly.

All users should update with these fixes.

In 1.7.x, there's no affected code in the library itself, just a couple on instances in the
test app code.

7 years agofix for https connection code
Gadkari Mugdha [Mon, 13 Jun 2016 06:43:03 +0000 (08:43 +0200)]
fix for https connection code

7 years agoclient CONNECTION_ERROR also allow in LWSS_CLIENT_UNCONNECTED
Andy Green [Tue, 7 Jun 2016 12:12:10 +0000 (20:12 +0800)]
client CONNECTION_ERROR also allow in LWSS_CLIENT_UNCONNECTED

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agoFix leak caused by undestroyed pthread mutex
Sterling Jensen [Fri, 13 May 2016 01:22:35 +0000 (20:22 -0500)]
Fix leak caused by undestroyed pthread mutex

7 years agov1.7.8
Andy Green [Thu, 12 May 2016 14:15:15 +0000 (22:15 +0800)]
v1.7.8

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agocheck oom on lws_malloc
Andy Green [Thu, 12 May 2016 13:54:29 +0000 (21:54 +0800)]
check oom on lws_malloc

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agoappveyor openssl 1.0.2h
Andy Green [Sat, 7 May 2016 01:39:15 +0000 (09:39 +0800)]
appveyor openssl 1.0.2h

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agofix %3d handling in path part and add attack.sh
Andy Green [Sat, 7 May 2016 00:33:07 +0000 (08:33 +0800)]
fix %3d handling in path part and add attack.sh

https://github.com/warmcat/libwebsockets/issues/518

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agorecv revert treating zero as hangup
Andy Green [Thu, 5 May 2016 01:23:05 +0000 (09:23 +0800)]
recv revert treating zero as hangup

While checking with ab, I found
commit 30cdb3ac8f24a4c289a3b4e8a41d6c5f2e6ec959
Author: Justin Chen <justinchen00@github.invalid.com>
Date:   Thu Apr 14 21:40:53 2016 +0800

    recv treat zero return as error

    https://github.com/warmcat/libwebsockets/issues/475

turned ab performance to crap, reverting it made everything fast again.

recv manpage says there is three ways to get zero returned

1)       When a stream socket peer has performed an orderly shutdown, the return value will be 0  (the  traditional  "end-of-file"
       return).

2)       Datagram  sockets  in  various  domains  (e.g., the UNIX and Internet domains) permit zero-length datagrams.  When such a
       datagram is received, the return value is 0.

3)       The value 0 may also be returned if the requested number of bytes to receive from a stream socket was 0.

we can't just assume it means the peer shut down.

If the peer shut down, then the event loop should get an event on the socket like POLLHUP and deal with it that way.

So the patch mentioned above is simply reverted here.

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agoclient provide user_space on LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER
Andy Green [Tue, 3 May 2016 13:41:24 +0000 (21:41 +0800)]
client provide user_space on LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER

https://github.com/warmcat/libwebsockets/issues/509

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agov1.7.7
Andy Green [Tue, 3 May 2016 06:29:07 +0000 (14:29 +0800)]
v1.7.7

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agoclient fix reaction to tls failure
Andy Green [Tue, 3 May 2016 00:08:32 +0000 (08:08 +0800)]
client fix reaction to tls failure

https://github.com/warmcat/libwebsockets/issues/508

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agoAdd warn_unused_result check, attribute only supported by GCC 3.4 or later
Patrick Farrell [Tue, 5 Apr 2016 20:59:07 +0000 (16:59 -0400)]
Add warn_unused_result check, attribute only supported by GCC 3.4 or later

warn_unused_result was introduced in GCC version 3.4.

Change-Id: I6c2cc938d2b868ddfe0889cc41d7fa9d70e1b907

7 years agoAndroid needs sys/resource.h
Alexander Bruines [Sat, 23 Apr 2016 09:10:18 +0000 (11:10 +0200)]
Android needs sys/resource.h

7 years agov1.7.6
Andy Green [Sat, 23 Apr 2016 02:09:33 +0000 (10:09 +0800)]
v1.7.6

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agocruft remove sigusr2 handling
Andy Green [Fri, 22 Apr 2016 13:58:38 +0000 (21:58 +0800)]
cruft remove sigusr2 handling

Signed-off-by: Andy Green <andy@warmcat.com>
7 years agoclient account for retries
Andy Green [Fri, 22 Apr 2016 04:40:44 +0000 (12:40 +0800)]
client account for retries

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agoUpdate libwebsockets.h
hgrundy [Thu, 21 Apr 2016 09:20:10 +0000 (17:20 +0800)]
Update libwebsockets.h

Fix for FreeBSD

8 years agorecv treat zero return as error
Justin Chen [Thu, 14 Apr 2016 13:42:11 +0000 (21:42 +0800)]
recv treat zero return as error

https://github.com/warmcat/libwebsockets/issues/475

8 years agowindows snprintf is _snprintf
Meir Yanovich [Fri, 8 Apr 2016 08:07:46 +0000 (16:07 +0800)]
windows snprintf is _snprintf

https://github.com/warmcat/libwebsockets/issues/411#issuecomment-207290650

8 years agoandroid fix rlimit
Galen Ma [Fri, 8 Apr 2016 08:04:58 +0000 (16:04 +0800)]
android fix rlimit

https://github.com/warmcat/libwebsockets/issues/488

8 years agourldecode forbid malformed
Andy Green [Thu, 7 Apr 2016 10:57:28 +0000 (18:57 +0800)]
urldecode forbid malformed

And update attack.sh to confirm the new test cases

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agolibuv add idle processing to force service where needed
Andy Green [Wed, 6 Apr 2016 01:25:46 +0000 (09:25 +0800)]
libuv add idle processing to force service where needed

https://github.com/warmcat/libwebsockets/issues/485

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agolws_service_adjust_timeout optimize
Andy Green [Wed, 6 Apr 2016 01:39:48 +0000 (09:39 +0800)]
lws_service_adjust_timeout optimize

Make it exit quicker if something is pending

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agorevert 622d9f2 ssl pending handcrank
Andy Green [Tue, 5 Apr 2016 11:51:55 +0000 (19:51 +0800)]
revert 622d9f2 ssl pending handcrank

https://github.com/warmcat/libwebsockets/issues/483

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agowin32 libuv build notes
Meir Yanovich [Tue, 5 Apr 2016 11:51:43 +0000 (19:51 +0800)]
win32 libuv build notes

8 years agowin32 needs strange strftime args
Meir Yanovich [Tue, 5 Apr 2016 11:51:25 +0000 (19:51 +0800)]
win32 needs strange strftime args

8 years agolibuv win32 fixes 2
Meir Yanovich [Mon, 4 Apr 2016 23:31:16 +0000 (07:31 +0800)]
libuv win32 fixes 2

https://github.com/warmcat/libwebsockets/issues/411#issuecomment-204284368

8 years agolibuv win32 fixes
Andy Green [Mon, 4 Apr 2016 23:31:11 +0000 (07:31 +0800)]
libuv win32 fixes

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agouri processing reject paths not starting with slash
Andy Green [Sat, 2 Apr 2016 00:03:48 +0000 (08:03 +0800)]
uri processing reject paths not starting with slash

https://github.com/warmcat/libwebsockets/issues/481

Return 403 Forbidden if we don't end up with a uri path starting with /

Test server already did this, but this makes it built into the
library.

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agov1.7.5
Andy Green [Fri, 1 Apr 2016 01:45:57 +0000 (09:45 +0800)]
v1.7.5

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agotest server align rxbuf with permessage deflate rx buf size
Andy Green [Fri, 1 Apr 2016 01:30:09 +0000 (09:30 +0800)]
test server align rxbuf with permessage deflate rx buf size

Add a test html button that will send 9KB of junk to confirm it

https://github.com/warmcat/libwebsockets/issues/480

permessage-deflate now checks the protocol rx buffer size for being
>=128, if not, permessage-deflate is disabled on that connection.

If it is >=128 but less than the zlib decompress buffer size, the
zlib decompress buffer size for that connection is reduced to the
nearest power of two of the protocol rx buf size.

To test this, dumb_increment is left violating the >= 128 rx buffer
size and permessage-deflte can be seen to be disabled on his
connections in the test html.

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agoFix build with musl libc
V.Krishn [Sun, 8 Mar 2015 09:35:27 +0000 (09:35 +0000)]
Fix build with musl libc

Fix building libwebsockets with the musl C libary.

<sys/cdefs.h> is an internal glibc header and should be avoided in user code.

__P() was used for compatibility with some old K&R C compilers, when there were
no prototypes (which were introduced to C with C89). As supporting legacy
non-ANSI compilers is nowadays not necessary anymore get rid of the unnecessary
function prototype using __P().

8 years agorevert cmake remove targets from install path
Andy Green [Tue, 29 Mar 2016 13:49:47 +0000 (21:49 +0800)]
revert cmake remove targets from install path

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agohttp2 build with alpn capable ssl no debug
Andy Green [Fri, 25 Mar 2016 13:03:01 +0000 (21:03 +0800)]
http2 build with alpn capable ssl no debug

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agolibuv: handle signals only if requested
Denis Osvald [Tue, 22 Mar 2016 14:19:10 +0000 (15:19 +0100)]
libuv: handle signals only if requested

Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
8 years agov1.7.4
Andy Green [Tue, 22 Mar 2016 01:19:32 +0000 (09:19 +0800)]
v1.7.4

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agob64decode correct decode of some strings
Andy Green [Fri, 18 Mar 2016 23:48:24 +0000 (07:48 +0800)]
b64decode correct decode of some strings

https://github.com/warmcat/libwebsockets/issues/467

Signed-off-by: Andy Green <andy@warmcat.com>
8 years agoOptimize payload exhaustion
Alex Hultman [Wed, 16 Mar 2016 22:56:23 +0000 (23:56 +0100)]
Optimize payload exhaustion

https://github.com/warmcat/libwebsockets/pull/462

AG refactor and do loop unrolling

8 years agoappveyor update 1.0.2g
Andy Green [Thu, 17 Mar 2016 00:58:12 +0000 (08:58 +0800)]
appveyor update 1.0.2g

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoclang fixes 1
Andy Green [Tue, 15 Mar 2016 13:24:04 +0000 (21:24 +0800)]
clang fixes 1

https://github.com/warmcat/libwebsockets/issues/461

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoclient perform WSI_CREATE callback
bjqiwei [Tue, 15 Mar 2016 08:27:49 +0000 (16:27 +0800)]
client perform WSI_CREATE callback

8 years agossl ecdh adapt if missing ecdh.h include
Joakim Soderberg [Sat, 12 Mar 2016 00:49:09 +0000 (08:49 +0800)]
ssl ecdh adapt if missing ecdh.h include

https://github.com/warmcat/libwebsockets/issues/457

8 years agoclient ext hdr skip if no arg
Andy Green [Wed, 9 Mar 2016 15:35:41 +0000 (23:35 +0800)]
client ext hdr skip if no arg

https://github.com/warmcat/libwebsockets/issues/453

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agorelease checklist specfile install soname
Andy Green [Wed, 9 Mar 2016 02:48:49 +0000 (10:48 +0800)]
release checklist specfile install soname

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agorpm specfile so install list bump
Andy Green [Wed, 9 Mar 2016 02:45:00 +0000 (10:45 +0800)]
rpm specfile so install list bump

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agolibev set foreign loop properly
Andy Green [Tue, 8 Mar 2016 23:47:34 +0000 (07:47 +0800)]
libev set foreign loop properly

After gaby64

https://github.com/warmcat/libwebsockets/issues/455

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agowindows deal with no snprintf
Andy Green [Fri, 4 Mar 2016 02:58:52 +0000 (10:58 +0800)]
windows deal with no snprintf

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agolibuv.c: Service fd with LWS_POLLHUP on poll errors
Alex Hultman [Wed, 2 Mar 2016 10:39:37 +0000 (11:39 +0100)]
libuv.c: Service fd with LWS_POLLHUP on poll errors

8 years agowince minor adaptations
Ondraco [Mon, 29 Feb 2016 23:33:56 +0000 (07:33 +0800)]
wince minor adaptations

https://github.com/warmcat/libwebsockets/issues/444

8 years agov1.7.3 upstream/1.7.3
Andy Green [Mon, 29 Feb 2016 03:30:07 +0000 (11:30 +0800)]
v1.7.3

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agolibuv when in use skip shutdown close phase
Andy Green [Mon, 29 Feb 2016 03:11:48 +0000 (11:11 +0800)]
libuv when in use skip shutdown close phase

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agowindows listen for pollhup
Andy Green [Mon, 29 Feb 2016 02:08:26 +0000 (10:08 +0800)]
windows listen for pollhup

After Ondraco

https://github.com/warmcat/libwebsockets/issues/441

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agotest server libuv support status protocol
Andy Green [Sun, 28 Feb 2016 17:11:08 +0000 (01:11 +0800)]
test server libuv support status protocol

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agolibuv create 1Hz background timeout check
Andy Green [Sun, 28 Feb 2016 17:09:01 +0000 (01:09 +0800)]
libuv create 1Hz background timeout check

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoah move more_rx_waiting to wsi scope
Andy Green [Sun, 28 Feb 2016 03:02:42 +0000 (11:02 +0800)]
ah move more_rx_waiting to wsi scope

Originally this was alright in wsi->u.hdr, because ah implied header
processing.  But since we allowed ah to be held across http
keep-alive transactions if we saw we had more header data, it means
we were trying to read this union member out of scope after it had
transitioned.

Moving the more_rx_waiting member to be a 1-bit bifield in the wsi
solves it and lets us check the state any time later at http
transaction completion.

https://github.com/warmcat/libwebsockets/issues/441

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoDon't include <sys/cdefs.h> for NetBSD
Kamil Rytarowski [Sat, 27 Feb 2016 02:18:43 +0000 (03:18 +0100)]
Don't include <sys/cdefs.h> for NetBSD

We needed it for the BSD symbol to be defined, while __NetBSD__ is defined
with a compiler.

Thanks Andy Green for the initial fix.

Signed-off-by: Kamil Rytarowski <n54@gmx.com>
8 years agonetbsd netinet include
Andy Green [Sat, 27 Feb 2016 01:34:48 +0000 (09:34 +0800)]
netbsd netinet include

https://github.com/warmcat/libwebsockets/issues/442

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoforce service properly when unconsumed rxbuf in ah
Andy Green [Fri, 26 Feb 2016 02:50:04 +0000 (10:50 +0800)]
force service properly when unconsumed rxbuf in ah

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoclose wsi must do detatch ah flow even if no ah
Andy Green [Thu, 25 Feb 2016 13:55:06 +0000 (21:55 +0800)]
close wsi must do detatch ah flow even if no ah

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoimprove timeout and ah list comments
Andy Green [Thu, 25 Feb 2016 13:54:31 +0000 (21:54 +0800)]
improve timeout and ah list comments

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoremove ah scan
Andy Green [Thu, 25 Feb 2016 13:54:06 +0000 (21:54 +0800)]
remove ah scan

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agofix missing callback return check
Andy Green [Thu, 25 Feb 2016 12:23:45 +0000 (20:23 +0800)]
fix missing callback return check

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agounix privs change group before user
Andy Green [Thu, 25 Feb 2016 07:15:41 +0000 (15:15 +0800)]
unix privs change group before user

Otherwise we no longer have privs to change the group after doing the user

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agotest server log LWS_CALLBACK_HTTP
Andy Green [Thu, 25 Feb 2016 07:08:03 +0000 (15:08 +0800)]
test server log LWS_CALLBACK_HTTP

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agov1.7.2
Andy Green [Thu, 25 Feb 2016 02:11:01 +0000 (10:11 +0800)]
v1.7.2

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agolws status fix LWS_PRE
Andy Green [Thu, 25 Feb 2016 01:27:02 +0000 (09:27 +0800)]
lws status fix LWS_PRE

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agodefeat POLLOUT if socket in shutdown wait
Andy Green [Wed, 24 Feb 2016 13:32:31 +0000 (21:32 +0800)]
defeat POLLOUT if socket in shutdown wait

After andrejs.hanins@ubnt.com

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agows union member must have actual struct at start not pointer
Andy Green [Wed, 24 Feb 2016 05:42:12 +0000 (13:42 +0800)]
ws union member must have actual struct at start not pointer

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoclient callback closed if not upgraded also for server connection
Andrejs Hanins [Wed, 24 Feb 2016 11:18:46 +0000 (19:18 +0800)]
client callback closed if not upgraded also for server connection

https://github.com/warmcat/libwebsockets/issues/437
https://github.com/warmcat/libwebsockets/pull/440

8 years agoclient connect must init position_in_fds_table
Andrejs Hanins [Mon, 22 Feb 2016 15:35:12 +0000 (23:35 +0800)]
client connect must init position_in_fds_table

8 years agowindows doesnt have localtime_r
Andy Green [Sun, 21 Feb 2016 13:41:22 +0000 (21:41 +0800)]
windows doesnt have localtime_r

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agotest server status no ssl include time header
Andy Green [Sun, 21 Feb 2016 07:12:20 +0000 (15:12 +0800)]
test server status no ssl include time header

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agotest server add lws_status
Andy Green [Sun, 21 Feb 2016 05:44:07 +0000 (13:44 +0800)]
test server add lws_status

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoLWS_BUILD_HASH improve
Andy Green [Sun, 21 Feb 2016 05:43:53 +0000 (13:43 +0800)]
LWS_BUILD_HASH improve

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agotest html add tabs
Andy Green [Sun, 21 Feb 2016 05:43:41 +0000 (13:43 +0800)]
test html add tabs

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agolibwebsockets.org url updates
Andy Green [Sun, 21 Feb 2016 02:49:04 +0000 (10:49 +0800)]
libwebsockets.org url updates

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agolwsl stderr sink use formatted time
Sebastian Reimer [Sat, 20 Feb 2016 23:45:03 +0000 (07:45 +0800)]
lwsl stderr sink use formatted time

AG change to use localtime_r for threadsafety and leave old method as fallback

8 years agossl get rid of build_cert_chain
Andy Green [Sat, 20 Feb 2016 23:10:55 +0000 (07:10 +0800)]
ssl get rid of build_cert_chain

It's not supported on major distro SSL (Fedora is 1.1) and
libressl (on 2.x) doesn't have it either.

https://github.com/warmcat/libwebsockets/issues/435

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoStop uv loop in default signal handler, clean-ups
Alex Hultman [Sat, 20 Feb 2016 15:01:12 +0000 (16:01 +0100)]
Stop uv loop in default signal handler, clean-ups

8 years agoMake sure every handle is closed before destroying the uv loop
Alex Hultman [Sat, 20 Feb 2016 14:32:57 +0000 (15:32 +0100)]
Make sure every handle is closed before destroying the uv loop

8 years agoDon't destroy ev/uv loops if they haven't been created yet
Alex Hultman [Sat, 20 Feb 2016 10:58:49 +0000 (11:58 +0100)]
Don't destroy ev/uv loops if they haven't been created yet

8 years agov1.7.1
Andy Green [Sat, 20 Feb 2016 01:19:54 +0000 (09:19 +0800)]
v1.7.1

Signed-off-by: Andy Green <andy.green@linaro.org>