1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
Commit graph

1319 commits

Author SHA1 Message Date
Neal Horman
b399237fe8 Subject: [PATCH] add user context pointer to the protocol structure 2014-12-13 14:21:30 +08:00
Neal Horman
98e491fdff Subject: [PATCH] add _lws_logv to make loging accessible to other wrappers.
use _lws_logv in _lws_log
2014-12-13 14:18:27 +08:00
Neil Horman
fc98f9a4ca improve c++ compatibility
Adapted by Joakim
2014-12-13 14:15:48 +08:00
Alejandro Mery
31f9eeb9d6 client: fix verification of the accepted protocol
to properly take ", *" as delimiter

Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-13 14:00:42 +08:00
Alejandro Mery
72d5c584e1 README: fix coverity link
coverity link was pointing to the wrong project

Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-13 13:59:59 +08:00
Alejandro Mery
95ab6ca557 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>
2014-12-13 13:59:58 +08:00
Alejandro Mery
ead8afe8a1 add container_of() macro
to be used to remove cast abuse and finding parent structs later

Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-13 13:58:34 +08:00
=?UTF-8?q?Joakim=20S=C3=B6derberg?=
7ef8855530 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.
2014-12-13 12:23:41 +08:00
Octav Zlatior
d4dd69a254 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
2014-12-13 12:17:59 +08:00
Andy Green
f48ddd2a55 http2 remove some dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:53:46 +08:00
Andy Green
66ecc2538d NO_EXTENSION clean out handled var in handle_POLLOUT_event
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:28:46 +08:00
Andy Green
a349367a0b NO_SERVER_fix cosmetic warning
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-10 10:24:33 +08:00
Joakim Soderberg
a38a8cf8d1 Subject: [PATCH] Fix the travis.yml to build everything
When fixing the indentation for the coverity chagnes in 924bcfbc99
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."
2014-12-10 10:10:20 +08:00
Alejandro Mery
ac3ec39bb1 Subject: [PATCH] Introduce lws_free2() helper to free and re-NULL pointers
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:27:52 +08:00
Alejandro Mery
6ff28248aa Subject: [PATCH] Use custom allocator
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:26:26 +08:00
Alejandro Mery
cdc9717be1 Subject: [PATCH] Add custom allocator support using the realloc() interface
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:25:24 +08:00
Andy Green
6d91d5f8a1 test ping correct type for fprintf
Reported-by: Michael Habeler <mail17@mah.priv.at>
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-02 08:42:47 +08:00
Andy Green
613bc32f73 test echo unbreak no server
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-01 22:16:17 +08:00
Michael Haberler
49d0ce17d5 Subject: [PATCH] serve_http_file: add feature test macro for API change
introduced in 917f43
2014-12-01 21:47:37 +08:00
Andy Green
303f65fbe2 test echo versa + uri
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-01 21:46:35 +08:00
Andy Green
fb8f2b0a73 test echo add port to server host
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-01 21:02:55 +08:00
Andy Green
62fe015455 revert 187
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-01 19:28:28 +08:00
Andy Green
d01de66951 README.md update markup api key
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-12-01 11:21:30 +08:00
=?UTF-8?q?Joakim=20S=C3=B6derberg?=
4198276505 Subject: [PATCH] Nicer readmes using markdown.
This is still readable in raw text, but much nicer for github with heading and syntax highlighting and such.
2014-12-01 11:01:03 +08:00
Andy Green
453a9b34fd coverity 83669 remove random from fraggle
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:55:40 +08:00
Andy Green
cbd98ed1e4 coverity 83663 remove random from test client
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:53:19 +08:00
Andy Green
0c5f6709a8 coverity 83687 daemonize was not a close problem
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:47:36 +08:00
Andy Green
b03430745b coverity 83682 base64 decode more dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:39:09 +08:00
Andy Green
b743623ff4 coverity 83683 test ping more uint64_t needed
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:37:23 +08:00
Andy Green
28e2ab6a97 coverity 83684 more ways to close and use freed wsi
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:35:24 +08:00
Andy Green
dfa0f9444e coverity 83685 daemonize put the close in the right place
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:32:27 +08:00
Andy Green
9c8d590f9d coverity 83686 server close sockfd if failing out
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:30:57 +08:00
Andy Green
a3439032db win32 does not know uint64_t without stdint.h
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:17:35 +08:00
Andy Green
f38e7860f4 coverity 83656 server check setsockopt return
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
abb48113e7 coverity 83657 plat unix check setsockopt return
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
d7b0a72953 coverity 83658 test server check fstat return
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
24109f40ae coverity 83659 plat unix check fstat return
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
956a08a9c0 coverity 83660 plat unix check fcntl return
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
7ef4b2e1f2 coverity 83661 output check lseek return
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
b17598bea2 coverity 83662 test server check lseek return
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
8ab2b5af8b coverity 83664 consistently check NULL
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
adc720dfb5 coverity 83665 fail on null buffer
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
cd838506a9 coverity 83666 fail on null buffer
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 13:10:26 +08:00
Andy Green
c5814fbaa9 coverity 83667 dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:51:47 +08:00
Andy Green
0f59c9e75c coverity 83668 test echo nesting level bug
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:50:12 +08:00
Andy Green
66a5faa633 coverity 83671 dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:48:22 +08:00
Andy Green
4bd1a4d4e0 coverity 83672 dead code
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:47:33 +08:00
Andy Green
f14ea7a906 coverity 83673 deference after NULL check
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:45:39 +08:00
Andy Green
47afcddccf 83674 dereference after NULL check
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:43:51 +08:00
Andy Green
6a33759bb1 83675 test echo param could bust bounds
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-11-30 12:42:14 +08:00