David Galeano
a3a97d1acc
Ignoring linux build files
2013-01-09 15:46:11 +08:00
David Galeano
b42dcc7186
Use feature check rather than browser check.
2013-01-09 15:39:50 +08:00
David Galeano
aa0bc86143
Changed client handshake to use "Origin" instead of "Sec-WebSocket-Origin" as defined by RFC 6455 when using version 13 of the protocol.
2013-01-09 15:31:46 +08:00
David Galeano
cb19368e14
Fixed compiler warnings on Windows.
2013-01-09 15:29:00 +08:00
David Galeano
2915a80a5f
Added new status codes from RFC 6455.
2013-01-09 15:26:08 +08:00
David Galeano
aeb574870e
Fixed compiler warning on Windows.
2013-01-09 15:25:05 +08:00
Artem Baguinski
c451a4f4d5
required version of autoconf can be lower
2013-01-09 15:16:52 +08:00
David Galeano
d3ce131a78
Static variable is now const.
2013-01-09 15:14:31 +08:00
Andy Green
788c4a8fa8
add context construction option to skip server hostname lookup
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-22 12:29:57 +01:00
Andy Green
15e31f373d
add missing docs for new context user pointer
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-19 18:36:28 +08:00
Alon Levy
dc93b7f2e7
libwebsocket_service_fd: EAGAIN is harmless, treat like EINTR
...
Only tested on linux.
Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-19 18:27:40 +08:00
Alon Levy
0291eb3b95
libwebsocket_context: add userspace pointer for use before wsi creation
...
Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-19 18:27:19 +08:00
Alon Levy
e1be13d8b5
lib/Makefile.am: whitespace fix
...
Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-19 18:27:01 +08:00
Alon Levy
3147b027fd
add pkg-config file libwebsockets.pc
...
Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-19 18:26:22 +08:00
Anders Brander
88f8d5754c
Added test.html favicon.ico to EXTRA_DIST.
2012-10-17 20:26:44 +08:00
Anders Brander
4e6fe90030
Add missing .h files to sources.
2012-10-17 20:10:54 +08:00
Anders Brander
4ed9bb8288
Add kernel doc to extra_dist.
2012-10-17 20:10:49 +08:00
Andy Green
5e8967a54e
always taking an interest in ppid wont hurt
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-17 20:10:44 +08:00
Andy Green
7b6106214b
remove depcomp
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-07 20:44:02 +08:00
Andy Green
fa3f405d1d
stop being so fragile on socket lifecycle
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-07 20:40:35 +08:00
Andy Green
94c62c652c
use autogen.sh
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-06 15:17:01 +08:00
Andy Green
71e5369175
add not about autoreconf and libtoolize
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-07-20 13:00:12 +08:00
Andy Green
3928f6178a
restore accept error as closure signal
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-07-20 12:58:38 +08:00
Artem Baguinski
915316644c
check for prctl, poll parent PID if not present
...
this allows forking code to be used on non-linux systems
2012-07-20 10:04:45 +08:00
Paulo Roberto Urio
1e32663805
Fixing uninitialised memory
...
These were found with valgrind tool.
Signed-off-by: Paulo Roberto Urio <paulourio@gmail.com>
2012-06-04 10:52:19 +08:00
Paulo Roberto Urio
4144e83c9d
some toolchains need stddef
...
Signed-off-by: Paulo Roberto Urio <paulourio@gmail.com>
2012-06-04 09:04:33 +08:00
Andy Green
5513fe0577
add missing sa_data init to canonical hostname code
...
Shay noticed we're no longer initializing the initial lookup of
server canonical hostname correctly
Reported-by: Shay Zuker <shay@boxee.tv>
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-06-04 08:53:26 +08:00
Paulo Roberto Urio
1f680abb7d
Fixed segfault in libwebsocket_context_destroy.
...
When creating a context with NULL extensions list,
a segmentation fault was yelled when trying to
destroy the context. This checks if the
extension list is NULL before go through the list.
Signed-off-by: Paulo Roberto Urio <paulourio@gmail.com>
2012-06-04 08:40:28 +08:00
Tobias Maier
d1db83c650
sockets were left open if connection could not be
...
established resulting in a mass of unusable open file
descriptors
Signed-off-by: Tobias Maier <tobias.maier@netplace.com>
2012-05-30 12:46:42 +08:00
yuval tal
e59d477c07
link lz explicitly for mips
...
fix link error since libz is not linked in
Signed-off-by: yuval tal <yuvalt@boxee.tv>
2012-05-21 10:16:06 +08:00
Andrew Chambers
d5512179fc
null exception with null extensions list
...
I was under the impression extensions could be null, so heres a patch to fix this error in libwebsockets. Cheers!
Signed-off-by: Andrew Chambers <andrewchamberss@gmail.com>
--
2012-05-20 08:17:09 +08:00
Andy Green
13f7791d0c
refresh autotools stuff
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-20 08:17:02 +08:00
Andy Green
86e82ab22f
update test html now mozilla uses normal ws apis
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-03 12:48:14 +08:00
Andy Green
a69f051870
start migration to getnameinfo
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-03 12:32:38 +08:00
Ken Atherton
8360a47011
openssl allow connect multiple packets for SSL_connect
...
Ken found over the internet with real delays, SSL_connect can
fail to work. This patch adapts his workaround to stay in the
connect state until we either run out of time for the connect
or succeed.
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Ken Atherton <katherton@echofirst.com>
2012-05-03 11:45:04 +08:00
Andy Green
cf56e4dd0f
cleanup extra wrapping needed on braced define
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-03 11:17:08 +08:00
Peter Hillier
05c66f7e4e
android toolchain SHA1 endian fix
...
Android toolchain needs an extra include if it's not to confuse
SHA-1 code probably with incorrect endian-ness from missing /bits/
Signed-off-by: Peter Hillier <peterhillier@yahoo.com>
Signed-off-by: Andy Green <andy@warmcat.com>
2012-05-02 06:09:45 +08:00
David Brooks
06fbcee703
ssize_t needs help on windows
...
ssize_t is needed, but absent in Windows.
This patch typedefs it to an int in that case as recommended by Tobias.
Signed-off-by: Andy Green <andy@warmcat.com>
Signed-off-by: David Brooks <dave@bcs.co.nz>
Signed-off-by: Tobias Maier <tobias.maier@netplace.com>
Reported-by: Rich Gossweiler <rich.gossweiler@gmail.com>
2012-05-02 06:02:45 +08:00
David Brooks
2c60d9584e
introduce libwebsocket_client_connect_extended
...
Signed-off-by: David Brooks <dave@bcs.co.nz>
Signed-off-by: Andy Green <andy@warmcat.com>
--
2012-04-20 12:28:14 +08:00
David Brooks
80a44975e9
introduce LWS_CALLBACK_CLIENT_CONNECTION_ERROR
...
Signed-off-by: David Brooks <dave@bcs.co.nz>
Signed-off-by: Andy Green <andy@warmcat.com>
--
2012-04-20 12:28:11 +08:00
David Brooks
993343b5e4
set connection callback before connection completed to allow early messages
...
Signed-off-by: David Brooks <dave@bcs.co.nz>
Signed-off-by: Andy Green <andy@warmcat.com>
--
lib/client-handshake.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
2012-04-20 12:27:24 +08:00
David Brooks
6c6a3d3caf
improve callback prototypes to use single definition
...
Not sure all compilers can hack this, but give it a try
Signed-off-by: David Brooks <dave@bcs.co.nz>
Signed-off-by: Andy Green <andy@warmcat.com>
--
2012-04-20 12:13:50 +08:00
David Brooks
ee2213d365
reduce debug spew
...
Signed-off-by: David Brooks <dave@bcs.co.nz>
Signed-off-by: Andy Green <andy@warmcat.com>
--
2012-04-20 12:13:37 +08:00
Pasi Mankinen
4d80662a65
workaround osx compiler bug
...
Signed-off-by: Pasi Mankinen <pasi.t.mankinen@student.jyu.fi>
2012-04-14 07:30:25 +08:00
Andy Green
9c5436cb57
document mingw build
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12 13:32:47 +08:00
Andy Green
aa6fc44b0a
mingw add win32helper to lib and fix extpoll
...
Based on work from Radu Sorici <soriciradu@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12 13:32:19 +08:00
Andy Green
dc36192435
doc add explanation missing from per context provate data
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12 13:32:03 +08:00
Andy Green
39347de0e0
mingw add zlib paths
...
Based on work from Radu Sorici <soriciradu@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12 13:31:49 +08:00
Andy Green
796ce7ab15
remove duplicated netdb include from client handshake
...
Based on work from Radu Sorici <soriciradu@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12 13:31:36 +08:00
Andy Green
cce2a81e85
change DATADIR to INSTALL_DATADIR solve mingw conflict
...
Based on work from Radu Sorici <soriciradu@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12 13:31:25 +08:00