summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-10-19add my todoHEADmasterAlon Levy1-0/+2
2012-10-19add missing docs for new context user pointerAndy Green1-0/+2
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-19libwebsocket_service_fd: EAGAIN is harmless, treat like EINTRAlon Levy1-1/+1
Only tested on linux. Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-19libwebsocket_context: add userspace pointer for use before wsi creationAlon Levy9-8/+22
Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-19lib/Makefile.am: whitespace fixAlon Levy1-1/+2
Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-19add pkg-config file libwebsockets.pcAlon Levy3-1/+18
Signed-off-by: Alon Levy <alevy@redhat.com>
2012-10-17Added test.html favicon.ico to EXTRA_DIST.Anders Brander1-0/+1
2012-10-17Add missing .h files to sources.Anders Brander1-2/+2
2012-10-17Add kernel doc to extra_dist.Anders Brander1-0/+2
2012-10-17always taking an interest in ppid wont hurtAndy Green1-2/+2
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-07remove depcompAndy Green1-688/+0
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-07stop being so fragile on socket lifecycleAndy Green1-2/+2
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-10-06use autogen.shAndy Green17-30952/+1658
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-07-20add not about autoreconf and libtoolizeAndy Green1-1/+6
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-07-20restore accept error as closure signalAndy Green7-16/+27
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-07-20check for prctl, poll parent PID if not presentArtem Baguinski3-2/+18
this allows forking code to be used on non-linux systems
2012-06-04Fixing uninitialised memoryPaulo Roberto Urio1-1/+3
These were found with valgrind tool. Signed-off-by: Paulo Roberto Urio <paulourio@gmail.com>
2012-06-04some toolchains need stddefPaulo Roberto Urio1-0/+2
Signed-off-by: Paulo Roberto Urio <paulourio@gmail.com>
2012-06-04add missing sa_data init to canonical hostname codeAndy Green1-2/+3
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-04Fixed segfault in libwebsocket_context_destroy.Paulo Roberto Urio1-1/+1
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-05-30sockets were left open if connection could not beTobias Maier1-0/+5
established resulting in a mass of unusable open file descriptors Signed-off-by: Tobias Maier <tobias.maier@netplace.com>
2012-05-21link lz explicitly for mipsyuval tal2-9/+9
fix link error since libz is not linked in Signed-off-by: yuval tal <yuvalt@boxee.tv>
2012-05-20null exception with null extensions listAndrew Chambers1-5/+8
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-20refresh autotools stuffAndy Green4-86/+16
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-03update test html now mozilla uses normal ws apissupport-chrome-20-firefox-12Andy Green1-2/+2
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-03start migration to getnameinfoAndy Green1-4/+20
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-03openssl allow connect multiple packets for SSL_connectKen Atherton1-10/+11
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-03cleanup extra wrapping needed on braced defineAndy Green6-37/+117
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-02android toolchain SHA1 endian fixPeter Hillier1-0/+1
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-02ssize_t needs help on windowsDavid Brooks1-0/+2
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-04-20introduce libwebsocket_client_connect_extendedDavid Brooks4-7/+113
Signed-off-by: David Brooks <dave@bcs.co.nz> Signed-off-by: Andy Green <andy@warmcat.com> --
2012-04-20introduce LWS_CALLBACK_CLIENT_CONNECTION_ERRORDavid Brooks2-2/+11
Signed-off-by: David Brooks <dave@bcs.co.nz> Signed-off-by: Andy Green <andy@warmcat.com> --
2012-04-20set connection callback before connection completed to allow early messagesDavid Brooks1-0/+19
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-20improve callback prototypes to use single definitionDavid Brooks2-15/+17
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-20reduce debug spewDavid Brooks2-9/+6
Signed-off-by: David Brooks <dave@bcs.co.nz> Signed-off-by: Andy Green <andy@warmcat.com> --
2012-04-14workaround osx compiler bugPasi Mankinen1-1/+3
Signed-off-by: Pasi Mankinen <pasi.t.mankinen@student.jyu.fi>
2012-04-12document mingw buildAndy Green1-1/+8
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12mingw add win32helper to lib and fix extpollAndy Green9-15/+47
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12doc add explanation missing from per context provate dataAndy Green1-0/+3
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12mingw add zlib pathsAndy Green2-4/+4
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12remove duplicated netdb include from client handshakeAndy Green1-1/+0
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12change DATADIR to INSTALL_DATADIR solve mingw conflictAndy Green9-21/+31
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12mingw gettimeofday avoid missing includeAndy Green2-2/+9
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12mingw add in missing poll defsAndy Green1-0/+23
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12mingw hide some missing includesAndy Green2-2/+13
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-12autoconf introduce enable mingw and adapt compiler optionsAndy Green9-9837/+575
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-09style cleaningAndy Green10-312/+314
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-09fix onopen browser context patchAndy Green1-0/+1
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-04-09allow message processing from onopen browser contextYonathan Yusim1-15/+25
Found an issue in libwebsockets - if a server sends a message within its "onopen" context then the message is getting swallowed and not passed to calling client (means LWS_CALLBACK_CLIENT_RECEIVE is never getting called). I've fixed the bug - pls find attached patch. Signed-off-by: Yonathan Yusim <yonathan@boxee.tv> Signed-off-by: Andy Green <andy@warmcat.com>
2012-04-05use ssize_t instead of size_t for return values of read/recv/SSL_readTobias Maier1-1/+1
Signed-off-by: Tobias Maier <tobias.maier@netplace.com>