Roger A. Light
ba67e1ffe5
Don't use gnu-specific strerror_r.
2018-11-07 18:27:15 +00:00
Roger A. Light
34c752a0d0
Give better error message if a client sends a password without a username.
...
Closes #1015 . Thanks to TabascoEye.
2018-11-07 17:29:39 +00:00
Roger A. Light
9f7577aab6
$SYS/broker/clients/disconnected should never be negative.
...
Closes #287 . Thanks to Lovisa Johansson.
Bug: https://github.com/eclipse/mosquitto/issues/287
2018-11-07 17:23:43 +00:00
Roger A. Light
feb303a919
Fix whitespace in Dockerfile.
2018-11-07 14:34:43 +00:00
Roger A. Light
1582117147
Build own libwebsockets in Docker image.
2018-11-07 14:34:43 +00:00
Iblis Lin
0368a8c01d
add socket headers for FreeBSD
...
Signed-off-by: Iblis Lin <iblis@hs.ntnu.edu.tw>
2018-11-07 10:28:26 +00:00
Roger A. Light
d7bcec4878
Don't disconnect clients when a plugin denies SUBSCRIBE.
...
Thanks to Ibrahim Koujar.
Bug: https://github.com/eclipse/mosquitto/issues/1016
2018-11-07 10:06:32 +00:00
Abilio Marques
a4a5236568
fix bug where bridge doesn't honor restart_timeout setting
...
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2018-11-06 23:28:40 +00:00
Bernd Kuhls
80f3bc4812
_GNU_SOURCE needed for EAI_INPROGRESS
...
Define of _GNU_SOURCE is needed to be able to use EAI_INPROGRESS in
loop.c.
This patch fixes a build error
loop.c:334:17: error: ‘EAI_INPROGRESS’ undeclared (first use in this function)
if(rc == EAI_INPROGRESS){
occuring with a glibc-2.27-based buildroot toolchain for sparc64
Target: sparc64-buildroot-linux-gnu
[...]
gcc version 6.4.0 (Buildroot 2018.05)
Source:
http://autobuild.buildroot.org/toolchains/tarballs/br-sparc64-full-2018.05.tar.bz2
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
2018-11-06 23:16:29 +00:00
Bartosz Taczała
e86b27a2da
Adding support for QNX7.0.0
...
Change-Id: Id01e2880aa5cadc0e93a46b95fe675e1938051fa
Signed-off-by: Bartosz Taczała <bartosz.taczala@mobica.com>
2018-11-06 23:11:09 +00:00
Roger A. Light
eff8fab1b4
Only process network errors for clients that have nothing to read.
...
Closes #7 .
2018-11-06 23:02:33 +00:00
Roger A. Light
c26892244c
Test x509 generation script requires no interaction now.
2018-11-06 23:02:33 +00:00
Roger A. Light
93f9e965a8
Only remove context from hash if there is a client id.
...
This should never happen, but just in case.
2018-11-06 23:01:06 +00:00
Roger A. Light
da2879c33b
Docker fixes.
...
- Don't remove apk database, closes #1011 .
- Install mosquitto_passwd, closes #1009 .
2018-11-03 08:57:06 +00:00
Roger A. Light
f77c1ca91b
private struct mqtt5__property -> public mosquitto_property.
2018-11-01 23:50:54 +00:00
Roger A. Light
80f526a5e5
Message Expiry Interval support.
2018-11-01 21:51:35 +00:00
Roger A. Light
f9e0fa246a
Validate properties coming into client library.
2018-11-01 18:53:06 +00:00
Roger A. Light
4ca83c1768
Fix leak when handling publish props.
2018-11-01 16:50:23 +00:00
Roger A. Light
4c0c632dfa
Client memory "leak" fixes.
2018-11-01 16:02:20 +00:00
Roger A. Light
8aa936936e
Library and client support for topic-alias.
2018-11-01 15:47:21 +00:00
Roger A. Light
55b46037da
Change -y to -D in clients.
2018-11-01 14:22:00 +00:00
Roger A. Light
de3a9af1f7
Client+library support for unsubscribe properties.
2018-11-01 14:12:52 +00:00
Roger A. Light
49a8642986
Disallow properties that are invalid for a command.
2018-11-01 11:59:59 +00:00
Roger A. Light
741a8a9cc3
Client disconnect property support, plus disconnect packet fix.
2018-11-01 11:57:47 +00:00
Roger A. Light
383608613a
Client+lib will property support.
2018-11-01 11:37:57 +00:00
Roger A. Light
12cba75c73
Client support for adding properties.
2018-10-31 12:38:39 +00:00
Roger A. Light
b462115fa6
Add reason code to PUBACK/REC/REL/COMP.
2018-10-31 08:24:28 +00:00
Roger A. Light
ba874c6014
Merge branch 'mqtt5' of gitlab.com:ralight/mosquitto-private into mqtt5
2018-10-30 14:58:57 +00:00
Roger A. Light
446ad6290a
Add mosquitto_string_to_property_info.
2018-10-30 11:54:36 +00:00
Roger A. Light
c19b3598c0
Add mosquitto_string_to_command.
2018-10-30 11:40:06 +00:00
Roger A. Light
63a479564b
Add mosquitto_property_command_check()
2018-10-30 11:32:37 +00:00
Roger A. Light
636e813d1c
Load of constant renames ahead of making mqtt_protocol.h public.
2018-10-30 11:11:31 +00:00
Roger A. Light
9eebcf6704
Rename property__free_all->mosquitto_property_free_all
...
Make public function.
2018-10-30 10:16:42 +00:00
Roger A. Light
be5602be28
Add sections to mosquitto.h.
2018-10-30 10:03:08 +00:00
Roger A. Light
d5aaeee1fb
Use https for all downloads.
2018-10-29 16:27:04 +00:00
Roger A. Light
1853bfc678
Docker fixes as per review.
...
https://github.com/docker-library/official-images/pull/4987#issuecomment-433570818
Revert to stderr logging.
Use wget instead of curl.
Don't redownload libuuid or libwebsockets.
2018-10-27 08:14:57 +01:00
Roger A. Light
26e5766182
Docker volume/mount point fixes per review.
...
https://github.com/docker-library/official-images/pull/4987#issuecomment-433185843
2018-10-26 07:31:44 +01:00
Roger A. Light
064d94581c
Remove renamed files, fix readme.
2018-10-26 07:31:22 +01:00
Roger A. Light
5aa983c210
Fix copy/paste error.
2018-10-25 20:41:34 +01:00
Roger A. Light
12fa336140
Handle some incoming PUBLISH properties.
...
PAYLOAD_FORMAT_INDICATOR, CORRELATION_DATA, USER_PROPERTY, CONTENT_TYPE
are now all passed on to subscribing clients from an incoming PUBLISH
only (not from Wills). The other PUBLISH properties are silently
dropped.
2018-10-25 16:35:24 +01:00
Roger A. Light
6996fd450a
Simple pub/sub/unsub tests for v5.
2018-10-25 14:57:41 +01:00
Roger A. Light
52c25fa899
Simple connect test for v5.
2018-10-25 14:43:43 +01:00
Roger A. Light
b6c667689d
Write properties for all commands apart from AUTH.
2018-10-25 13:21:42 +01:00
Roger A. Light
8077376a79
Add read support for AUTH packets.
2018-10-25 12:54:17 +01:00
Roger A. Light
ca40255720
mid == 0 is a protocol error.
2018-10-25 12:12:57 +01:00
Roger A. Light
eefa7f7604
All existing commands read properties.
2018-10-25 12:11:00 +01:00
Roger A. Light
723d9c2782
Check whether properties are on the correct commands.
2018-10-25 11:23:04 +01:00
Roger A. Light
267178bd99
User properties are copied from PUBLISH to PUBLISH.
2018-10-25 10:24:19 +01:00
Roger A. Light
d60b9d4e5d
Rewrite docker files for 1.5 support.
...
Builds from source.
Carries out security checks on downloads.
2018-10-24 17:00:15 +01:00
Roger A. Light
0baf358cf8
Add properties member to will struct.
2018-10-24 14:07:09 +01:00