Andy Green
96505bef8f
test-echo: handle WRITABLE callback when nothing to send
2018-01-12 09:53:13 +08:00
Andy Green
d069136478
excessive ah hold: stop trying to list headers at sentinel
...
One header earlier than before
https://github.com/warmcat/libwebsockets/issues/1152
2018-01-12 08:21:42 +08:00
Andy Green
cc20895f50
after excessive ah hold detect restart scan
...
ah is potentially freed after the close
2018-01-12 08:11:56 +08:00
Andy Green
d75c94001b
lejp: fix float
...
https://libwebsockets.org/pipermail/libwebsockets/2018-January/003599.html
2018-01-04 10:32:13 +08:00
Andy Green
bf7564cff8
close: only tell user closed once
2018-01-03 09:23:40 +08:00
Andy Green
2e14e15970
hs: close immediately if negotation failed
2018-01-03 09:23:29 +08:00
Andy Green
13a7a8d0a2
docs: spell out how to set the default protocol when client doesnt give any
2018-01-03 08:30:29 +08:00
Sergio Hernández
bce3f98f1b
Detect dead socket on iOS when server closed connection
...
It aims to solve the ticket issue #1129
(https://github.com/warmcat/libwebsockets/issues/1129 ).
2017-12-21 18:14:30 +08:00
Andy Green
55f97b7806
h2: fix multiple cookie header handling
...
Firefox 57 at least still sends multiple cookie: headers over h2.
Correctly aggregate them with a ';' delimiter.
2017-12-01 11:12:50 +08:00
Andy Green
741ab335a7
cmake: dont build ssh stuff if no SSL enabled
2017-11-28 08:03:29 +08:00
Pavel Shramov
0d51381faf
lib: Spelling fixes based on debian packaging
2017-11-28 07:47:21 +08:00
Andy Green
1177c20a59
client: handle bio_create failing
2017-11-16 09:54:56 +08:00
Andy Green
5dcb9a6ba3
hpack: pseudoheader check improvement
2017-11-10 13:30:09 +08:00
Andy Green
cf75cc393b
wrapper: untrash partial sends
2017-11-10 11:18:12 +08:00
Andy Green
4f16934b1e
windows: CHECK_FUNCTION_EXISTS workaround
2017-11-08 16:09:40 +08:00
Andy Green
f820dcb965
hpack: dont reinterpret lws index for idx hdr 6 inc
2017-11-06 13:34:54 +08:00
Andy Green
8dcb4ca753
h2: never send more than file length
2017-11-05 19:40:34 +08:00
Andy Green
e4e774b8f2
v2.4.1
2017-11-05 11:25:25 +08:00
Andy Green
43b06fe351
WITH_STATS: fix signed build warnings
2017-11-05 09:37:00 +08:00
Andy Green
ee0ce8cc76
coverity-fixes
2017-11-05 09:37:00 +08:00
Andy Green
5f74010e9d
service: only apply trunc holds rx rule for http2
2017-11-05 09:37:00 +08:00
Andy Green
d2ec329531
rxflow: fix second draining path
2017-11-05 09:37:00 +08:00
Andy Green
bc6f8179c6
service: stop trying to find service TID after first time
2017-11-05 09:37:00 +08:00
Andy Green
9d654abedf
mirror: default to empty name if mirror with no arg
2017-11-03 06:52:07 +08:00
Andy Green
5b62dd284a
mirror: fix spin on close
2017-11-03 06:51:58 +08:00
Andy Green
6ef69ad82e
lws_hdr_copy: protect against garbage
2017-11-03 01:09:53 +08:00
Andy Green
793d8bfa13
ah: increase timeout sanity check to ah_idle + 60
2017-10-31 07:01:11 +08:00
Andy Green
52f2ac57ea
win: move LEAN_AND_MEAN before tls includes
...
It's always mean... we define LEAN_AND_MEAN in libwebsockets.h
but we include libwebsockets.h partway through private-libwebsockets.h.
Reorder for https://github.com/warmcat/libwebsockets/issues/1080
2017-10-31 06:43:04 +08:00
Andy Green
6232d3f8cc
lws_timingsafe_bcmp
2017-10-28 13:21:19 +08:00
Andy Green
fbd524e34a
cgi: make sure compiler cant see uninitialized use
2017-10-26 18:56:12 +08:00
Andy Green
c303a0d0e3
lejp: use explicit signed char return
2017-10-25 02:49:18 +08:00
Sebastian Mueller
bc046cb6e0
getifaddrs-fix-include-reference
...
https://github.com/warmcat/libwebsockets/issues/1068
2017-10-25 02:49:17 +08:00
Andy Green
e80461fbb5
build: strict-aliasing on old compiler workaround
...
https://github.com/warmcat/libwebsockets/issues/1067
2017-10-24 19:27:38 +08:00
Andy Green
2224183110
http2: missing return when openssl too old
2017-10-24 06:47:10 +08:00
Andy Green
bdc9eda20a
protocol init: allow use of client apis during per-vhost protocol init
2017-10-24 06:46:32 +08:00
Andy Green
8095155385
getifaddrs: fix conditional build
2017-10-24 06:46:30 +08:00
Andy Green
d50823c7fb
client: allow failout when adding client headers
2017-10-24 06:44:43 +08:00
Andy Green
0a9f37225f
client: do not treat selected response codes as connection failures
...
There was not really any "connection failure" with some of these like 404.
They may have body content that is important.
The client should use lws_http_client_http_response(wsi) to discover
the response code the client action received and decide for itself
what to do about that.
2017-10-24 06:44:26 +08:00
Andy Green
7135267251
mirror: fix multiple mirror instances hang
2017-10-20 21:12:57 +08:00
Andy Green
af07cca9f7
getifaddrs: fix second lws_malloc
2017-10-19 21:02:16 +08:00
Andy Green
c890b6f1b5
sshd: fix NULL vhd protection
2017-10-19 11:25:48 +08:00
Andy Green
df0f8341dd
daemonize: fix missing lws_malloc reason param
2017-10-18 19:57:56 +08:00
Andy Green
fcf5b2c25a
v2.4.0
2017-10-17 13:21:12 +08:00
Andy Green
dfacbc2071
mbedtls: fix client
2017-10-17 13:21:10 +08:00
Andy Green
1799b02a43
windows: POLLHUP is or-ed on other events
...
https://github.com/warmcat/libwebsockets/issues/1054
2017-10-16 17:28:37 +08:00
Andy Green
c83afc66e6
refactor: subdirs for source in lib
...
Split out some optional code into own sources to
shrink down libwebsockets.c and server.c a bit
2017-10-16 17:28:37 +08:00
Andy Green
904a9c0920
http2: make usable
...
HTTP/2 support is now able to serve the test server, complete with
websockets, from a single vhost.
- This works the same with both OpenSSL and mbedTLS.
- POST is now wired up and works (also for file upload).
- CGI is wired up and works.
- Redirect is adapted and works
- lwsws works.
- URI urldecode, sanitation and argument parsing wired up for :path
valgrind clean (aside from openssl-style false uninit data usage in mbedtls send occasionally)
h2spec reports:
$ h2spec -h 127.0.0.1 -p 7681 -t -k -o 1
...
145 tests, 145 passed, 0 skipped, 0 failed"
Incorporates:
- "https://github.com/warmcat/libwebsockets/pull/1039
Fixes issue with -Werror=unused-variable flag
- 2c843a1395
ssl: fix infinite loop on client cert verification failure
Signed-off-by: Petar Paradzik <petar.paradzik@sartura.hr>"
Caused and fixes Coverity 184887 - 184892
2017-10-16 17:13:49 +08:00
Andy Green
028551271e
client: reorder close callbacks
...
This will make sure you get
- DROP_PROTOCOL
- CONNECTION_ERROR
- CLOSED_CLIENT_HTTP
as expected for failed client connections.
2017-10-16 17:13:49 +08:00
Andy Green
e67ae24d41
doxygen cleanup
2017-10-16 17:13:49 +08:00
Andy Green
6f3f2df7ca
lejp-conf: skip conf.d files containing tilde
...
https://github.com/warmcat/libwebsockets/issues/1051
2017-10-16 17:13:49 +08:00