Andy Green
d3efcd9461
windows check for NULL getprotobyname
...
From maxkaro on trac #110
https://libwebsockets.org/trac/libwebsockets/ticket/110
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-04-16 04:24:38 +08:00
Andy Green
408f537975
timeout counts as pernmanently unusable close
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-04-12 08:17:26 +08:00
Danomi Czaski
7fb366a9ef
client getaddrinfo valgrind fix
...
Signed-off-by: Danomi Czaski <djczaski@gmail.com>
2015-04-11 07:00:51 +08:00
Andy Green
8fb338f71c
parser restrict unknown header paranoia to server methods
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-04-07 08:19:30 +08:00
Andy Green
9f02c5dc24
close cover flush stored send with timeout
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-04-01 05:34:18 +08:00
Andy Green
2a5774edca
unsigned char by default compiler compatibility
...
http://ml.libwebsockets.org/pipermail/libwebsockets/2015-March/001705.html
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-30 18:56:52 +08:00
Andy Green
bddb3dcce9
context destroy just kill wsis ugh add missing bit
...
Unsaved file...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-28 10:35:53 +08:00
Jose Luis Millan
45a04b6240
set server listening wsi use_ssl status
...
If the server option to allow non-ssl is enabled,
it will force this cleared when it sees that has happened
2015-03-28 10:20:50 +08:00
Andy Green
8ec7802935
context destroy just kill wsis
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-25 01:53:58 +08:00
Andy Green
106d4a8a50
ping client ping handling use same infrastructure as server
...
First part of this:
https://github.com/warmcat/libwebsockets/issues/256
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-24 21:22:52 +08:00
Andy Green
2fd6e6fb55
ping allow zero length PING
...
Part of
https://github.com/warmcat/libwebsockets/issues/256
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-24 21:07:01 +08:00
Andy Green
ec86b4e6c4
documentation add info http_proxy members
...
From https://libwebsockets.org/trac/libwebsockets/ticket/104
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-11 08:35:15 +08:00
banthonywalker
dd020b4b04
Subject: [PATCH 1/2] fix win32 context memory leak
2015-03-10 21:53:17 +08:00
Andy Green
c67dace4be
clean remove x perm on two sources
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-04 19:21:40 +08:00
Andy Green
3a9f79e693
use initgroups in plat unix
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-04 16:16:41 +08:00
banthonywalker
418a49b9e8
Subject: [PATCH] call lws_plat_inet_ntop instead of inet_ntop
2015-02-28 21:53:47 +08:00
Andy Green
93d947c924
LWS_WITHOUT_DEBUG fix unused var
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-02-20 07:37:20 +08:00
Johan Simonsson
bb87ac82d1
From 03b93ec864c29dfbc41f2adbdf1b639f5403c95f Mon Sep 17 00:00:00 2001
...
Subject: [PATCH] Added c include
Fixes #220 and #223
2015-02-04 19:35:47 +08:00
Andy Green
1dce6c06ea
client avoid double free on error path
...
via dj1yfk on trac #99
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-02-01 07:19:46 +08:00
Drew Noakes
2121e8a7fc
Subject: [PATCH] Fix bug parsing unknown headers.
...
Bug was introduced in 49f72aa45
.
2015-01-30 20:09:20 +08:00
Bud Davis
229bfec948
win32 use hashtable for fd management
...
At least some win32 uses an opaque pointer for fd that is not
an ordinal like it is in unix.
Resurrect the old hashtable management for that platform to use
instead, and introduce a helper to get the wsi from the fd "somehow".
Signed-off-by: Bud Davis <bdavis9659@gmail.com>
2015-01-30 10:48:57 +08:00
Andy Green
413b3a6c55
ssl pendding buffered reads dont dereference first time
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-01-30 10:33:00 +08:00
Andy Green
30edd910b6
ssl pending buffered reads unbreak NO_SSL
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-01-29 09:42:22 +08:00
Andy Green
5281560000
ssl pending buffered reads use linked list
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-01-29 08:36:18 +08:00
Andy Green
7e37d10e47
gethostbyname removal from lws get peer addresses
...
This replaces gethostbyname in libwebsockets_get_peer_addresses and
in the client handshake path.
There's one left in lws-plat-win but that can be done another time.
Let's see how much damage that did to the cross-platform and option
builds...
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-01-28 21:03:49 +08:00
Drew Noakes
6a779771f4
Callback with reason LWS_CALLBACK_CLOSED_HTTP when HTTP closed before serve.
...
If the remote HTTP client closes the connection before serving commences, the
only notification client code receives is LWS_CALLBACK_WSI_DESTROY. This commit
gives LWS_CALLBACK_CLOSED_HTTP as well, as would happen if HTTP serving had
already commenced.
2015-01-28 04:15:13 +08:00
Steven Y Lai
cee2a063e9
getifaddrs needs private libwebsockets.h
...
via trac
Signed-off-by: Steven Y Lai <stevenylai@INVALID.com>
2015-01-26 20:04:34 +08:00
Imo Farcher
97a748a2d0
plat unix 64 bit timestamps on 32-bit os
...
Signed-off-by: Imo Farcher <ifar@gmx.net>
2015-01-26 15:39:36 +08:00
Quinlan Pfiffer
49f72aa451
Add PATCH, PUT, DELETE methods
...
AG: rewrite method code to use method arrays
2015-01-26 11:25:13 +08:00
=?UTF-8?q?Christoph=20M=C3=BCllner?=
87840d18e6
Subject: [PATCH] Fix error handling when calling "REQUIRES PRIVATE KEY"
...
callback.
A recent patch in ssl.c introduced a callback for setting the
private key of the SSL context. This code contained a bug, which
resulted in lws_context_init_server_ssl() returning always
with a return value of 1, indicating an error.
This patch introduces the missing curly braces to fix the code's
intended behaviour.
2015-01-26 11:18:30 +08:00
nsitter
976d9ebbe8
Subject: [PATCH] Fix deflate-frame extension TX log statement
2015-01-26 11:16:03 +08:00
José Luis Millán
080e6ddded
fix #220 . Add missing include statement for <cstdarg>
2014-12-16 22:13:53 +08:00
Octav Zlatior
cf5189614a
Subject: [PATCH] Adds "REQUIRES PRIVATE KEY" callback
...
In some situations the private key is not directly available via
filesystem (for example, when stored on a smartcard). If this is
the case, the user can set the private key filepath to NULL and
expect this callback reason to set the key directly via openSSL
library calls.
2014-12-16 08:47:37 +08:00
Andy Green
4edb452969
clean unmix declarations and code
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-15 15:08:13 +08:00
=?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?=
fdde0f0a03
Subject: [PATCH] proxy protocol (version 1) parsing implementation
...
The proxy line is dumped in the token buffer as any other HTTP header
Adapted by AG to move token id to be last in the parsed list
2014-12-14 12:13:43 +08:00
Neal Horman
b399237fe8
Subject: [PATCH] add user context pointer to the protocol structure
2014-12-13 14:21:30 +08:00
Neal Horman
98e491fdff
Subject: [PATCH] add _lws_logv to make loging accessible to other wrappers.
...
use _lws_logv in _lws_log
2014-12-13 14:18:27 +08:00
Neil Horman
fc98f9a4ca
improve c++ compatibility
...
Adapted by Joakim
2014-12-13 14:15:48 +08:00
Alejandro Mery
31f9eeb9d6
client: fix verification of the accepted protocol
...
to properly take ", *" as delimiter
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-13 14:00:42 +08:00
Alejandro Mery
95ab6ca557
libev: clean cast abuse
...
assuming that you can cast to the first field of an struct is very
risky
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-13 13:59:58 +08:00
Alejandro Mery
ead8afe8a1
add container_of() macro
...
to be used to remove cast abuse and finding parent structs later
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-13 13:58:34 +08:00
Octav Zlatior
d4dd69a254
Subject: [PATCH] Fixes occasional segfault in lws_chage_pollfd
...
* so it happens that sometimes lws_change_pollfd is called with
bad or incomplete data structures, mainly the context pointer
obtained from wsi->protocol is null or wsi->position_in_fds_table
is -1; checks have been added to avoid this condition
2014-12-13 12:17:59 +08:00
Andy Green
f48ddd2a55
http2 remove some dead code
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:53:46 +08:00
Andy Green
66ecc2538d
NO_EXTENSION clean out handled var in handle_POLLOUT_event
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:28:46 +08:00
Andy Green
a349367a0b
NO_SERVER_fix cosmetic warning
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:24:33 +08:00
Alejandro Mery
ac3ec39bb1
Subject: [PATCH] Introduce lws_free2() helper to free and re-NULL pointers
...
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:27:52 +08:00
Alejandro Mery
6ff28248aa
Subject: [PATCH] Use custom allocator
...
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:26:26 +08:00
Alejandro Mery
cdc9717be1
Subject: [PATCH] Add custom allocator support using the realloc() interface
...
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:25:24 +08:00
Michael Haberler
49d0ce17d5
Subject: [PATCH] serve_http_file: add feature test macro for API change
...
introduced in 917f43
2014-12-01 21:47:37 +08:00
Andy Green
62fe015455
revert 187
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-01 19:28:28 +08:00