V.Krishn
1ba878cdd5
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().
2016-03-30 06:24:24 +08:00
Andy Green
674609e69a
revert cmake remove targets from install path
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-03-29 21:49:47 +08:00
Andy Green
b45054ed39
http2 build with alpn capable ssl no debug
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-03-25 21:03:01 +08:00
Denis Osvald
3d033984f5
libuv: handle signals only if requested
...
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
2016-03-23 08:04:39 +08:00
Andy Green
18c328a631
v1.7.4
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-03-22 09:19:32 +08:00
Andy Green
7dbdb776d9
b64decode correct decode of some strings
...
https://github.com/warmcat/libwebsockets/issues/467
Signed-off-by: Andy Green <andy@warmcat.com>
2016-03-19 07:48:24 +08:00
Alex Hultman
5594735115
Optimize payload exhaustion
...
https://github.com/warmcat/libwebsockets/pull/462
AG refactor and do loop unrolling
2016-03-17 09:42:10 +08:00
Andy Green
a09b3cf569
appveyor update 1.0.2g
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-17 08:58:12 +08:00
Andy Green
20f18e0b1e
clang fixes 1
...
https://github.com/warmcat/libwebsockets/issues/461
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-15 21:24:04 +08:00
bjqiwei
934cc2a8ce
client perform WSI_CREATE callback
2016-03-15 16:27:49 +08:00
Joakim Soderberg
d36fa29ac4
ssl ecdh adapt if missing ecdh.h include
...
https://github.com/warmcat/libwebsockets/issues/457
2016-03-12 08:49:09 +08:00
Andy Green
f192c01a13
client ext hdr skip if no arg
...
https://github.com/warmcat/libwebsockets/issues/453
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-09 23:35:41 +08:00
Andy Green
a4330f313a
release checklist specfile install soname
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-09 10:48:49 +08:00
Andy Green
ef1f035681
rpm specfile so install list bump
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-09 10:45:00 +08:00
Andy Green
ec11114182
libev set foreign loop properly
...
After gaby64
https://github.com/warmcat/libwebsockets/issues/455
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-09 07:47:34 +08:00
Andy Green
dc410bfb78
windows deal with no snprintf
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-03-04 10:58:52 +08:00
Alex Hultman
3eb59c90bf
libuv.c: Service fd with LWS_POLLHUP on poll errors
2016-03-02 18:59:55 +08:00
Ondraco
3816a05c4f
wince minor adaptations
...
https://github.com/warmcat/libwebsockets/issues/444
2016-03-01 07:33:56 +08:00
Andy Green
7c8ef84848
v1.7.3
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 11:30:07 +08:00
Andy Green
980ca50c39
libuv when in use skip shutdown close phase
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 11:11:48 +08:00
Andy Green
ea3cf82769
windows listen for pollhup
...
After Ondraco
https://github.com/warmcat/libwebsockets/issues/441
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 10:09:15 +08:00
Andy Green
814a7d28c1
test server libuv support status protocol
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 01:11:55 +08:00
Andy Green
6671327c8d
libuv create 1Hz background timeout check
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 01:09:01 +08:00
Andy Green
360c0a8ee4
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>
2016-02-28 11:02:42 +08:00
Kamil Rytarowski
e841206653
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>
2016-02-27 10:24:40 +08:00
Andy Green
8df3ef15ab
netbsd netinet include
...
https://github.com/warmcat/libwebsockets/issues/442
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-27 09:34:48 +08:00
Andy Green
5e091c62a8
force service properly when unconsumed rxbuf in ah
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-26 10:50:04 +08:00
Andy Green
00aaa3aa12
close wsi must do detatch ah flow even if no ah
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 21:55:06 +08:00
Andy Green
12369b0c91
improve timeout and ah list comments
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 21:54:31 +08:00
Andy Green
d19dec7922
remove ah scan
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 21:54:06 +08:00
Andy Green
b55ea5eaed
fix missing callback return check
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 20:23:45 +08:00
Andy Green
d2a95e0c82
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>
2016-02-25 15:15:41 +08:00
Andy Green
314ca966a0
test server log LWS_CALLBACK_HTTP
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 15:08:03 +08:00
Andy Green
34266b7861
v1.7.2
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 10:11:01 +08:00
Andy Green
7bb600f0c7
lws status fix LWS_PRE
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:27:02 +08:00
Andy Green
ee2f1ea667
defeat POLLOUT if socket in shutdown wait
...
After andrejs.hanins@ubnt.com
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-24 21:32:31 +08:00
Andy Green
3daefb876a
ws union member must have actual struct at start not pointer
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-24 19:18:51 +08:00
Andrejs Hanins
b14f842891
client callback closed if not upgraded also for server connection
...
https://github.com/warmcat/libwebsockets/issues/437
https://github.com/warmcat/libwebsockets/pull/440
2016-02-24 19:18:46 +08:00
Andrejs Hanins
171d29695f
client connect must init position_in_fds_table
2016-02-22 23:35:31 +08:00
Andy Green
969212e1dd
windows doesnt have localtime_r
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 21:41:22 +08:00
Andy Green
b33c72c770
test server status no ssl include time header
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 15:12:20 +08:00
Andy Green
4038721baf
test server add lws_status
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 13:44:07 +08:00
Andy Green
9c6bd66859
LWS_BUILD_HASH improve
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 13:43:53 +08:00
Andy Green
466defa72d
test html add tabs
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 13:43:41 +08:00
Andy Green
228ecc6e56
libwebsockets.org url updates
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 10:49:04 +08:00
Sebastian Reimer
00919de84e
lwsl stderr sink use formatted time
...
AG change to use localtime_r for threadsafety and leave old method as fallback
2016-02-21 07:45:03 +08:00
Andy Green
a3f688c189
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>
2016-02-21 07:10:55 +08:00
Alex Hultman
1499ab6b33
Stop uv loop in default signal handler, clean-ups
2016-02-20 23:06:32 +08:00
Alex Hultman
a3a0792012
Make sure every handle is closed before destroying the uv loop
2016-02-20 22:50:53 +08:00
Alex Hultman
f2ee57e734
Don't destroy ev/uv loops if they haven't been created yet
2016-02-20 19:35:33 +08:00