Andy Green
1b43ed1cba
mbedtls wrapper: check for malloc.h before using
...
https://github.com/warmcat/libwebsockets/issues/1163
2018-01-26 07:22:35 +08:00
Andy Green
a8a484eb53
back-to-back: clear pending flag for all variants of server write
2018-01-25 09:00:08 +08:00
mulander
b3b6bcdf64
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:04 +08:00
Andy Green
bd3d8d9de0
close: add LWSS_WAITING_TO_SEND_CLOSE_NOTIFICATION allowed to send
...
https://github.com/warmcat/libwebsockets/issues/1159
2018-01-23 07:01:21 +08:00
Sungtae Kim
93f904f601
libevent: fix memory leak
...
- Added event free function for accept.
2018-01-17 09:23:37 +08:00
Andy Green
8c07636dfd
lwsgs: update messageboard to avoid back-to-back writes
2018-01-14 20:57:34 +08:00
Andy Green
87aff27ab1
lwsgs: handle NULL pss at ADD_HEADERS
2018-01-14 20:37:45 +08:00
Andy Green
a3bbb0a374
interpreter: support unchunked mode when h2 connection
2018-01-14 20:09:41 +08:00
Andy Green
673e3aa549
attack.sh fixes
2018-01-14 11:32:45 +08:00
Andy Green
93bc409ca1
POST: handle http/1 pipelined after body
...
Re-use wsi->preamble_rx to also hold leftover rx after dealing with POST
body. Ensure ah->rx is always big enough to cope with what may have
been read into the pt->serv_buf.
Update the check for forced needed to also accept non-NULL wsi->preamble
as well as ah->rxpos != ah->rxlen as indication forced needed.
Disable autoservice on ah reset during transaction completed... it may
close the wsi underneath us when it sees and processes the pending
wsi->preamble_rx recursively otherwise.
2018-01-14 10:25:43 +08:00
Andy Green
0e24969f53
more_rx_waiting: replace by check ah rxpos rxlen and wsi preamble_rx
...
No need to hold the state when we can check it directly
2018-01-14 10:24:56 +08:00
Andy Green
5a1f0b7c4f
excessive ah hold: explicitly detach ah
2018-01-13 05:14:43 +08:00
Andy Green
715847cc8c
generic-sessions: drop after 404
2018-01-12 10:26:24 +08:00
Andy Green
b13bff84fa
h2: avoid problems with ffox by setting max hpack size to 65536
2018-01-12 10:19:46 +08:00
Andy Green
5494128faf
test-echo: handle WRITABLE callback when nothing to send
2018-01-12 09:52:14 +08:00
Andy Green
3846986851
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:30:23 +08:00
Gabriele Mondada
efbd6c1b50
win32: fix comparison between unsigned and signed integer
2018-01-08 06:37:07 +08:00
Andy Green
3eae5b1363
openssl: treat SYSCALL at connect as always fatal
2018-01-08 06:35:12 +08:00
Andy Green
0c40f0b7bd
ev: signed-unsigned warning in test app
2018-01-08 06:17:12 +08:00
Andy Green
5451457738
cgi: log CGI timeout clearly with extra related info
2018-01-04 12:07:56 +08:00
Andy Green
6b3b32e98a
ACCESS_LOG: log with NOTICE if no file set up
2018-01-04 10:48:43 +08:00
Anzey
08d36dbe43
qnx: add support
...
https://libwebsockets.org/pipermail/libwebsockets/2018-January/003600.html
2018-01-04 10:43:20 +08:00
Anzey
a903d73ab7
lejp-conf: support builds without TLS
2018-01-04 10:42:07 +08:00
Andy Green
2e4ac9defe
lejp: fix float
...
https://libwebsockets.org/pipermail/libwebsockets/2018-January/003599.html
2018-01-04 10:28:06 +08:00
Andy Green
48be844e5b
travis: use trusty
2018-01-03 09:28:42 +08:00
Andy Green
265db34286
close: only tell user closed once
2018-01-03 09:22:32 +08:00
Andy Green
cfb076c8a0
hs: close immediately if negotation failed
2018-01-03 09:11:27 +08:00
Andy Green
15820da8ba
docs: spell out how to set the default protocol when client doesnt give any
2018-01-03 08:29:29 +08:00
Andy Green
f95f689146
libevent test server Werror sign-compare
...
https://github.com/warmcat/libwebsockets/issues/1131
2017-12-30 08:47:16 +08:00
Andy Green
5a6764f218
after excessive ah hold detect restart scan
...
ah is potentially freed after the close
2017-12-29 13:30:37 +08:00
Andy Green
4cee34c0d0
h2: adapt oversize POST test now we handle blocks in parser not byte-at-a-time
2017-12-29 02:41:05 +08:00
Andy Green
b94091130b
sshd: support async exec or shell close
2017-12-27 10:02:34 +08:00
Sergio Hernández
f3c6fac3cb
Detect dead socket on iOS when server closed connection
2017-12-27 10:02:34 +08:00
Andy Green
e8e448df3e
plat optee: updates
2017-12-20 10:44:21 +08:00
Andy Green
350af2394c
gencerts: fix install
2017-12-20 10:42:39 +08:00
Andy Green
e7c7794cd4
treat write failed as permanently fatal
2017-12-20 10:42:31 +08:00
angelfromhell
1e7f5b5b2b
pthreads: fix context destroy api ref
2017-12-20 10:42:23 +08:00
Andy Green
d58d749b30
acme: adaptations through plat for esp32
2017-12-11 13:30:12 +08:00
Alexander Couzens
d7b6c04aaf
CMakeLists: build reproducible by default
...
Using the build user and build hostname as part of the git hash breaks
reproducible builds. Make this part optional, but build reproducible by
default.
2017-12-10 08:48:09 +08:00
Andy Green
8ff7dce46d
sshd: protect against NULL kex
2017-12-08 06:26:54 +08:00
Andy Green
248b089ad4
h1: confirm POLLOUT again before starting next pipelined transaction
2017-12-07 18:53:25 +08:00
Andy Green
83af0716c5
h2: ensure only one path to close
...
Add a flag to protect the case both the recursed lws_read()
and the outer, grandfather lws_read() don't both try to
close the wsi.
2017-12-07 18:53:25 +08:00
Andy Green
1da0197798
truncated: detect and flag any write on a wsi that could have pending truncated
2017-12-07 10:19:48 +08:00
Andy Green
9039b7c9c6
client: convert stash to exactly sized mallocs
2017-12-07 10:19:20 +08:00
Andy Green
db04a40b5c
lws_timed_callback_vh_protocol
2017-12-07 10:19:15 +08:00
Andy Green
7d59122b5f
lws_set_timer
...
This adds a new api lws_set_timer(wsi, secs), which schedules
a callback LWS_CALLBACK_TIMER secs seconds into the future.
The timer can be continuously deferred by calling lws_set_timer()
again before it expires.
Calling lws_set_timer(wsi, -1) cancels any pending timer.
2017-12-05 20:14:00 +08:00
Andy Green
8487279e64
plat: remove esp8266
...
ESP32 module price is now within range of 8266 price.
ESP32 capability and OS support is hugely better than 8266,
we can support mbedtls tls, http/2 etc with ESP32.
I'm no longer testing on ESP8266... there's no more
user traffic... it's time to go.
2017-12-01 11:37:36 +08:00
Andy Green
2643775f18
mbedtls: genralize cert template for arbitrary key sizes
2017-12-01 11:37:36 +08:00
Andy Green
e83860d1bc
plat: add extra helpers hiding ESP32 quirks
2017-12-01 11:37:36 +08:00
Andy Green
91a821c793
esp32: align with esp-idf changes
...
LWIP_SOCKET_OFFSET is now nonzero, which I handled a while back.
But the C api support for it is broken in esp-idf.
select() takes unmodified fds, but FD_SET / FD_ISSET etc must have the
offset subtracted on their args.
With this we are working on current HEAD esp-idf.
2017-12-01 11:37:36 +08:00