Commit graph

1528 commits

Author SHA1 Message Date
Cory McWilliams
fff2bb5b21 Subject: Mismatched lws_zalloc / free 2017-08-17 07:33:54 +08:00
Andy Green
12a00ea821 docs: swap _all_protocol_vhost cut and paste
https://github.com/warmcat/libwebsockets/issues/989
2017-08-16 15:23:08 +08:00
Andy Green
e99d725e76 ah: reuse at end of transaction has no timeout
If we complete a transaction but end up keeping the ah, we must force
a timeout on it.  Otherwise a bad bot could keep the socket open and
exhaust the ah pool.
2017-08-15 08:06:32 +08:00
lnmx
dc4323f837 send content-type when LWS_WITH_RANGES=OFF
https://github.com/warmcat/libwebsockets/pull/987

With the RANGES feature disabled, lws_serve_http_file would
not add the content-type header to the response.
2017-08-12 20:55:14 +08:00
Andy Green
31b1029234 LWS_WITH_NO_LOGS: take care about unused array for log generation 2017-06-09 21:48:03 +08:00
Leonardo Maccari Rufino
5a473e0dc3 Subject: Support to IPv6 on Windows 2017-06-01 06:57:59 +08:00
Petar Paradzik
a5463053e8 Subject: libuv: Fix closing handle multiple times
Sometimes "Assertion failed: !uv__is_closing(handle)" happens because
handle is being closed multiple times. To fix this, "uv_is_closing"
is added before calling "uv_close".

Signed-off-by: Petar Paradzik <petar.paradzik@sartura.hr>
2017-05-23 23:50:04 +08:00
Andy Green
f6facad476 non-ssl: return 0 on pending
https://github.com/warmcat/libwebsockets/issues/887
2017-05-03 21:25:23 +08:00
Andy Green
ccecbb99ab snprintf: move contributed ssl patch to lws_snprintf 2017-05-03 20:26:58 +08:00
Andy Green
a68539492f mings: adjust plugin export name gen 2017-04-28 11:47:21 +08:00
Andy Green
36239951be mingw: use win32 plugin names 2017-04-28 10:14:40 +08:00
Andy Green
786e6dbf35 mingw: updates 2017-04-28 07:51:34 +08:00
Martin Milata
2238857ea4 Subject: ssl: stop spinning on close 2017-04-19 20:53:51 +08:00
dspname
2d6fd20c60 windows: constify first arg of plat fops open
https://github.com/warmcat/libwebsockets/issues/871
2017-04-19 20:41:57 +08:00
Andy Green
ba16f5172c windows: align choked trunc checking with unix 2017-04-18 15:18:14 +08:00
Gecko
2977272f0e Subject: Save copy of ah pointer even with WS client so that HTTP
error can be captured by calling lws_http_client_http_response.
2017-04-10 12:38:35 +08:00
Andy Green
6da41353ce boilerplate: add back missing Lesser that cut-and-pasted itself around 2017-04-06 23:12:30 +08:00
Martin Milata
8d511c834f Subject: ssl: fix OpenSSL client method detection 2017-04-06 23:12:11 +08:00
Andy Green
8e2fe3f12b ssl: OpenSSL v1.1 deprecated TLSv1_2_client_method 2017-04-06 08:51:17 +08:00
Andy Green
be333ac420 pollout: handle request for pollout during pollout service 2017-04-05 08:30:04 +08:00
Renyaow
89ad5714d6 windows: _snprintf_s
https://github.com/warmcat/libwebsockets/issues/859
2017-04-05 02:05:01 +08:00
Andy Green
a36ca4dc08 logs: reduce ah err to info 2017-04-02 13:02:28 +08:00
paularmitt
db26ccc38b windows: need LWS_INLINE 2017-03-31 19:59:50 +08:00
Olivier Basson
6f13ccf7c3 ev: stop event listeners during context destroy
I think I've found a bug in libev backend, in function lws_libev_io(). I'm using latest version from master branch.

When deleting a context with active connections via lws_context_destroy(), context->being_destroyed is set to 1 early in the function, before the loop calling lws_close_free_wsi() on each active connection.
lws_close_free_wsi() calls remove_wsi_socket_from_fds(), which calls lws_libev_io(), and here is my problem :

lws_libev_io() returns without doing anything if context->being_destroyed is set, so libev callbacks for deleted connections file descriptors stay registered after context is destroyed, which may lead to segfault/undefined behaviour if these file descriptors get reused later (which would trigger the callbacks).

I think the "if (!pt->io_loop_ev || context->being_destroyed) return;" statement should be replaced with " if (!pt->io_loop_ev) return;"

This fixes the problem for me and I have not seen any side effect yet. Moreover, libuv backend does not have such a test.
2017-03-29 08:22:54 +08:00
Andy Green
f80967b6c1 service: always restrict rx to serve_buf_size 2017-03-28 08:52:20 +08:00
Andy Green
d2d87776f9 pmd: handle case we are already on drain list
Provide internal helper for adding to list that takes care of the
case we are already on the list.

https://github.com/warmcat/libwebsockets/issues/847
2017-03-26 10:11:06 +08:00
Andy Green
5a354ae44a pmd: align client rx sm with server one 2017-03-25 08:51:06 +08:00
luk65
253ef2180e solaris: handle big-endian
https://github.com/warmcat/libwebsockets/issues/846
2017-03-23 23:58:01 +08:00
Andy Green
42ea3bd703 ext: pmd: improve dealing with partial input usage with drain
https://github.com/warmcat/libwebsockets/issues/841
2017-03-20 19:34:49 +08:00
Andy Green
b4d2ad04bd windows: cannot use fstat 2017-03-17 11:44:47 +08:00
Andy Green
f8a995e8d5 docs: lws_callback_all_protocol: fix cut-n-paste error and explain it is probably not what you want 2017-03-15 07:29:55 +08:00
Andy Green
dca17ff614 windows: don't use LWS_EXTERN outside of function declarations 2017-03-15 07:29:45 +08:00
Andy Green
839b1af4e4 esp32: move helper code into lws 2017-03-10 14:33:25 +08:00
Silas Parker
906f137794 ssl: close sometimes continuously asserting POLLIN until timeout
https://github.com/warmcat/libwebsockets/issues/831
2017-03-10 07:48:27 +08:00
Silas Parker
0be5279eb2 gcc-format-strings: 32-bit build 2017-03-09 18:48:55 +08:00
honjane
486e72f2cb http2: fix log compile errors 2017-03-09 13:30:44 +08:00
Andy Green
2f3b4c8f96 coverity 177526: pointer difference already scaled 2017-03-08 14:10:31 +08:00
Andy Green
3a09c3b7d6 esp32: align fops member name defines 2017-03-08 11:11:41 +08:00
Andy Green
c53a76f0ef reduce log spew on POST processing 2017-03-08 10:52:49 +08:00
Andy Green
4219a3281d server-name: add_server_header add LWSAHH_FLAG_NO_SERVER_NAME
Also clean up usage of status code defines in lws
2017-03-08 07:51:47 +08:00
Andy Green
b9dd61bb6f server-name: default to no server name unless set in context 2017-03-08 07:35:27 +08:00
Andy Green
205ccedf6e raw: enable server and client raw sockets 2017-03-07 16:06:05 +08:00
Andy Green
4578036b53 ext: use arguments and reply with them 2017-03-07 10:08:03 +08:00
Andy Green
b6e0c89750 coverity 177409: dont bother assigning ignored second SSL_shutdown return value
No security impact
2017-03-06 14:46:06 +08:00
Andy Green
688b819112 coverity 177410: check seek return value inside fops-zip
Truncated or corrupted zip on server side would read garbage instead of fail.
2017-03-06 14:46:05 +08:00
Andy Green
21d83b44ea test-client: only take data from LWS_CALLBACK_RECEIVE_CLIENT_HTTP 2017-03-06 14:46:03 +08:00
Andy Green
19cc7acb24 fops-zip 2017-03-05 15:32:55 +08:00
Andy Green
2f4dfa4ea7 rx flow: handle child state change during parent cb 2017-03-05 15:32:47 +08:00
Andy Green
753f1d642c junzip: style and migrate header into private-libwebsockets.h
Also introduce CMake LWS_WITH_ZIP_FOPS defaulting to ON that builds junzip.c and
make sure this is exported in lws_config.h (included by libwebsockets.h)

Improve lws handling of stdint.h import or simulate it.
2017-03-03 09:19:14 +08:00
Andy Green
cb35969fce junzip: import from DomTerm 912add15f3d0aec
From https://github.com/PerBothner/DomTerm.git
2017-03-03 08:44:04 +08:00