platform/upstream/libwebsockets.git
8 years agoSeparate private defines in lws_config_private.h
Roger A. Light [Fri, 26 Jun 2015 09:40:54 +0000 (11:40 +0200)]
Separate private defines in lws_config_private.h

So we don't expose all HAVE_ macros and such to the world.

8 years agoFix potential memory leak
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Thu, 25 Jun 2015 15:51:07 +0000 (17:51 +0200)]
Fix potential memory leak

- Got rid of ifdef _WIN32 stuff adn moved to plat_ files instead.
- Also, check all calls to lws_zalloc, was potential failure on WIN32
- Made context destory enable to destroy a half inited context as well. This way I got get rid of some of the error handling complexity in libwebsocket_create_context
- Added TODOs for some potential problems I see where things might be leaking and such

8 years agoBugfix: SSL code should not free wsi
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Thu, 25 Jun 2015 15:14:44 +0000 (17:14 +0200)]
Bugfix: SSL code should not free wsi

The SSL code should not do lws_free(new_wsi) here. The caller should clean up the wsi in libwebsocket_close_and_free_session. Instead this can potentially cause a crash during that call.

Also if we fail to create the SSL for hte listener we should indicate failure to the caller.

8 years agoTurn off building windows installer, breaks everything
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Thu, 25 Jun 2015 11:57:16 +0000 (13:57 +0200)]
Turn off building windows installer, breaks everything

8 years agoFrom 0a0b9a6d02037e93dabadad5e04d39c1c6af0c96 Mon Sep 17 00:00:00 2001
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Wed, 24 Jun 2015 16:01:14 +0000 (18:01 +0200)]
From 0a0b9a6d02037e93dabadad5e04d39c1c6af0c96 Mon Sep 17 00:00:00 2001
Subject: [PATCH] Update Openssl lib version

8 years agoDon't mess with system types
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Wed, 24 Jun 2015 15:48:52 +0000 (17:48 +0200)]
Don't mess with system types

is no problem on a unix system with sys/types.h

However on Windows it will result in a #undef pid_t ... When libwebsockets is used with pthreads32 which typedefs pid_t itself, it will fail to build with some weird errors.

Also since we're exporitng these macros to the entire world via libwebsockets.h we should not define a VERSION macro. Which is defined improperly anyway.

8 years agoUse LWS_HAVE_ instead of just HAVE_
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Wed, 24 Jun 2015 14:46:02 +0000 (16:46 +0200)]
Use LWS_HAVE_ instead of just HAVE_

Since we include lws_config.h in the public headers, at least our HAVE_ macros should be kind of unique, so that we don't get redefinitions when used with other libraries using config files as well.

8 years agoFix windows build errors
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Mon, 8 Jun 2015 12:42:13 +0000 (14:42 +0200)]
Fix windows build errors

NSI installer errors causing failed windows builds

8 years agouse send MSG_NOSIGNAL
Andy Green [Mon, 12 Oct 2015 00:43:36 +0000 (08:43 +0800)]
use send MSG_NOSIGNAL

after

https://github.com/fancycode/libwebsockets/commit/810dbadd6b4cc3e192d050c81fc3ec8e652c41c6

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoFix shared library name for all platforms
Roger A. Light [Tue, 5 May 2015 20:02:08 +0000 (15:02 -0500)]
Fix shared library name for all platforms

This is a further fix to f1b1254, building on 26fd0d2.

Tidy up the LWS_WITH_SHARED and LWS_WITH_STATIC options.

8 years agoAllow using CyaSSL in stead of wolfSSL
ABruines [Sun, 9 Aug 2015 20:56:32 +0000 (22:56 +0200)]
Allow using CyaSSL in stead of wolfSSL

8 years agoUpdate http-link to wolfSSL in README.build.md
ABruines [Sun, 9 Aug 2015 16:51:12 +0000 (18:51 +0200)]
Update http-link to wolfSSL in README.build.md

8 years agoMove from CyaSSL to wolfSSL
Alexander Bruines [Sat, 8 Aug 2015 16:54:49 +0000 (18:54 +0200)]
Move from CyaSSL to wolfSSL

This patch lets libwebsockets use the lastest version of wolfSSL (the new name for CyaSSL).
The reason for the patch is that allthough wolfSSL provides compatibility headers for (old) projects using CyaSSL,
these are incomplete and do not work for libwebsockets.

The patch also fixes a typo in CMakeLists.txt where CYASSL_LIBRARIES was added to include_directories() instead of CYASSL_INCLUDE_DIRS.

Signed-off-by: ABruines <alexander.bruines@gmail.com>
8 years agofix #309. Receive large messages over WSS
=?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= [Wed, 19 Aug 2015 14:23:33 +0000 (16:23 +0200)]
fix #309. Receive large messages over WSS

Read the full incoming TLS/SSL record at once in libwebsocket_service_fd().

SSL_read() is called until no more pending data for the current record is buffered in SSL.
SSL_read() is never requested more than the pending data size for the current record
to ensure that the fd is not read again for new data, which would be copied in the SSL buffer otherwise.

8 years agoPass HTTP reject error code returned by server to client
MGadkari [Fri, 21 Aug 2015 10:45:36 +0000 (16:15 +0530)]
Pass HTTP reject error code returned by server to client

AG: added changelog and documentation comment

Signed-off-by: Gadkari Mugdha <mugdha.gadkari@siemens.com>
Reviewed-by: Roger Meier <r.meier@siemens.com>
HTTP reject error code returned by server during HTTP handshake is extracted and sent to the client application.
With this fix, the Connection error callback will include the HTTP reject status code and response frame received from server. This string passed in Connection error callback can be read or ignored by client application based on client application requirement

8 years agoFixing occasional failure of connect() on Windows
Frugality [Wed, 26 Aug 2015 18:31:28 +0000 (11:31 -0700)]
Fixing occasional failure of connect() on Windows

See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms737625(v=vs.85).aspx

Specifically the section reading:

"Until the connection attempt completes on a nonblocking socket, all subsequent calls to connect on the same socket will fail with the error code WSAEALREADY, and WSAEISCONN when the connection completes successfully. Due to ambiguities in version 1.1 of the Windows Sockets specification, error codes returned from connect while a connection is already pending may vary among implementations. As a result, it is not recommended that applications use multiple calls to connect to detect connection completion. If they do, they must be prepared to handle WSAEINVAL and WSAEWOULDBLOCK error values the same way that they handle WSAEALREADY, to assure robust operation."

8 years agoappveyor update windows openssl blob url
Andy Green [Sun, 11 Oct 2015 08:46:33 +0000 (16:46 +0800)]
appveyor update windows openssl blob url

Signed-off-by: Andy Green <andy.green@linaro.org>
8 years agoAdded callback for PONG responses
John Tarlton [Mon, 5 Oct 2015 10:35:52 +0000 (11:35 +0100)]
Added callback for PONG responses

8 years ago[PATCH] added timeout reset in serve_http_file_fragment to prevent timeout on big...
=?UTF-8?q?Dalibor=20Ba=C4=8Da?= [Sat, 10 Oct 2015 16:17:42 +0000 (18:17 +0200)]
[PATCH] added timeout reset in serve_http_file_fragment to prevent timeout on big files

9 years agocmake remove targets from install path
Andy Green [Wed, 29 Apr 2015 14:40:55 +0000 (22:40 +0800)]
cmake remove targets from install path

No package on my machine populates cmake files, I think it's extraneous.

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agocmake revert change to linux so
Andy Green [Wed, 29 Apr 2015 11:28:37 +0000 (19:28 +0800)]
cmake revert change to linux so

Put back the stanza fixing the .so name to what it has always been
on Linux, trashed in f1b12544

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoclose CLIENT_WAITING_CONNECT should callback CONNECTION_ERROR
Andy Green [Mon, 27 Apr 2015 11:07:38 +0000 (19:07 +0800)]
close CLIENT_WAITING_CONNECT should callback CONNECTION_ERROR

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoclose also enable pollout processing for post send close state
Andy Green [Sat, 25 Apr 2015 22:09:13 +0000 (06:09 +0800)]
close also enable pollout processing for post send close state

This should solve the 100% cpu at close problem reported by Bruce Perens

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoclose send close ack control packet type
Andy Green [Sat, 25 Apr 2015 21:32:03 +0000 (05:32 +0800)]
close send close ack control packet type

Noticed by Andrey Pokrovskiy

Close processing reused ping processing to save and send the payload,
and sets a flag to know it's close, but forgot to change the control
packet accordingly.

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH] Multiple changes in the build process
wonder-mice [Wed, 22 Apr 2015 17:52:13 +0000 (10:52 -0700)]
Subject: [PATCH] Multiple changes in the build process

* Default CMAKE_BUILD_TYPE to Release
* Use CMAKE_BUILD_TYPE to define _DEBUG (NDEBUG is more standard though,
  but cmake defines it)
* Drop LWS_WITHOUT_DEBUG (use CMAKE_BUILD_TYPE for that)
* Drop LWS_NO_EXTERNAL_POLL (was not used)
* Drop CMAKE_BUILD (CMake is the only build system now)
* Add LWS_WITH_STATIC and LWS_WITH_SHARED to choose what version(s) to
  build
* Add LWS_XXX_LIBRARIES and LWS_XXX_INCLUDE_DIRS for each library
  dependency (zlib, openssl, libev, cyassl)
* Support setting of XXX_LIBRARIES, XXX_LIBRARIES and XXX_INCLUDE_DIRS
  by parent project (when included with add_subdirectory())
* Rename LWS_USE_EXTERNAL_ZLIB to LWS_USE_BUNDLED_ZLIB and default it to
  NO (since it's Windows only)
* Default LWS_WITHOUT_DAEMONIZE to NO (since network lib shouldn't know
  how to do it anyway)
* Rename config.h.cmake to lws_config.h.in
* Rename shared library to websockets_shared so linker will not be
  confused
* Fix inline keyword detection in clang
* Explicitly set MACOSX_RPATH to YES on MacOS

9 years agoSubject: [PATCH] Fix unused n variable warning in http2.c
wonder-mice [Wed, 22 Apr 2015 23:30:45 +0000 (16:30 -0700)]
Subject: [PATCH] Fix unused n variable warning in http2.c

9 years agoSubject: [PATCH] Add missing lib/header.c file
wonder-mice [Wed, 22 Apr 2015 18:35:37 +0000 (11:35 -0700)]
Subject: [PATCH] Add missing lib/header.c file

File was lost during merge to upstream.

9 years agoSubject: [PATCH] Be quite when executing openssl commands
wonder-mice [Wed, 22 Apr 2015 20:17:53 +0000 (13:17 -0700)]
Subject: [PATCH] Be quite when executing openssl commands

9 years agoFrom 04da2ccd1e8c5b582c4e2a77ee53f929ae8f22a0 Mon Sep 17 00:00:00 2001
wonder-mice [Wed, 22 Apr 2015 07:16:57 +0000 (00:16 -0700)]
From 04da2ccd1e8c5b582c4e2a77ee53f929ae8f22a0 Mon Sep 17 00:00:00 2001
Subject: [PATCH] Always include lws_config.h since now we have only CMake
 build

9 years agoSubject: [PATCH] Fix broken libev support in client mode
wonder-mice [Wed, 22 Apr 2015 18:27:45 +0000 (11:27 -0700)]
Subject: [PATCH] Fix broken libev support in client mode

9 years agorefactor allow http parse also for client
wonder-mice [Wed, 22 Apr 2015 21:37:46 +0000 (05:37 +0800)]
refactor allow http parse also for client

9 years agoSubject: [PATCH] Don't fail on non-existing files
Joakim Soderberg [Tue, 21 Apr 2015 14:56:11 +0000 (16:56 +0200)]
Subject: [PATCH] Don't fail on non-existing files

9 years agoSubject: [PATCH] Don't build installer on noserver build.
Joakim Soderberg [Tue, 21 Apr 2015 14:26:44 +0000 (16:26 +0200)]
Subject: [PATCH] Don't build installer on noserver build.

Building the installer like this is a bad idea... Better to move it into
the CMakeLists.txt and be aware of what is being build and so on using
CPack.

9 years agoSubject: [PATCH] Fix windows build
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Tue, 21 Apr 2015 12:43:38 +0000 (14:43 +0200)]
Subject: [PATCH] Fix windows build

New version of OpenSSL

9 years agoEnsure proper cleanup is performed if last websocket is
Joe Kilner [Tue, 21 Apr 2015 09:41:36 +0000 (10:41 +0100)]
Ensure proper cleanup is performed if last websocket is
 closed.

9 years agoFix broken libev support in client mode
Pokrovskiy [Tue, 21 Apr 2015 07:53:59 +0000 (00:53 -0700)]
Fix broken libev support in client mode

Maybe it will be better to move all lws_libev_io() inside
lws_change_pollfd() to avoid similar problems in future.
The same for lws_libev_accept() and insert_wsi_socket_into_fds().

9 years agoclose reply must use writable control reply path
Andy Green [Fri, 17 Apr 2015 12:29:58 +0000 (20:29 +0800)]
close reply must use writable control reply path

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoclient error on timeout before connection
Andy Green [Thu, 16 Apr 2015 11:55:42 +0000 (19:55 +0800)]
client error on timeout before connection

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agowindows check for NULL getprotobyname
Andy Green [Wed, 15 Apr 2015 20:24:38 +0000 (04:24 +0800)]
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>
9 years agotimeout counts as pernmanently unusable close
Andy Green [Sun, 12 Apr 2015 00:17:26 +0000 (08:17 +0800)]
timeout counts as pernmanently unusable close

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoclient getaddrinfo valgrind fix
Danomi Czaski [Fri, 10 Apr 2015 23:00:51 +0000 (07:00 +0800)]
client getaddrinfo valgrind fix

Signed-off-by: Danomi Czaski <djczaski@gmail.com>
9 years agochanged expected shared lib version from 4.0.0 to 5 in spec file
brobits [Wed, 4 Mar 2015 21:36:28 +0000 (15:36 -0600)]
changed expected shared lib version from 4.0.0 to 5 in spec file

9 years agoparser restrict unknown header paranoia to server methods
Andy Green [Tue, 7 Apr 2015 00:19:30 +0000 (08:19 +0800)]
parser restrict unknown header paranoia to server methods

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agotest echo put proper origin
Andy Green [Mon, 6 Apr 2015 23:52:23 +0000 (07:52 +0800)]
test echo put proper origin

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoclose cover flush stored send with timeout
Andy Green [Tue, 31 Mar 2015 21:34:18 +0000 (05:34 +0800)]
close cover flush stored send with timeout

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agounsigned char by default compiler compatibility
Andy Green [Mon, 30 Mar 2015 10:56:52 +0000 (18:56 +0800)]
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>
9 years agospecfile openssl devel only needed on buildrequires
Andy Green [Mon, 30 Mar 2015 10:33:06 +0000 (18:33 +0800)]
specfile openssl devel only needed on buildrequires

https://github.com/warmcat/libwebsockets/issues/259

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoprepare for v1.4
Andy Green [Sat, 28 Mar 2015 03:35:40 +0000 (11:35 +0800)]
prepare for v1.4

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agocontext destroy just kill wsis ugh add missing bit
Andy Green [Sat, 28 Mar 2015 02:35:53 +0000 (10:35 +0800)]
context destroy just kill wsis ugh add missing bit

Unsaved file...

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoset server listening wsi use_ssl status
Jose Luis Millan [Sat, 28 Mar 2015 02:20:50 +0000 (10:20 +0800)]
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

9 years agocontext destroy just kill wsis
Andy Green [Tue, 24 Mar 2015 17:53:58 +0000 (01:53 +0800)]
context destroy just kill wsis

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoping client ping handling use same infrastructure as server
Andy Green [Tue, 24 Mar 2015 13:22:52 +0000 (21:22 +0800)]
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>
9 years agoping allow zero length PING
Andy Green [Tue, 24 Mar 2015 13:07:01 +0000 (21:07 +0800)]
ping allow zero length PING

Part of

https://github.com/warmcat/libwebsockets/issues/256

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH] Windows installer related fixes.
Roger A. Light [Tue, 10 Mar 2015 16:53:16 +0000 (16:53 +0000)]
Subject: [PATCH] Windows installer related fixes.

Remove incorrectly committed cpack changes.
Fix call to makensis.
Update README filenames.

9 years agodocumentation add info http_proxy members
Andy Green [Wed, 11 Mar 2015 00:35:15 +0000 (08:35 +0800)]
documentation add info http_proxy members

From https://libwebsockets.org/trac/libwebsockets/ticket/104

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH 1/2] fix win32 context memory leak
banthonywalker [Fri, 6 Mar 2015 17:34:57 +0000 (18:34 +0100)]
Subject: [PATCH 1/2] fix win32 context memory leak

9 years agowindows installer missing quote
Andy Green [Tue, 10 Mar 2015 13:39:45 +0000 (21:39 +0800)]
windows installer missing quote

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoAdd Windows installer file and configure appveyor to create it
Roger A. Light [Mon, 9 Mar 2015 22:02:59 +0000 (22:02 +0000)]
Add Windows installer file and configure appveyor to create it

Also update OpenSSL on Windows to latest version.

9 years agotest server only mention pollfd if EXTERNAL_POLL
Andy Green [Thu, 5 Mar 2015 09:06:16 +0000 (17:06 +0800)]
test server only mention pollfd if EXTERNAL_POLL

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoclean remove x perm on two sources
Andy Green [Wed, 4 Mar 2015 11:21:40 +0000 (19:21 +0800)]
clean remove x perm on two sources

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agouse initgroups in plat unix
Andy Green [Wed, 4 Mar 2015 08:16:41 +0000 (16:16 +0800)]
use initgroups in plat unix

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH] call lws_plat_inet_ntop instead of inet_ntop
banthonywalker [Sat, 28 Feb 2015 13:30:09 +0000 (14:30 +0100)]
Subject: [PATCH] call lws_plat_inet_ntop instead of inet_ntop

9 years agoLWS_WITHOUT_DEBUG fix unused var
Andy Green [Thu, 19 Feb 2015 23:37:20 +0000 (07:37 +0800)]
LWS_WITHOUT_DEBUG fix unused var

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH] Simplify soversion.
Roger Light [Tue, 17 Feb 2015 10:06:58 +0000 (10:06 +0000)]
Subject: [PATCH] Simplify soversion.

9 years agoFrom 03b93ec864c29dfbc41f2adbdf1b639f5403c95f Mon Sep 17 00:00:00 2001
Johan Simonsson [Sun, 4 Jan 2015 11:15:23 +0000 (11:15 +0000)]
From 03b93ec864c29dfbc41f2adbdf1b639f5403c95f Mon Sep 17 00:00:00 2001
Subject: [PATCH] Added c include

Fixes #220 and #223

9 years agoclient avoid double free on error path
Andy Green [Sat, 31 Jan 2015 23:19:46 +0000 (07:19 +0800)]
client avoid double free on error path

via dj1yfk on trac #99

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH] Fix bug parsing unknown headers.
Drew Noakes [Fri, 30 Jan 2015 12:04:43 +0000 (12:04 +0000)]
Subject: [PATCH] Fix bug parsing unknown headers.

Bug was introduced in 49f72aa45.

9 years agowin32 use hashtable for fd management
Bud Davis [Fri, 30 Jan 2015 02:13:01 +0000 (10:13 +0800)]
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>
9 years agossl pendding buffered reads dont dereference first time
Andy Green [Fri, 30 Jan 2015 02:33:00 +0000 (10:33 +0800)]
ssl pendding buffered reads dont dereference first time

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agossl pending buffered reads unbreak NO_SSL
Andy Green [Thu, 29 Jan 2015 01:42:22 +0000 (09:42 +0800)]
ssl pending buffered reads unbreak NO_SSL

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agossl pending buffered reads use linked list
Andy Green [Thu, 29 Jan 2015 00:36:18 +0000 (08:36 +0800)]
ssl pending buffered reads use linked list

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agogethostbyname removal from lws get peer addresses
Andy Green [Wed, 28 Jan 2015 13:03:49 +0000 (21:03 +0800)]
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>
9 years agoCallback with reason LWS_CALLBACK_CLOSED_HTTP when HTTP closed before serve.
Drew Noakes [Tue, 27 Jan 2015 20:15:13 +0000 (04:15 +0800)]
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.

9 years agoAdd compiler checking for visibility flag
Steven Lai [Tue, 27 Jan 2015 11:46:26 +0000 (19:46 +0800)]
Add compiler checking for visibility flag

Signed-off-by: Steven Lai <steven.lai@liricco.com>
9 years agogetifaddrs needs private libwebsockets.h
Steven Y Lai [Mon, 26 Jan 2015 12:04:34 +0000 (20:04 +0800)]
getifaddrs needs private libwebsockets.h

via trac

Signed-off-by: Steven Y Lai <stevenylai@INVALID.com>
9 years agoplat unix 64 bit timestamps on 32-bit os
Imo Farcher [Mon, 26 Jan 2015 07:39:36 +0000 (15:39 +0800)]
plat unix 64 bit timestamps on 32-bit os

Signed-off-by: Imo Farcher <ifar@gmx.net>
9 years agoAdd PATCH, PUT, DELETE methods
Quinlan Pfiffer [Sun, 11 Jan 2015 03:01:52 +0000 (19:01 -0800)]
Add PATCH, PUT, DELETE methods

AG: rewrite method code to use method arrays

9 years agocmake ipv6 default to off
Quinlan Pfiffer [Mon, 26 Jan 2015 03:24:03 +0000 (11:24 +0800)]
cmake ipv6 default to off

Signed-off-by: Quinlan Pfiffer <qpfiffer@gmail.com>
9 years agoSubject: [PATCH] Fix error handling when calling "REQUIRES PRIVATE KEY"
=?UTF-8?q?Christoph=20M=C3=BCllner?= [Sat, 24 Jan 2015 14:55:17 +0000 (15:55 +0100)]
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.

9 years agoSubject: [PATCH] Fix deflate-frame extension TX log statement
nsitter [Sat, 24 Jan 2015 16:43:33 +0000 (10:43 -0600)]
Subject: [PATCH] Fix deflate-frame extension TX log statement

9 years agoSubject: [PATCH] New OpenSSL version for appveyor build!
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Sat, 24 Jan 2015 15:42:57 +0000 (16:42 +0100)]
Subject: [PATCH] New OpenSSL version for appveyor build!

9 years agofix #220. Add missing include statement for <cstdarg>
José Luis Millán [Tue, 16 Dec 2014 11:54:33 +0000 (12:54 +0100)]
fix #220. Add missing include statement for <cstdarg>

9 years agoSubject: [PATCH] Adds "REQUIRES PRIVATE KEY" callback
Octav Zlatior [Mon, 15 Dec 2014 15:29:15 +0000 (16:29 +0100)]
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.

9 years agoclean unmix declarations and code
Andy Green [Mon, 15 Dec 2014 07:08:13 +0000 (15:08 +0800)]
clean unmix declarations and code

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH] proxy protocol (version 1) parsing implementation
=?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= [Sun, 14 Dec 2014 04:13:43 +0000 (12:13 +0800)]
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

9 years agoSubject: [PATCH] add user context pointer to the protocol structure
Neal Horman [Thu, 11 Dec 2014 00:59:04 +0000 (18:59 -0600)]
Subject: [PATCH] add user context pointer to the protocol structure

9 years agoSubject: [PATCH] add _lws_logv to make loging accessible to other wrappers.
Neal Horman [Thu, 11 Dec 2014 00:50:28 +0000 (18:50 -0600)]
Subject: [PATCH] add _lws_logv to make loging accessible to other wrappers.
 use _lws_logv in _lws_log

9 years agoimprove c++ compatibility
Neil Horman [Sat, 13 Dec 2014 06:15:48 +0000 (14:15 +0800)]
improve c++ compatibility

Adapted by Joakim

9 years agoclient: fix verification of the accepted protocol
Alejandro Mery [Wed, 10 Dec 2014 15:32:44 +0000 (16:32 +0100)]
client: fix verification of the accepted protocol

to properly take ", *" as delimiter

Signed-off-by: Alejandro Mery <amery@geeks.cl>
9 years agoREADME: fix coverity link
Alejandro Mery [Sun, 7 Dec 2014 02:36:13 +0000 (03:36 +0100)]
README: fix coverity link

coverity link was pointing to the wrong project

Signed-off-by: Alejandro Mery <amery@geeks.cl>
9 years agolibev: clean cast abuse
Alejandro Mery [Sun, 7 Dec 2014 02:36:12 +0000 (03:36 +0100)]
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>
9 years agoadd container_of() macro
Alejandro Mery [Sun, 7 Dec 2014 02:36:11 +0000 (03:36 +0100)]
add container_of() macro

to be used to remove cast abuse and finding parent structs later

Signed-off-by: Alejandro Mery <amery@geeks.cl>
9 years agoSubject: [PATCH] Attempt at fixing Travis for OSX.
=?UTF-8?q?Joakim=20S=C3=B6derberg?= [Thu, 11 Dec 2014 16:49:31 +0000 (17:49 +0100)]
Subject: [PATCH] Attempt at fixing Travis for OSX.

Move install into external shell script. We cannot use apt-get on OSX, use brew instead... Also valgrind isn't used at the moment so skip intalling it.

9 years agoSubject: [PATCH] Fixes occasional segfault in lws_chage_pollfd
Octav Zlatior [Fri, 12 Dec 2014 16:33:27 +0000 (17:33 +0100)]
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

9 years agohttp2 remove some dead code
Andy Green [Wed, 10 Dec 2014 02:53:46 +0000 (10:53 +0800)]
http2 remove some dead code

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoNO_EXTENSION clean out handled var in handle_POLLOUT_event
Andy Green [Wed, 10 Dec 2014 02:28:46 +0000 (10:28 +0800)]
NO_EXTENSION clean out handled var in handle_POLLOUT_event

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoNO_SERVER_fix cosmetic warning
Andy Green [Wed, 10 Dec 2014 02:24:33 +0000 (10:24 +0800)]
NO_SERVER_fix cosmetic warning

Signed-off-by: Andy Green <andy.green@linaro.org>
9 years agoSubject: [PATCH] Fix the travis.yml to build everything
Joakim Soderberg [Tue, 9 Dec 2014 13:37:51 +0000 (14:37 +0100)]
Subject: [PATCH] Fix the travis.yml to build everything

When fixing the indentation for the coverity chagnes in 924bcfbc995e5c862216f6ad47a734a2c8f14370
the build matrix got turned off. This re-enables this.

Also change from using gcc/clang. What we want is to build on both Linux
and OSX. Not just run Linux with gcc+clang.

However to enable multi-os support one has to mail the travis support:
http://docs.travis-ci.com/user/multi-os/

"This feature needs to be enabled manually. If you wish to take advantage
of this feature, please send email to support@travis-ci.com, indicating
which repository you would like to have it enabled."

9 years agoSubject: [PATCH] Introduce lws_free2() helper to free and re-NULL pointers
Alejandro Mery [Thu, 4 Dec 2014 23:09:20 +0000 (00:09 +0100)]
Subject: [PATCH] Introduce lws_free2() helper to free and re-NULL pointers

Signed-off-by: Alejandro Mery <amery@geeks.cl>
9 years agoSubject: [PATCH] Use custom allocator
Alejandro Mery [Thu, 4 Dec 2014 22:59:35 +0000 (23:59 +0100)]
Subject: [PATCH] Use custom allocator

Signed-off-by: Alejandro Mery <amery@geeks.cl>