Commit graph

  • cecf5e73cf eliminate snprintf Andy Green 2013-02-12 10:07:22 +08:00
  • 7a506ba5cb fix info struct api docs for iface vs interface Andy Green 2013-02-12 10:13:02 +08:00
  • 63ff120ba5 Fixed compilation on Windows. Joakim Soderberg 2013-02-11 17:52:23 +01:00
  • 72dfd756d4 update memory performance info Andy Green 2013-02-11 22:40:39 +08:00
  • 224149ab58 fix ssl reject path for freeing header allocation Andy Green 2013-02-11 21:43:41 +08:00
  • 35517092ff fix busted debug format in ssl mode Andy Green 2013-02-11 20:10:56 +08:00
  • 090789e87b fix string escape runon Andy Green 2013-02-11 20:03:59 +08:00
  • 14f4729c0d fix without server Andy Green 2013-02-11 19:36:15 +08:00
  • b5b23199f6 style cleanup Andy Green 2013-02-11 17:13:32 +08:00
  • ad68639a7b valgrind openssl destroy as far as possible Andy Green 2013-02-11 14:50:45 +08:00
  • 3886ec7246 valgrind client close in a controlled way on SIGINT valgrind-clean Andy Green 2013-02-11 14:32:02 +08:00
  • fdd305a986 valgrind eliminate uninitialized warning on close Andy Green 2013-02-11 14:32:48 +08:00
  • 1ae1b1fae8 valgrind also deallocate rx buf on close when client Andy Green 2013-02-11 14:12:32 +08:00
  • 310655bf27 valgrind dont close things directly in the callback Andy Green 2013-02-11 14:08:50 +08:00
  • 93f98d748d valgrind client go through context destroy on connection error Andy Green 2013-02-11 14:05:02 +08:00
  • e77fb804dc client convert to new headers scheme eliminating mallocs Andy Green 2013-02-11 13:04:45 +08:00
  • bebc1bb852 valgrind free rx_user_buffer if entered CONNMODE_WS_SERVING Andy Green 2013-02-11 12:37:13 +08:00
  • a7109e6ebf valgrind introduce protocol init and destroy user callbacks Andy Green 2013-02-11 12:05:54 +08:00
  • 7b92205086 valgrind context destroy close all conns properly Andy Green 2013-02-11 11:43:05 +08:00
  • 4708a02f06 valgrind drop header allocation down http path Andy Green 2013-02-11 11:27:44 +08:00
  • 16ab3185c4 replace per header mallocs with single malloc 3 level struct Andy Green 2013-02-10 18:02:31 +08:00
  • a86f634d4f improve static allocation notice Andy Green 2013-02-11 11:04:56 +08:00
  • 4659648159 valgrind free context allocations Andy Green 2013-02-11 11:04:01 +08:00
  • 33fa908293 remove extension cruft from struct lws Andy Green 2013-02-11 10:03:00 +08:00
  • 60fbc63513 use part of service buffer to make response not malloc Andy Green 2013-02-11 09:37:23 +08:00
  • 895d56d4ce remove minimum frame size for deflate Andy Green 2013-02-11 09:32:53 +08:00
  • a3957ef804 stop O2 override Andy Green 2013-02-11 09:31:43 +08:00
  • aedc953a8f dont close in user callback wrapper let ancestor do it Andy Green 2013-02-10 21:21:24 +08:00
  • 5ab9c68687 fix error path in file transfer Andy Green 2013-02-10 20:58:04 +08:00
  • acfa1a879e throw out lws_websocket_related cruft Andy Green 2013-02-10 16:25:20 +08:00
  • d91d5e8d22 optimize wsi using bitfields and enums to chars Andy Green 2013-02-10 16:00:47 +08:00
  • e48ba315b8 use context service buffer instead of stack for clent_connect Andy Green 2013-02-10 15:34:59 +08:00
  • f54a94b494 use context service buffer instead of stack for clent_connect_2 Andy Green 2013-02-10 15:19:39 +08:00
  • e310b0c443 use context service buffer instead of stack for create_context Andy Green 2013-02-10 15:10:10 +08:00
  • 2b40b79e6d fix non ssl changes missed from context api change Andy Green 2013-02-10 22:22:01 +08:00
  • c97067cf69 use context service buffer instead of stack for lws_client_socket_service Andy Green 2013-02-10 11:03:32 +08:00
  • 0390608a39 use context service buffer instead of stack for server_socket_service Andy Green 2013-02-10 10:43:04 +08:00
  • 5f348a80a0 add static stack analysis Andy Green 2013-02-10 10:23:24 +08:00
  • f0b79e238c dont try figure out listen_service_fd position if unset Andy Green 2013-02-10 10:46:45 +08:00
  • a47865fa19 dont try set per socket keepalive timing on bsds Andy Green 2013-02-10 09:39:47 +08:00
  • 9e4c917c27 fix broken listen socket piggybacking Andy Green 2013-02-10 09:06:38 +08:00
  • a690cd066e introduce keepalive option and make common socket options function Andy Green 2013-02-09 12:25:31 +08:00
  • da1fb0b89f remove receiving timeout for client Andy Green 2013-02-09 14:20:17 +08:00
  • 8e0c98484e correct test client to close synchronously with last send Andy Green 2013-02-09 14:10:04 +08:00
  • e7c97e8429 align max frame for mirror protocol to what the code does Andy Green 2013-02-09 14:07:32 +08:00
  • 1b26527e72 change context creation params to struct Andy Green 2013-02-09 14:01:09 +08:00
  • 0480f6420c handshake bail3 should be bail Andy Green 2013-02-08 20:10:03 +08:00
  • 5449511d3e remove fixed rx buffer allow definition per protocol Andy Green 2013-02-06 21:10:16 +09:00
  • f27034201f account for context in static allocation figure Andy Green 2013-02-08 12:53:27 +08:00
  • 9b09dc0213 remove all PATH_MAX or MAX_PATH Andy Green 2013-02-08 12:48:36 +08:00
  • e84652c4ea use context service buf in place of large stack arrays Andy Green 2013-02-08 13:01:02 +08:00
  • b8b247d3e1 remove need for filepath buffer on http file serve Andy Green 2013-01-22 07:20:08 +08:00
  • c11b587aed add static linking exception to LICENSE Andy Green 2013-02-07 23:44:21 +08:00
  • 750200121e add unchanged lgpl 2.1 in LICENSE Andy Green 2013-02-07 23:43:56 +08:00
  • 3b233cbc24 Fix memory leaks when creating a context. Peter Pentchev 2013-02-07 16:31:19 +02:00
  • 4d46cb5a3f Generate the API reference in text format, too. Peter Pentchev 2013-02-07 16:19:52 +02:00
  • c74964ec44 Fix two typos. Peter Pentchev 2013-02-07 16:17:13 +02:00
  • ed334463e8 changelog header lifecycle Andy Green 2013-02-07 21:14:33 +08:00
  • 23c5f2ecd0 add autotools bits for cyassl Andy Green 2013-02-06 15:43:00 +09:00
  • 68a672bb44 unionize header token array Andy Green 2013-02-06 20:23:40 +09:00
  • a2b3a36e44 document header lifecycle change Andy Green 2013-02-06 20:13:03 +09:00
  • 2b57a34677 headers deleted after websocket established Andy Green 2013-02-06 15:15:25 +09:00
  • e4dffc99df leverage TOKEN_SKIPPING better in parser Andy Green 2013-02-04 09:24:18 +08:00
  • 177ca78921 simplify parsing complete Andy Green 2013-02-04 09:09:19 +08:00
  • 3455e676d8 act on fatal parse problems Andy Green 2013-02-04 08:55:42 +08:00
  • c5dc32ab48 remove deprecated vcxproj Andy Green 2013-02-06 20:00:45 +09:00
  • df60b0c089 update changelog about cmake Andy Green 2013-02-06 19:57:12 +09:00
  • 7df9908148 Added build instructions for CMake. Joakim Soderberg 2013-02-07 20:24:19 +08:00
  • 039ce8fc7f add README Andy Green 2013-02-06 16:07:27 +09:00
  • f57751f92b Fixed compilation on NetBSD. Joakim Soderberg 2013-02-06 15:31:20 +09:00
  • cb4156d437 Cleaned up the CyaSSL linking in the CMake project a bit. Joakim Söderberg 2013-02-06 15:30:56 +09:00
  • 91de93391c Fixed windows build. Joakim Soderberg 2013-02-06 15:30:33 +09:00
  • e9a42119f6 Added some minor changes to CMake build file. Joakim Soderberg 2013-02-06 15:29:59 +09:00
  • b378ce9d18 Added support for CyaSSL replacement of OpenSSL. Joakim Soderberg 2013-02-06 15:29:18 +09:00
  • 4f4a38bae0 Added check for inline keyword availability. Joakim Soderberg 2013-02-06 15:28:07 +09:00
  • 68e8d730b8 Fixed build on OSX. Joakim Söderberg 2013-02-06 15:27:39 +09:00
  • d2edfec5fa Fixed linux compilation and added more compile options. Joakim Soderberg 2013-02-06 15:27:27 +09:00
  • 4c53123677 CMake support + fixed windows build. - Finalized CMake support (tested on windows only so far). - Uses a generated lws_config.h that is included in private-libwebsocket to pass defines, only used if CMAKE_BUILD is set. - Support for SSL on Windows. - Initial support for CyaSSL replacement of OpenSSL (This has been added to my older CMake-fork but haven't been tested on this version yet). - Fixed windows build (see below for details). - Fixed at least the 32-bit Debug build for the existing Visual Studio Project. (Not to keen fixing all the others when we have CMake support anyway (which can generate much better project files)...) - BUGFIXES: - handshake.c - used C99 definition of handshake_0405 function - libwebsocket.c - syslog not available on windows, put in ifdefs. - Fixed previous known crash bug on Windows where WSAPoll in Ws2_32.dll would not be present, causing the poll function pointer being set to NULL. - Uninitialized variable context->listen_service_extraseen would result in stack overflow because of infinite recursion. Fixed by initializing in libwebsocket_create_context - SO_REUSADDR means something different on Windows compared to Unix. - Setting a socket to nonblocking is done differently on Windows. (This should probably broken out into a helper function instead) - lwsl_emit_syslog -> lwsl_emit_stderr on Windows. - private-libwebsocket.h - PATH_MAX is not available on Windows, define as MAX_PATH - Always define LWS_NO_DAEMONIZE on windows. - Don't define lws_latency as inline that does nothing. inline is not support by the Microsoft compiler, replaced with an empty define instead. (It's __inline in MSVC) - server.c - Fixed nonblock call on windows - test-ping.c - Don't use C99 features (Microsoft compiler does not support it). - Move non-win32 headers into ifdefs. - Skip use of sighandler on Windows. - test-server.c - ifdef syslog parts on Windows. Joakim Soderberg 2013-02-06 15:26:58 +09:00
  • add3926b17 Some more Cmake stuff. Joakim Soderberg 2013-02-06 15:25:26 +09:00
  • 08e434eb66 Started redoing CMake support based on the up to date repos Joakim Soderberg 2013-02-01 14:52:53 +01:00
  • 0d49c8d1a0 improve test server poll loop docs Andy Green 2013-02-02 23:02:56 +08:00
  • a2156aa863 add note about MIPS opewrt configure options Andy Green 2013-02-02 18:10:29 +08:00
  • 81bbae0375 remove one more mention of broadcast callback Andy Green 2013-02-01 11:17:02 +08:00
  • 7b40545e92 introduce library version plus git hash Andy Green 2013-02-01 10:50:15 +08:00
  • 2d7acec9b2 remove stray reference to max broadcast size from readme.build Andy Green 2013-02-01 08:48:41 +08:00
  • 36eb70d7a9 additional casts allow test server build as cpp Andy Green 2013-02-01 08:42:15 +08:00
  • bd1132f9ac update changelog tag chrome 26 firefox 18 v1.1-chrome26-firefox18 Andy Green 2013-01-31 19:53:05 +08:00
  • c51823a418 renovate test html Andy Green 2013-01-31 19:50:57 +08:00
  • a35c86f115 add changelog v1.0 to v1.1 Andy Green 2013-01-31 10:16:44 +08:00
  • 2da89dccb0 bump version to 1.1 and soname to 2 Andy Green 2013-01-31 10:12:52 +08:00
  • 98feb4be18 clean out remaining mentions of deprecated broadcast Andy Green 2013-01-31 10:34:52 +08:00
  • d09d7d45f8 get error from getnameinfo if unable to improve hostname and use hostname Andy Green 2013-01-31 10:05:43 +08:00
  • cbb3122ab4 fixes for without server and without client Andy Green 2013-01-31 09:57:05 +08:00
  • daed4fbd54 fix unused var if no enable openssl Jack Mitchell 2013-01-30 18:53:36 +08:00
  • 769153ec5d introduce test echo Andy Green 2013-01-30 11:03:01 +08:00
  • 467c7ef552 add info about why we close to more places Andy Green 2013-01-30 12:28:34 +08:00
  • 96d882a9d8 roubustness handle problems in read loop better Andy Green 2013-01-30 12:27:27 +08:00
  • 5fc75a9b6b server allow NULL protocol map to protocol 0 Andy Green 2013-01-30 12:26:14 +08:00
  • aaf0b9f514 change get_peer_addresses to use context wsi latency Andy Green 2013-01-30 08:12:20 +08:00
  • e000a709b3 instrument latency Andy Green 2013-01-29 12:37:35 +08:00