Joe Littlejohn
fad43ff8e9
Check status before checking for Sec-WebSocket-Accept
...
If the server rejects the attempt to establish a connection by returning
a response status other than 101, then it will not include the
Sec-WebSocket-Accept header. We need to check for 101 status (and return
an appropriate error message) before looking for the accept header.
See #1200
2018-03-07 20:23:46 +08:00
Andy Green
3e3c270f76
LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT: fixes after tls refactor
...
https://github.com/warmcat/libwebsockets/issues/1191
2018-02-27 08:26:01 +08:00
Andy Green
36620a2ffe
mbedtls: adapt to deprecated api in 2.7
2018-02-19 06:32:49 +08:00
Andy Green
4c299ad4a8
pthread: fix destroy call
...
https://github.com/warmcat/libwebsockets/issues/1172
2018-02-06 08:54:45 +08:00
Andy Green
1511ce225f
openssl: defeat spin on failed accept
2018-02-06 07:59:21 +08:00
Andy Green
c453968435
remove u_int64_t
...
https://github.com/warmcat/libwebsockets/issues/1167
2018-01-30 09:29:58 +08:00
mulander
76250c7bfb
READMEs: CHANGE callback replaces SET/CLEAR_MODE
...
LWS_CALLBACK_SET_MODE_POLL_FD and LWS_CALLBACK_CLEAR_MODE_POLL_FD no longer exist.
Updating the documentation to reflect that and point to LWS_CALLBACK_CHANGE_MODE_POLL_FD.
2018-01-24 08:24:39 +08:00
Andy Green
f1b30a39fd
close: add LWSS_WAITING_TO_SEND_CLOSE_NOTIFICATION allowed to send
...
https://github.com/warmcat/libwebsockets/issues/1159
2018-01-23 07:03:59 +08:00
Andy Green
dd9a30b4d2
excessive ah hold: explicitly detach ah
2018-01-13 05:20:25 +08:00
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