Andy Green [Tue, 19 Apr 2016 01:10:08 +0000 (09:10 +0800)]
windows another uv_poll_init
Signed-off-by: Andy Green <andy@warmcat.com>
Lucas Terra [Mon, 18 Apr 2016 19:15:37 +0000 (16:15 -0300)]
Conditionally define snprintf on Windows
snprintf is already defined in MSVC 2015. If you redefine it <stdio.h> will cry about it and abort the compilation.
Roger A. Light [Mon, 18 Apr 2016 13:32:55 +0000 (14:32 +0100)]
Script and config to make tracking ABI/API changes easy.
AG: enhance the script a bit and fix the make instructions
Andy Green [Mon, 18 Apr 2016 09:26:14 +0000 (17:26 +0800)]
client http
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Sun, 17 Apr 2016 03:28:43 +0000 (11:28 +0800)]
polarssl implementation
Signed-off-by: Andy Green <andy@warmcat.com>
Lucas Terra [Sun, 17 Apr 2016 22:26:04 +0000 (19:26 -0300)]
Fix inet_ntop linking error on Windows
Andy Green [Fri, 15 Apr 2016 06:01:29 +0000 (14:01 +0800)]
plugin lws server status
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Sat, 16 Apr 2016 00:40:35 +0000 (08:40 +0800)]
vh doubly linked list for wsi on same protocol
This trades off a couple of wsi pointers for vastly increased speed
for the callback when writeable "all protocol" variants when there
are many kinds of wsi active.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 15 Apr 2016 12:09:36 +0000 (20:09 +0800)]
redirects need fake content metadata
Chrome deals with it without on desktop, but Android chrome
waits for the connection to time out before actioning the
redirect, since it feels there might be html payload coming.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 15 Apr 2016 05:33:52 +0000 (13:33 +0800)]
context settable server string
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 15 Apr 2016 04:29:06 +0000 (12:29 +0800)]
lws normalize http response
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 15 Apr 2016 04:00:23 +0000 (12:00 +0800)]
lws access log option and lwsws conf
This adds the ability to store apache-compatible logs to a file given at
vhost-creation time.
lwsws conf can set it per-vhost using "access-log": "<filepath>"
The feature defaults to disabled at cmake, it can be set independently but
LWS_WITH_LWSWS set it on.
Signed-off-by: Andy Green <andy@warmcat.com>
Justin Chen [Thu, 14 Apr 2016 13:40:53 +0000 (21:40 +0800)]
recv treat zero return as error
https://github.com/warmcat/libwebsockets/issues/475
Andy Green [Thu, 14 Apr 2016 07:07:44 +0000 (15:07 +0800)]
json dump vhost
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 15 Apr 2016 05:02:25 +0000 (13:02 +0800)]
vhost collect rx tx stats
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 14 Apr 2016 04:37:21 +0000 (12:37 +0800)]
strict transport security vhost option flag and lwsws conf support
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 14 Apr 2016 04:18:33 +0000 (12:18 +0800)]
lwsws conf unix sockets support vhost conf option
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 14 Apr 2016 04:11:51 +0000 (12:11 +0800)]
unix sockets make vhost option
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 14 Apr 2016 03:50:05 +0000 (11:50 +0800)]
lwsws conf move interface to be vhost attribute
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 14 Apr 2016 07:09:01 +0000 (15:09 +0800)]
vhost should have his own options
Signed-off-by: Andy Green <andy@warmcat.com>
Alexander Bruines [Wed, 13 Apr 2016 20:17:05 +0000 (22:17 +0200)]
Add testapps support for client certs and CRLs
AG: plumb into cmake to avoid travis mac blowing up
Yeonjun Lim [Sun, 10 Apr 2016 04:19:16 +0000 (13:19 +0900)]
Support for abstract socket
Yeonjun Lim [Thu, 31 Mar 2016 05:47:02 +0000 (22:47 -0700)]
Add unix domain socket
Andy Green [Tue, 12 Apr 2016 08:26:03 +0000 (16:26 +0800)]
vhost keepalive timeout
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Tue, 12 Apr 2016 01:02:32 +0000 (09:02 +0800)]
ssl server init failure info
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Mon, 11 Apr 2016 23:59:53 +0000 (07:59 +0800)]
ssl store vhost in ssl private data not context
Only used by the ssl verify callback
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Wed, 13 Apr 2016 03:42:53 +0000 (11:42 +0800)]
cgi post
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Sun, 10 Apr 2016 01:33:54 +0000 (09:33 +0800)]
http2 update integration
https://github.com/warmcat/libwebsockets/issues/489
This
1) fixes the vhost changes on master
2) works around the ah pool changes
3) fixes some other build problems that appeared
4) hacks out physical flow control for internal streams
5) updates the advertised protocol to h2 needed by, eg, chrome 51
That gets it able to serve small (<4K, ie, one packet) files over http2
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Wed, 13 Apr 2016 03:49:07 +0000 (11:49 +0800)]
lwsws cgi integration
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Sat, 9 Apr 2016 01:32:01 +0000 (09:32 +0800)]
lwsws specifically signed char return lejp
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 8 Apr 2016 23:22:40 +0000 (07:22 +0800)]
lwsws conf and plugins convert to libuv apis
After discussion here
https://libwebsockets.org/pipermail/libwebsockets/2016-April/002268.html
scandir usage in
- lwsws conf.c
- lws plugin support
and
- lws plugin apis for dl
are converted to us libuv apis so they can work cross-platform easily.
lws itself remains not requiring libuv, although it's an option.
- LWS_WITH_LWSWS
- LWS_WITH_PLUGINS
now force LWS_WITH_LIBUV if selected... both of these are new features
only in master atm and both are off by default in CMake.
There's a complication libuv can be too old to offer the necessary apis,
this is the case in Travis Trusty instance. In that case, UV_VERSION_MAJOR ==0,
then the unix-only plugin implementation is used instead.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Tue, 12 Apr 2016 08:41:31 +0000 (16:41 +0800)]
vhost if explicit vhosts only enable protocols with pvo mentions
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 8 Apr 2016 10:30:45 +0000 (18:30 +0800)]
lwsws redirect and correct vhost selection before accept
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 8 Apr 2016 05:25:34 +0000 (13:25 +0800)]
lwsws protocol filter and options
Signed-off-by: Andy Green <andy@warmcat.com>
Meir Yanovich [Fri, 8 Apr 2016 08:11:27 +0000 (16:11 +0800)]
windows snprintf is _snprintf
https://github.com/warmcat/libwebsockets/issues/411#issuecomment-
207290650
Galen Ma [Fri, 8 Apr 2016 08:02:59 +0000 (16:02 +0800)]
android fix rlimit
https://github.com/warmcat/libwebsockets/issues/488
Andy Green [Fri, 8 Apr 2016 01:45:49 +0000 (09:45 +0800)]
extensions add api for user code option manipulation
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 7 Apr 2016 02:08:35 +0000 (10:08 +0800)]
urldecode forbid malformed
And update attack.sh to confirm the new test cases
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Wed, 6 Apr 2016 19:10:54 +0000 (03:10 +0800)]
plugins also link lwsws against websockets_shared
Signed-off-by: Andy Green <andy@warmcat.com>
Denis Osvald [Wed, 6 Apr 2016 16:07:37 +0000 (18:07 +0200)]
plugins link libwebsockets dynamically
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
Andy Green [Wed, 6 Apr 2016 08:15:40 +0000 (16:15 +0800)]
plugins
This adds support for dynamically loaded plugins at runtime, which
can expose their own protocols or extensions transparently.
With these changes lwsws defaults to OFF in cmake, and if enabled it
automatically enables plugins and libuv support.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Wed, 6 Apr 2016 01:23:16 +0000 (09:23 +0800)]
libuv add idle processing to force service where needed
https://github.com/warmcat/libwebsockets/issues/485
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Wed, 6 Apr 2016 00:36:30 +0000 (08:36 +0800)]
lws_service_adjust_timeout optimize
Make it exit quicker if something is pending
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Tue, 5 Apr 2016 11:43:07 +0000 (19:43 +0800)]
revert 622d9f2 ssl pending handcrank
https://github.com/warmcat/libwebsockets/issues/483
Signed-off-by: Andy Green <andy@warmcat.com>
Meir Yanovich [Tue, 5 Apr 2016 11:19:46 +0000 (19:19 +0800)]
win32 libuv build notes
Meir Yanovich [Tue, 5 Apr 2016 11:15:34 +0000 (19:15 +0800)]
win32 needs strange strftime args
Andy Green [Fri, 1 Apr 2016 23:36:17 +0000 (07:36 +0800)]
uri processing reject paths not starting with slash
https://github.com/warmcat/libwebsockets/issues/481
Return 403 Forbidden if we don't end up with a uri path starting with /
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 1 Apr 2016 08:57:00 +0000 (16:57 +0800)]
libuv report init failure
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 1 Apr 2016 08:44:01 +0000 (16:44 +0800)]
test server libevuv set LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT on ssl
Signed-off-by: Andy Green <andy@warmcat.com>
Meir Yanovich [Fri, 1 Apr 2016 07:56:48 +0000 (15:56 +0800)]
libuv win32 fixes 2
https://github.com/warmcat/libwebsockets/issues/411#issuecomment-
204284368
Andy Green [Fri, 1 Apr 2016 00:43:13 +0000 (08:43 +0800)]
test server align rxbuf with permessage deflate rx buf size
Add a test html button that will send 9KB of junk to confirm it
https://github.com/warmcat/libwebsockets/issues/480
permessage-deflate now checks the protocol rx buffer size for being
>=128, if not, permessage-deflate is disabled on that connection.
If it is >=128 but less than the zlib decompress buffer size, the
zlib decompress buffer size for that connection is reduced to the
nearest power of two of the protocol rx buf size.
To test this, dumb_increment is left violating the >= 128 rx buffer
size and permessage-deflte can be seen to be disabled on his
connections in the test html.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 31 Mar 2016 12:11:53 +0000 (20:11 +0800)]
libuv win32 fixes
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Thu, 31 Mar 2016 00:33:47 +0000 (08:33 +0800)]
cmake libuv fix include forcing path
Signed-off-by: Andy Green <andy@warmcat.com>
V.Krishn [Sun, 8 Mar 2015 09:35:27 +0000 (09:35 +0000)]
Fix build with musl libc
Fix building libwebsockets with the musl C libary.
<sys/cdefs.h> is an internal glibc header and should be avoided in user code.
__P() was used for compatibility with some old K&R C compilers, when there were
no prototypes (which were introduced to C with C89). As supporting legacy
non-ANSI compilers is nowadays not necessary anymore get rid of the unnecessary
function prototype using __P().
Andy Green [Mon, 28 Mar 2016 11:58:02 +0000 (19:58 +0800)]
mbedtls and polarssl first part
polarssl is the old name for mbedtls. Unfortunately the two are confused in eg,
Fedora. For our purposes, polarssl or mbedtls < 2.0 has includes in
/usr/include/polarssl and polarssl_ apis and we call that "polarssl".
polarssl or mbedtls >=2.0 has includes in /usr/include/mbedtls and mbedtls_ apis,
we call that "mbedtls".
This has to be spelled out clearly because eg Fedora has a package "mbedtls" which
is 1.3.x and has the polarssl_ apis and include path. We will deal with that as
"polarssl" despite the package name then.
This patch lets you use LWS_USE_POLARSSL or LWS_USE_MBEDTLS and set the include and
library path like this
cmake .. -DLWS_USE_POLARSSL=1 -DLWS_POLARSSL_INCLUDE_DIRS=/usr/include -DLWS_POLARSSL_LIBRARIES=/usr/lib64/libmbedtls.so.9
This patch adds the cmake support and adapts [private-]libwebsockets.h but doesn't
modify the apis in ssl[-*].c yet.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Tue, 29 Mar 2016 10:27:32 +0000 (18:27 +0800)]
revert cmake remove targets from install path
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Tue, 29 Mar 2016 00:51:42 +0000 (08:51 +0800)]
ssl split out common server and client ssl sources
Most of ssl.c is under a #ifdef for client or server disabled...
let's get rid of it and have CMake just build the appropriate
files
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Mon, 28 Mar 2016 04:43:55 +0000 (12:43 +0800)]
ssl migrate client pieces to ssl.c
Some ssl-specific code was still hiding out in client.c instead of
going in ssl.c
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Mon, 28 Mar 2016 02:12:37 +0000 (10:12 +0800)]
lwsws Libwebsockets Web Server
This makes a start on the LibWebSockets WebServer.
The app cmake build support and JSON config parsing are implemented and
the app can start, create the vhosts, listen and serve file:// mounts on
them.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Mon, 28 Mar 2016 02:10:43 +0000 (10:10 +0800)]
introduce vhosts
This patch splits out some lws_context members into a new lws_vhost struct.
- ssl state and options per vhost
- SSL_CTX for serving and client per vhost
- protocols[] per vhost
- extensions[] per vhost
lws_context maintains a linked list of lws_vhosts.
The same lws_context_creation_info struct is used to regulate both the
context creation and to create vhosts: for backward compatibility if you
didn't provide the new LWS_SERVER_OPTION_EXPLICIT_VHOSTS option, then
a default vhost is created at context creation time using the same info
data as the context itself.
If you will have multiple vhosts though, you should give the
LWS_SERVER_OPTION_EXPLICIT_VHOSTS option at context creation time,
create the context first and then the vhosts afterwards using
lws_create_vhost(contest, &info);
Although there is a lot of housekeeping to implement this change, there
is almost no additional overhead if you don't use multiple vhosts and
very little api impact (no changes to test apps).
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Wed, 23 Mar 2016 05:04:58 +0000 (13:04 +0800)]
SNI for server side: receive callback
This takes tha callback and binds the lws_context to the SSL_CTX so we can
get the lws_context in the callback.
It just logs the incoming hostname atm.
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 25 Mar 2016 13:00:41 +0000 (21:00 +0800)]
http2 build with alpn capable ssl no debug
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Wed, 23 Mar 2016 01:22:11 +0000 (09:22 +0800)]
LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT to default to runtime ssl disable
https://github.com/warmcat/libwebsockets/issues/468
Adds lws_check_opt() to regularize multibit flag checking.
There's a new context creation flag LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT,
this is included automatically if you give any other SSL-related option flag.
If you give no SSL-related option flag, nor this one directly, then even
though SSL support may be compiled in, it is never initialized nor used for the
whole lifetime of the lws context.
Conversely in order to prepare the context to use SSL, even though, eg, you
are not listening on SSL but will use SSL client connections later, you can
give this flag explicitly to make sure SSL is initialized.
Signed-off-by: Andy Green <andy@warmcat.com>
Denis Osvald [Tue, 22 Mar 2016 13:04:15 +0000 (14:04 +0100)]
libuv: sigint API cleanup
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
Denis Osvald [Tue, 22 Mar 2016 14:19:10 +0000 (15:19 +0100)]
libuv: handle signals only if requested
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
Andy Green [Sun, 20 Mar 2016 03:55:25 +0000 (11:55 +0800)]
cgi env
Improve cgi support so it's capable of running cgit
Andy Green [Sun, 20 Mar 2016 03:59:53 +0000 (11:59 +0800)]
proxy rewrite
If you enable -DLWS_WITH_HTTP_PROXY=1 at cmake, the test server has a
new URI path http://localhost:7681/proxytest If you visit here, a client
connection to http://example.com:80 is spawned, and the results piped on
to your original connection.
Also with LWS_WITH_HTTP_PROXY enabled at cmake, lws wants to link to an
additional library, "libhubbub". This allows lws to do html rewriting on the
fly, adjusting proxied urls in a lightweight and fast way.
Andy Green [Sun, 13 Mar 2016 08:44:19 +0000 (16:44 +0800)]
client chunked transfer encoding
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 8 Mar 2016 23:41:59 +0000 (07:41 +0800)]
cgi header processing
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Fri, 18 Mar 2016 23:43:22 +0000 (07:43 +0800)]
b64decode correct decode of some strings
https://github.com/warmcat/libwebsockets/issues/467
Signed-off-by: Andy Green <andy@warmcat.com>
Andy Green [Fri, 18 Mar 2016 15:55:59 +0000 (23:55 +0800)]
clean signed mismatches and protect ssl specific code
https://github.com/warmcat/libwebsockets/issues/466
Signed-off-by: Andy Green <andy.green@linaro.org>
Alex Hultman [Fri, 18 Mar 2016 07:02:27 +0000 (15:02 +0800)]
lws_write restrict chunk size
Andy Green [Thu, 17 Mar 2016 07:26:49 +0000 (15:26 +0800)]
ssl option for auto redir to https
Signed-off-by: Andy Green <andy.green@linaro.org>
Alex Hultman [Thu, 17 Mar 2016 01:34:15 +0000 (09:34 +0800)]
Optimize payload exhaustion
https://github.com/warmcat/libwebsockets/pull/462
AG refactor and do loop unrolling
Andy Green [Thu, 17 Mar 2016 00:57:33 +0000 (08:57 +0800)]
appveyor update 1.0.2g
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 15 Mar 2016 13:49:32 +0000 (21:49 +0800)]
clang fixes 1
https://github.com/warmcat/libwebsockets/issues/461
Signed-off-by: Andy Green <andy.green@linaro.org>
bjqiwei [Tue, 15 Mar 2016 08:24:58 +0000 (16:24 +0800)]
client perform WSI_CREATE callback
Andy Green [Sat, 12 Mar 2016 00:18:58 +0000 (08:18 +0800)]
socket interface bind generalize to lws_socket_bind
Move the socket bind to interface code out of server into
libwebsockets.c and make a private api for it.
Signed-off-by: Andy Green <andy.green@linaro.org>
Joakim Soderberg [Sat, 12 Mar 2016 00:37:36 +0000 (08:37 +0800)]
ssl ecdh adapt if missing ecdh.h include
https://github.com/warmcat/libwebsockets/issues/457
Andy Green [Wed, 9 Mar 2016 15:13:31 +0000 (23:13 +0800)]
client ext hdr skip if no arg
https://github.com/warmcat/libwebsockets/issues/453#event-
583227314
abnf does say has to be at least one arg
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 9 Mar 2016 02:51:06 +0000 (10:51 +0800)]
release checklist specfile install soname
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 9 Mar 2016 02:50:25 +0000 (10:50 +0800)]
rpm specfile so install list bump
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Tue, 8 Mar 2016 23:44:49 +0000 (07:44 +0800)]
libev set foreign loop properly
After gaby64
https://github.com/warmcat/libwebsockets/issues/455
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Fri, 4 Mar 2016 02:53:51 +0000 (10:53 +0800)]
windows deal with no snprintf
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 29 Feb 2016 23:19:01 +0000 (07:19 +0800)]
test server http proxy
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Wed, 2 Mar 2016 01:17:22 +0000 (09:17 +0800)]
add explicit parent child wsi relationships
wsi can have a full tree relationship with each other using
linked lists. closing the parent ensures the children are
closed first.
Convert cgi to use this instead of his cgi-specific sub-wsi
management.
Signed-off-by: Andy Green <andy.green@linaro.org>
Alex Hultman [Wed, 2 Mar 2016 10:39:37 +0000 (11:39 +0100)]
libuv.c: Service fd with LWS_POLLHUP on poll errors
Ondraco [Mon, 29 Feb 2016 10:48:55 +0000 (18:48 +0800)]
wince minor adaptations
https://github.com/warmcat/libwebsockets/issues/444
Daniel Santos [Mon, 29 Feb 2016 23:24:28 +0000 (07:24 +0800)]
satisfy apparently bogus compiler warning somewhere
Andy Green [Mon, 29 Feb 2016 05:18:30 +0000 (13:18 +0800)]
client support http without ws
Server support for http[s] as well as ws[s] is implicit.
But until now client only supported ws[s].
This allows the user code to pass an explicit http method
like "GET" in the connect_info, disabling the ws upgrade logic.
Then you can also use lws client as http client, not just ws.
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 29 Feb 2016 06:19:16 +0000 (14:19 +0800)]
client accept connection request even if no free ah
It can join the free ah list and pick up client connect processing
later when the ah becomes available; this simplifies the code
doing the request since he won't have to deal with unexpected
failures / retries based on dynamic ah availability.
To do this though we have to handle that the connect_info members
may not have scope that lets them still exist after we return from
the first connect call, we stash them in a malloc'd buffer so the
connect processing can have them much later even so.
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 29 Feb 2016 03:26:13 +0000 (11:26 +0800)]
release checklist ab
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 27 Feb 2016 03:42:22 +0000 (11:42 +0800)]
adopt readbuf do service
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 29 Feb 2016 02:34:29 +0000 (10:34 +0800)]
libuv when in use skip shutdown close phase
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Mon, 29 Feb 2016 02:10:42 +0000 (10:10 +0800)]
windows listen for pollhup
After Ondraco
https://github.com/warmcat/libwebsockets/issues/441
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sun, 28 Feb 2016 02:55:31 +0000 (10:55 +0800)]
ah move more_rx_waiting to wsi scope
Originally this was alright in wsi->u.hdr, because ah implied header
processing. But since we allowed ah to be held across http
keep-alive transactions if we saw we had more header data, it means
we were trying to read this union member out of scope after it had
transitioned.
Moving the more_rx_waiting member to be a 1-bit bifield in the wsi
solves it and lets us check the state any time later at http
transaction completion.
https://github.com/warmcat/libwebsockets/issues/441
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 27 Feb 2016 05:17:26 +0000 (13:17 +0800)]
test server libuv support status protocol
Signed-off-by: Andy Green <andy.green@linaro.org>
Andy Green [Sat, 27 Feb 2016 03:03:27 +0000 (11:03 +0800)]
libuv create 1Hz background timeout check
Signed-off-by: Andy Green <andy.green@linaro.org>
Kamil Rytarowski [Sat, 27 Feb 2016 02:18:43 +0000 (03:18 +0100)]
Don't include <sys/cdefs.h> for NetBSD
We needed it for the BSD symbol to be defined, while __NetBSD__ is defined
with a compiler.
Thanks Andy Green for the initial fix.
Signed-off-by: Kamil Rytarowski <n54@gmx.com>
Andy Green [Sat, 27 Feb 2016 01:34:28 +0000 (09:34 +0800)]
netbsd netinet include
Signed-off-by: Andy Green <andy.green@linaro.org>