Andy Green
2d8d35a1be
client accept connection request even if no free ah
...
It can join the free ah list and pick up client connect processing
later when the ah becomes available; this simplifies the code
doing the request since he won't have to deal with unexpected
failures / retries based on dynamic ah availability.
To do this though we have to handle that the connect_info members
may not have scope that lets them still exist after we return from
the first connect call, we stash them in a malloc'd buffer so the
connect processing can have them much later even so.
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 14:19:16 +08:00
Andy Green
f859e2d3ed
release checklist ab
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 11:26:13 +08:00
Andy Green
e3d141dae9
adopt readbuf do service
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 11:04:53 +08:00
Andy Green
ee699c0036
libuv when in use skip shutdown close phase
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-29 10:34:58 +08:00
Andy Green
442e1c850d
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:34:58 +08:00
Andy Green
83af28a747
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-29 10:34:58 +08:00
Andy Green
03384721e7
test server libuv support status protocol
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-27 13:17:26 +08:00
Andy Green
38a1cbb498
libuv create 1Hz background timeout check
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-27 11:04:04 +08:00
Kamil Rytarowski
f57a2b5a8c
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:30:59 +08:00
Andy Green
c0495892bc
netbsd netinet include
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-27 09:34:28 +08:00
Andy Green
1bcc110299
force service properly when unconsumed rxbuf in ah
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-26 10:48:51 +08:00
Andy Green
58cc41bc1c
adopt readbuf fix no ah path
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-26 09:22:29 +08:00
Andy Green
4ba798dd7d
close wsi must do detatch ah flow even if no ah
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 21:50:49 +08:00
Andy Green
897197146a
improve timeout and ah list comments
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 21:43:29 +08:00
Andy Green
73321ccfb0
remove ah scan
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 21:43:09 +08:00
Andy Green
d8267a43b8
fix missing callback return check
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 20:27:10 +08:00
Andy Green
0a9bd7e971
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:12:16 +08:00
Andy Green
a11018089f
test server log LWS_CALLBACK_HTTP
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 15:06:37 +08:00
Andy Green
d61bed3ce6
logging timestamp creation expose as api
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 15:01:55 +08:00
Andy Green
6a8099b071
cgi
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:45:17 +08:00
Andy Green
dbfbbb41b1
user code must explicitly complete http transaction
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:45:17 +08:00
Andy Green
5c0bcf49a8
defeat POLLOUT if socket in shutdown wait
...
After andrejs.hanins@ubnt.com
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:45:17 +08:00
Andy Green
51d9afadd6
adopt variant with preamble rx
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:45:17 +08:00
Andy Green
26d4249a3f
ws union member must have actual struct at start not pointer
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:45:17 +08:00
Andrejs Hanins
9dbfe07798
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-25 09:45:17 +08:00
Andrejs Hanins
cc551fc0bf
client connect must init position_in_fds_table
2016-02-25 09:45:17 +08:00
Andy Green
3ccac4d583
windows doesnt have localtime_r
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:43:59 +08:00
Andy Green
401d49aadc
test server status no ssl include time header
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-25 09:43:59 +08:00
Andy Green
0ad1a6e5bf
test server add lws_status
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 11:09:40 +08:00
Andy Green
d9da2c469f
LWS_BUILD_HASH improve
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 11:09:40 +08:00
Andy Green
aa85024f9a
test html add tabs
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 11:07:22 +08:00
Andy Green
ce0326b839
libwebsockets.org url updates
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 10:42:46 +08:00
Sebastian Reimer
57a1df4c88
lwsl stderr sink use formatted time
...
AG change to use localtime_r for threadsafety and leave old method as fallback
2016-02-21 07:42:49 +08:00
Andy Green
0a3d31b8a6
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:08:28 +08:00
Alex Hultman
ecf7f00772
Stop uv loop in default signal handler, clean-ups
2016-02-20 23:06:56 +08:00
Alex Hultman
2904de5ff2
Make sure every handle is closed before destroying the uv loop
2016-02-20 22:48:34 +08:00
Alex Hultman
f84be14677
Don't destroy ev/uv loops if they haven't been created yet
2016-02-20 19:29:06 +08:00
Andy Green
0c3cc2efcb
changelog sync
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-20 09:12:52 +08:00
Andy Green
d0249a82ec
attack.sh add check for nonexistant file processing
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-20 08:12:31 +08:00
Andy Green
c6b0b607d4
lws_return_http_status send content length
...
If we're sending content, we must do so with a
content-length on http/1.1
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-20 07:53:24 +08:00
Andy Green
e34512e5e9
test server example systemd service file
...
Make sure you have daemonization enabled to use this
make .. -DLWS_WITHOUT_DAEMONIZE=0
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-19 12:46:36 +08:00
Andy Green
8582d47a00
daemonize work under systemd
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-19 12:44:59 +08:00
Andy Green
c1e6e38709
ah pool lifetime use dynamic rxpos
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-19 11:47:52 +08:00
Andy Green
9231afca4b
test server allow set uid gid from cmdline
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-19 11:15:10 +08:00
Andy Green
3d4353650c
windows plat correct assert test in lws_poll_listen_fd
...
After https://github.com/warmcat/libwebsockets/issues/430
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-18 21:01:27 +08:00
Andy Green
d7fddadaec
context creation info add ecdh_curve
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-18 20:36:55 +08:00
Andy Green
79afbe34de
test server SSL STS header delivery example
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-18 20:36:40 +08:00
Andy Green
a6d411fa92
test server allow only best quality ciphers
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-18 20:36:23 +08:00
Andy Green
78773b6da0
ssl add server ecdh curve init
...
Using "real" SSL certs requires some init for openssl ECDH
curve. Add a default curve "prime256v1" and allow overriding it
at context creation time.
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-18 20:36:09 +08:00
Andy Green
d32bb055ea
test server allow external certs
...
Allow the test server to use external certs for testing
libwebsockets-test-server --ssl -C libwebsockets.org.crt -K libwebsockets.org.key -A libwebsockets.org.cer
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-17 11:58:51 +08:00