Andy Green
60d656fb0f
check oom on lws_malloc
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-05-12 21:54:29 +08:00
Andy Green
5cd457626a
appveyor openssl 1.0.2h
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-05-07 09:39:15 +08:00
Andy Green
9a90ed20ac
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>
2016-05-07 08:33:07 +08:00
Andy Green
d2feeee1d6
recv revert treating zero as hangup
...
While checking with ab, I found
commit 30cdb3ac8f
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>
2016-05-05 09:23:05 +08:00
Andy Green
f89e90f6a2
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>
2016-05-03 21:41:24 +08:00
Andy Green
29458b105d
v1.7.7
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-05-03 14:29:07 +08:00
Andy Green
381cbf2dc1
client fix reaction to tls failure
...
https://github.com/warmcat/libwebsockets/issues/508
Signed-off-by: Andy Green <andy@warmcat.com>
2016-05-03 08:08:32 +08:00
Patrick Farrell
c6e497ea48
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
2016-04-30 02:08:11 +08:00
Alexander Bruines
96487167dd
Android needs sys/resource.h
2016-04-23 17:19:07 +08:00
Andy Green
449e73433c
v1.7.6
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-23 10:09:33 +08:00
Andy Green
659fefe330
cruft remove sigusr2 handling
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-22 21:58:38 +08:00
Andy Green
12df0f0acd
client account for retries
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-22 12:40:44 +08:00
hgrundy
461a9068f5
Update libwebsockets.h
...
Fix for FreeBSD
2016-04-21 17:52:39 +08:00
Justin Chen
edb92ee3c7
recv treat zero return as error
...
https://github.com/warmcat/libwebsockets/issues/475
2016-04-14 21:42:11 +08:00
Meir Yanovich
c06ea5c7d7
windows snprintf is _snprintf
...
https://github.com/warmcat/libwebsockets/issues/411#issuecomment-207290650
2016-04-08 16:07:46 +08:00
Galen Ma
1458e7079c
android fix rlimit
...
https://github.com/warmcat/libwebsockets/issues/488
2016-04-08 16:04:58 +08:00
Andy Green
82753d8db6
urldecode forbid malformed
...
And update attack.sh to confirm the new test cases
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-07 18:57:28 +08:00
Andy Green
3564e3d5e9
libuv add idle processing to force service where needed
...
https://github.com/warmcat/libwebsockets/issues/485
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-07 18:56:40 +08:00
Andy Green
101bd4272a
lws_service_adjust_timeout optimize
...
Make it exit quicker if something is pending
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-07 18:56:40 +08:00
Andy Green
9ec343d795
revert 622d9f2
ssl pending handcrank
...
https://github.com/warmcat/libwebsockets/issues/483
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-05 19:51:55 +08:00
Meir Yanovich
900204e3af
win32 libuv build notes
2016-04-05 19:51:43 +08:00
Meir Yanovich
ec81fd460b
win32 needs strange strftime args
2016-04-05 19:51:25 +08:00
Meir Yanovich
b1f80eeeb7
libuv win32 fixes 2
...
https://github.com/warmcat/libwebsockets/issues/411#issuecomment-204284368
2016-04-05 07:31:16 +08:00
Andy Green
934cc80d95
libuv win32 fixes
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-05 07:31:11 +08:00
Andy Green
8b83266301
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>
2016-04-02 08:03:48 +08:00
Andy Green
e3e89a7241
v1.7.5
...
Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-01 09:45:57 +08:00
Andy Green
8cd06ca315
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>
2016-04-01 09:30:09 +08:00
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