Commit Graph

152 Commits

Author SHA1 Message Date
Roger A. Light
3c5ca95c81 File serving from http on *nix. 2014-09-08 23:25:02 +01:00
Roger A. Light
b84ca80052 Skeleton callback_http() function. 2014-09-08 18:39:51 +01:00
Roger A. Light
f500ff78b8 no_buffer_all_partial_tx not in latest LWS. 2014-09-08 18:24:12 +01:00
Roger A. Light
c4e7233159 Add http_dir option (not yet used). 2014-09-08 18:21:53 +01:00
Roger A. Light
d75473ec63 Fix possible memory leaks.
Thanks to Johann Haarhoff.
2014-09-06 21:51:59 +01:00
Roger A. Light
1b68bfbf76 Fix typo.
Thanks to Leon George.
2014-09-06 21:17:01 +01:00
Roger A. Light
b01b0b581f Produce error if unable to create WS listener. 2014-08-19 16:29:42 +01:00
Roger A. Light
ef573448f4 Another bridge notification fix. 2014-08-19 11:29:24 +01:00
Roger A. Light
1fdc4ceee6 Check expiration every hour regardless of the duration. 2014-08-19 01:11:22 +01:00
Roger A. Light
76724c790e Disconnect expired clients correctly. 2014-08-19 00:36:09 +01:00
Roger A. Light
580cd722dc Remote/local bridge fixes. 2014-08-16 23:14:41 +01:00
Roger A. Light
b937a043e7 Rename remote bridge identifiers to remote_. 2014-08-16 21:31:12 +01:00
Roger A. Light
a03465da3f Man page fix. 2014-08-15 16:38:50 +01:00
Roger A. Light
abe72b8e4c Keep retrying to reconnect without calling loop on failure. 2014-08-15 00:00:04 +01:00
Roger A. Light
950db12c74 Don't free local bridge clients on disconnect. 2014-08-05 09:06:50 +01:00
Roger A. Light
6af0c236e8 Each listener requires its own copy of the protocols struct. 2014-07-28 14:14:36 +01:00
Roger A. Light
06d5e000f1 Fix apparmor profile to match debian packaging.
Thanks to Danilo Tomasoni.
2014-07-28 09:22:20 +01:00
Roger A. Light
ae1477c08f Windows fixes. 2014-07-22 10:28:55 +01:00
Roger A. Light
57816cb520 Detect c-ares header in cmake. 2014-07-22 10:02:36 +01:00
Roger A. Light
c9da49b777 Pass mutex by reference, not value.
Thanks to Haseeb Abdul Qadir.
2014-07-20 21:17:29 +01:00
Roger A. Light
1c8433925d mosquitto_time() calculation to after keepalive check to avoid delays. 2014-07-09 21:40:27 +01:00
Roger A. Light
fa9fece76a Doc addition. 2014-07-09 20:42:39 +01:00
Roger A. Light
8b2effcc36 Don't check for POLLERR or POLLNVAL.
Errors will be caught when trying to read anyway, and doing these checks
here means that sockets may be closed prematurely.
2014-07-08 23:43:21 +01:00
Roger A. Light
0ff0cfb3d3 Need to include bridges here. 2014-07-08 23:29:16 +01:00
Roger A. Light
9bb336bbf3 Use do_disconnect() for websockets. 2014-07-08 23:18:11 +01:00
Roger A. Light
95a4ec431d Don't try to disconnect twice. 2014-07-08 23:16:34 +01:00
Roger A. Light
bb1a69b7d7 Disconnect clients consistently. 2014-07-08 23:07:19 +01:00
Roger A. Light
22094aa00d Memory checks. 2014-07-04 21:32:27 +01:00
Roger A. Light
3fd1dc477f Fix defects identified by Coverity. 2014-07-03 21:55:25 +01:00
Roger A. Light
5ac576f2ab Request write callback if there is still more to send. 2014-07-03 18:48:40 +01:00
Roger A. Light
405b7f0aab Don't free here, leads to potential double free. 2014-07-03 17:37:31 +01:00
Roger A. Light
0856e9519d Need to assign ws_context here. 2014-07-03 11:32:54 +01:00
Roger A. Light
399453837d Log websockets listeners being opened. 2014-07-03 11:32:29 +01:00
Roger A. Light
13f94f3511 More reconnect fixes. 2014-07-03 01:00:57 +01:00
Roger A. Light
2b300b718b Fix double free for websockets with bad auth. 2014-07-02 20:57:04 +01:00
Roger A. Light
a831281b3d Delete clients after socket close. 2014-07-02 20:49:06 +01:00
Roger A. Light
5c7512b8ba Add mosquitto_threaded_set(). 2014-07-02 20:45:26 +01:00
Roger A. Light
0fb064e0b4 Fix clean session for reconnecting clients. 2014-07-02 20:44:08 +01:00
Roger A. Light
fe5dba5887 Add use_username_as_clientid. 2014-07-02 00:09:50 +01:00
Roger A. Light
cabcada849 Test fixes. 2014-07-01 22:33:03 +01:00
Roger A. Light
1257fd49eb Fixes for clients that disconnect very quickly. 2014-07-01 22:16:53 +01:00
Roger A. Light
fd9496433c Configure client tests for valgrind. 2014-07-01 22:02:06 +01:00
Roger A. Light
864f1f0d23 Initialise variable. 2014-06-30 23:37:37 +01:00
Roger A. Light
84619c296d Fix building for WITH_BRIDGE=no. 2014-06-30 23:37:03 +01:00
Roger A. Light
d75903b0ae Fix reconnect support for websockets. 2014-06-30 23:30:43 +01:00
Roger A. Light
39674a443e Need bigger delay for valgrind. 2014-06-30 22:55:56 +01:00
Roger A. Light
d60e44ec1b Handle reconnects for websockets. 2014-06-30 06:58:56 +01:00
Roger A. Light
542ebb2480 Free peer certificate after use. 2014-06-30 05:33:41 +01:00
Roger A. Light
bdb3e74100 More memory fixes. 2014-06-29 23:16:10 +01:00
Roger A. Light
15efd2d072 Various memory fixes. 2014-06-28 01:38:58 +01:00