Commit graph

  • 46ef0cf3c5 allow enabling debug contexts from test apps Andy Green 2013-01-10 22:28:59 +08:00
  • 43db045ff8 introduce logging api and convert all library output to use it Andy Green 2013-01-10 19:50:35 +08:00
  • 4550f1d7b5 compile in xcode, privatize debug macro Aaron Zinman 2013-01-10 12:35:18 +08:00
  • 6cd1ea9b00 update soname and configure to v1.0 v1.0-chrome25-firefox17 Andy Green 2013-01-10 12:35:18 +08:00
  • a63c24b35a correct autotools warning Andy Green 2013-01-10 12:36:59 +08:00
  • 988bd987af zlib code add OOM checks remove buffer expansion on rx path Andy Green 2013-01-10 12:26:13 +08:00
  • ed3c840ed6 Avoid leaking a socket when SSL_accept fails. David Galeano 2013-01-10 10:45:24 +08:00
  • 7c8d98924b Print error string on accept failure. David Galeano 2013-01-10 10:42:45 +08:00
  • 6b66791b46 Increased MAX_BROADCAST_PAYLOAD to match MAX_USER_RX_BUFFER. David Galeano 2013-01-10 10:41:10 +08:00
  • 229b7115bf Added README file with some useful tips for using the library. David Galeano 2013-01-10 10:39:57 +08:00
  • 96aa7e6a99 Added support for continuation frames on the server. David Galeano 2013-01-10 10:38:21 +08:00
  • 651544312c Close connection if LWS_CALLBACK_HTTP returns non-zero. David Galeano 2013-01-10 10:37:29 +08:00
  • 7ffbe1bfca Fixed to keep reading data until the SSL internal buffer is empty. Before this fix only 2048 bytes were read, the rest were buffered inside SSL until another message arrived!!! David Galeano 2013-01-10 10:35:32 +08:00
  • 4fbc40c07d Added no-cache headers to client handshake: http://www.ietf.org/mail-archive/web/hybi/current/msg09841.html David Galeano 2013-01-10 10:26:05 +08:00
  • ed3bc90174 Separate compression levels for server and client, increased the later one to zlib default (6). David Galeano 2013-01-10 10:24:32 +08:00
  • 1ed189e421 More correct handling of inflate result. David Galeano 2013-01-10 10:22:47 +08:00
  • e0d0fd72b3 Fixed crash when HTTP requests method is not GET. David Galeano 2013-01-10 10:20:01 +08:00
  • cc148e4029 Check if macro SSL_OP_NO_COMPRESSION is defined before trying to use it. David Galeano 2013-01-10 10:18:59 +08:00
  • 1aad881819 Using size_t instead of int for deflate-frame offsets and length. David Galeano 2013-01-10 10:18:17 +08:00
  • f177f2a15e Added private macro CIPHERS_LIST_STRING to define ciphers list string. David Galeano 2013-01-10 10:15:19 +08:00
  • 77a677c2bd When choosing a cipher, use the server's preferences. David Galeano 2013-01-10 10:14:12 +08:00
  • 584b316700 Pass URI length to LWS_CALLBACK_HTTP. David Galeano 2013-01-10 10:13:19 +08:00
  • c72f6f9fa0 Disable compression for SSL socket, it is a waste of CPU when using compression extensions. David Galeano 2013-01-10 10:11:57 +08:00
  • 9b3d4b2152 Using "SSL_CTX_use_certificate_chain_file" instead of "SSL_CTX_use_certificate_file" to support server certificates signed by intermediaries. David Galeano 2013-01-10 10:11:21 +08:00
  • 0d586c4930 Better definition of "debug" macro for Win32 builds. David Galeano 2013-01-10 10:08:50 +08:00
  • 7dd9bc57a5 Use __inline for Win32 builds. David Galeano 2013-01-10 10:07:16 +08:00
  • a1b39732d7 Avoid checking choked pipe if no extension has more data to write. David Galeano 2013-01-10 10:06:38 +08:00
  • 960da6eeb0 zlib update 1.2.7 David Galeano 2013-01-10 10:03:42 +08:00
  • 369730921e Set listen backlog to SOMAXCONN. David Galeano 2013-01-10 09:58:24 +08:00
  • b88e096e19 Fixed operator precedence bug. David Galeano 2013-01-10 09:54:10 +08:00
  • 01d0256b42 Avoid deflate of small packets. David Galeano 2013-01-10 09:51:15 +08:00
  • 2605ffe277 Support compressed packets bigger than MAX_USER_RX_BUFFER. (AG adapted style and removed logging stuff) David Galeano 2013-01-10 09:41:06 +08:00
  • 4c38f14527 Allow extensions when no protocol was specified. David Galeano 2013-01-09 19:49:50 +08:00
  • 85a092135e Added extension "deflate-frame". Using by default instead of "deflate-stream". David Galeano 2013-01-09 18:21:33 +08:00
  • e2cf992571 Added support for extensions that only manipulate application data. David Galeano 2013-01-09 18:06:55 +08:00
  • d58c6ab78d Fixed deflate-stream extension. When the output buffer was exhausted the input buffer was discarded without checking if zlib had actually consumed all the input, now we copy the remaining input data for the next call. David Galeano 2013-01-09 18:03:28 +08:00
  • c9f1ff843f Added private macro AWAITING_TIMEOUT instead of harcoded value 5. David Galeano 2013-01-09 18:01:23 +08:00
  • dae2dcb09e Fixed spacing. David Galeano 2013-01-09 16:35:18 +08:00
  • 2f82be89d5 Added context creation parameter for CA certificates file. David Galeano 2013-01-09 16:25:54 +08:00
  • 36750b84fd Return NULL if the handshake failed to complete, libwebsocket_service_fd closes and frees the websocket in that case. David Galeano 2013-01-09 16:17:04 +08:00
  • a3a97d1acc Ignoring linux build files David Galeano 2013-01-09 15:46:11 +08:00
  • b42dcc7186 Use feature check rather than browser check. David Galeano 2013-01-09 15:39:50 +08:00
  • aa0bc86143 Changed client handshake to use "Origin" instead of "Sec-WebSocket-Origin" as defined by RFC 6455 when using version 13 of the protocol. David Galeano 2013-01-09 15:31:46 +08:00
  • cb19368e14 Fixed compiler warnings on Windows. David Galeano 2013-01-09 15:29:00 +08:00
  • 2915a80a5f Added new status codes from RFC 6455. David Galeano 2013-01-09 15:26:08 +08:00
  • aeb574870e Fixed compiler warning on Windows. David Galeano 2013-01-09 15:25:05 +08:00
  • c451a4f4d5 required version of autoconf can be lower Artem Baguinski 2013-01-09 15:16:52 +08:00
  • d3ce131a78 Static variable is now const. David Galeano 2013-01-09 15:14:31 +08:00
  • 788c4a8fa8 add context construction option to skip server hostname lookup release-0.6 Andy Green 2012-10-22 12:29:57 +01:00
  • 15e31f373d add missing docs for new context user pointer Andy Green 2012-10-19 18:36:28 +08:00
  • dc93b7f2e7 libwebsocket_service_fd: EAGAIN is harmless, treat like EINTR Alon Levy 2012-10-19 11:21:57 +02:00
  • 0291eb3b95 libwebsocket_context: add userspace pointer for use before wsi creation Alon Levy 2012-10-19 11:21:56 +02:00
  • e1be13d8b5 lib/Makefile.am: whitespace fix Alon Levy 2012-10-19 11:21:55 +02:00
  • 3147b027fd add pkg-config file libwebsockets.pc Alon Levy 2012-10-19 11:21:54 +02:00
  • 88f8d5754c Added test.html favicon.ico to EXTRA_DIST. Anders Brander 2012-10-17 14:23:28 +02:00
  • 4e6fe90030 Add missing .h files to sources. Anders Brander 2012-10-17 13:48:59 +02:00
  • 4ed9bb8288 Add kernel doc to extra_dist. Anders Brander 2012-10-17 13:47:47 +02:00
  • 5e8967a54e always taking an interest in ppid wont hurt Andy Green 2012-10-17 20:10:44 +08:00
  • 7b6106214b remove depcomp Andy Green 2012-10-07 20:44:02 +08:00
  • fa3f405d1d stop being so fragile on socket lifecycle Andy Green 2012-10-07 20:40:35 +08:00
  • 94c62c652c use autogen.sh Andy Green 2012-10-06 15:17:01 +08:00
  • 71e5369175 add not about autoreconf and libtoolize Andy Green 2012-07-20 13:00:12 +08:00
  • 3928f6178a restore accept error as closure signal Andy Green 2012-07-20 12:58:38 +08:00
  • 915316644c check for prctl, poll parent PID if not present Artem Baguinski 2011-12-14 22:14:03 +01:00
  • 1e32663805 Fixing uninitialised memory Paulo Roberto Urio 2012-06-04 10:52:19 +08:00
  • 4144e83c9d some toolchains need stddef Paulo Roberto Urio 2012-06-04 09:04:33 +08:00
  • 5513fe0577 add missing sa_data init to canonical hostname code Andy Green 2012-06-04 08:53:26 +08:00
  • 1f680abb7d Fixed segfault in libwebsocket_context_destroy. Paulo Roberto Urio 2012-06-04 08:40:28 +08:00
  • d1db83c650 sockets were left open if connection could not be established resulting in a mass of unusable open file descriptors Tobias Maier 2012-05-30 12:46:42 +08:00
  • e59d477c07 link lz explicitly for mips yuval tal 2012-05-21 10:16:06 +08:00
  • d5512179fc null exception with null extensions list Andrew Chambers 2012-05-20 08:17:09 +08:00
  • 13f7791d0c refresh autotools stuff Andy Green 2012-05-20 08:17:02 +08:00
  • 86e82ab22f update test html now mozilla uses normal ws apis support-chrome-20-firefox-12 Andy Green 2012-05-03 12:48:14 +08:00
  • a69f051870 start migration to getnameinfo Andy Green 2012-05-03 12:32:38 +08:00
  • 8360a47011 openssl allow connect multiple packets for SSL_connect Ken Atherton 2012-05-03 11:45:04 +08:00
  • cf56e4dd0f cleanup extra wrapping needed on braced define Andy Green 2012-05-03 11:17:08 +08:00
  • 05c66f7e4e android toolchain SHA1 endian fix Peter Hillier 2012-05-02 06:09:45 +08:00
  • 06fbcee703 ssize_t needs help on windows David Brooks 2012-05-02 06:02:45 +08:00
  • 2c60d9584e introduce libwebsocket_client_connect_extended David Brooks 2012-04-20 12:19:01 +08:00
  • 80a44975e9 introduce LWS_CALLBACK_CLIENT_CONNECTION_ERROR David Brooks 2012-04-20 12:18:47 +08:00
  • 993343b5e4 set connection callback before connection completed to allow early messages David Brooks 2012-04-20 12:16:52 +08:00
  • 6c6a3d3caf improve callback prototypes to use single definition David Brooks 2012-04-20 12:13:50 +08:00
  • ee2213d365 reduce debug spew David Brooks 2012-04-20 12:13:37 +08:00
  • 4d80662a65 workaround osx compiler bug Pasi Mankinen 2012-04-14 07:28:19 +08:00
  • 9c5436cb57 document mingw build Andy Green 2012-04-12 13:32:47 +08:00
  • aa6fc44b0a mingw add win32helper to lib and fix extpoll Andy Green 2012-04-12 13:26:49 +08:00
  • dc36192435 doc add explanation missing from per context provate data Andy Green 2012-04-12 11:15:23 +08:00
  • 39347de0e0 mingw add zlib paths Andy Green 2012-04-12 11:11:10 +08:00
  • 796ce7ab15 remove duplicated netdb include from client handshake Andy Green 2012-04-12 11:08:55 +08:00
  • cce2a81e85 change DATADIR to INSTALL_DATADIR solve mingw conflict Andy Green 2012-04-12 11:06:05 +08:00
  • a3147888d6 mingw gettimeofday avoid missing include Andy Green 2012-04-12 11:02:06 +08:00
  • eeeddf030d mingw add in missing poll defs Andy Green 2012-04-12 10:56:20 +08:00
  • 2a480ea83c mingw hide some missing includes Andy Green 2012-04-12 10:54:22 +08:00
  • 0dbef49e54 autoconf introduce enable mingw and adapt compiler options Andy Green 2012-04-12 10:11:29 +08:00
  • 6ee372fcd8 style cleaning Andy Green 2012-04-09 15:09:01 +08:00
  • 7b5af9af15 fix onopen browser context patch Andy Green 2012-04-09 15:23:47 +08:00
  • 3ae39ff796 allow message processing from onopen browser context Yonathan Yusim 2012-04-09 06:42:39 +08:00
  • e8c9b565a4 use ssize_t instead of size_t for return values of read/recv/SSL_read Tobias Maier 2012-04-05 11:57:12 +02:00
  • 3059263e3f make duplicate headers append instead of get ignored Nick Dowell 2012-04-05 10:31:48 +08:00
  • c04c193dc3 close connection if socket recv() fails. Nick Dowell 2012-04-05 10:29:39 +08:00