Roger A. Light
1b702538f9
Add check and matches functions which take length arguments.
...
mosquitto_pub_topic_check2()
mosquitto_sub_topic_check2()
mosquitto_topic_matches_sub2()
2018-02-11 21:31:34 +00:00
Roger A. Light
3066f89a24
packet__read_string() returns the string length.
2018-02-11 20:47:17 +00:00
Roger A. Light
15486f48e7
[636] Correctly handle empty files with "mosquitto_pub -l".
...
Thanks to Aleksandr Makarov.
Bug: https://github.com/eclipse/mosquitto/issues/676
2018-01-22 17:52:56 +00:00
JonoJensen
7d8d04bc39
Fix issue when SSL_connect() returns SSL_ERROR_WANT_READ. A call to SSL_write here will later transmit a new client hello and make ssl connection fail.
...
Signed-off-by: JonoJensen <jono.jensen@yahoo.se>
2018-01-14 23:18:28 +00:00
Roger A. Light
ff55499725
Fix persistence reloading.
2018-01-13 21:11:07 +00:00
Roger A. Light
027c5d7f6e
Don't remove invalid socket from epoll fd.
2018-01-13 21:10:24 +00:00
Michael Heimpold
338322fa9c
sub_client: allow to specify a timeout (refs #275 )
...
This add a new command line parameter to give a timeout for message
processing. It is implemented using alarm(2) and thus available at
the moment only for POSIX platforms (also because I have no WIN32
build environment at hand).
Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com>
2018-01-12 14:59:53 +01:00
Michael Heimpold
26a81747cd
mosquitto_loop_forever: use nanosleep instead of sleep
...
The advantage of nanosleep(2) is, that -according to POSIX spec- it does not
interact with signals as sleep(3) does. So it is not affected when used by a
program which is e.g. using alarm(3).
Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com>
2018-01-12 14:59:53 +01:00
Roger A. Light
c4f8bee34c
Amend xsltproc dep docs.
2018-01-12 13:45:37 +00:00
Michael Heimpold
0f3d641e68
readme: mention documentation build requirements
...
Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com>
2018-01-12 13:44:40 +00:00
Roger A. Light
2283585e39
Remove build timestamp information for reproducible builds.
2018-01-12 13:41:09 +00:00
Roger A. Light
58abadd307
Update changelog.
2018-01-12 13:36:20 +00:00
Pierre Fersing
59380cef2d
Fix CONNACK not send over WebSocket for bad auth
...
When client over WebSockets fail to authenticate, the CONNACK packet was
not sent because the connection was closed too early. Closes #18 .
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2018-01-12 13:34:12 +00:00
Tatsuzo Osawa
2cd553c883
Add Changelog for #667
...
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
2018-01-12 13:27:52 +00:00
Roger A. Light
b4c72e8fc0
Fix HUP disconnecting clients incorrectly.
...
Bug: https://github.com/eclipse/mosquitto/issues/657
2018-01-10 22:34:03 +00:00
Roger A. Light
b02c1a41bb
[670] Fix topic matching of foo/bar against foo/+/#
...
Thanks to mrdis.
Bug: https://github.com/eclipse/mosquitto/issues/670
2018-01-09 14:36:19 +00:00
Roger A. Light
9c6a5f3cf0
[656] Fix building on Windows.
...
Thanks to Arun Kirthi Cherian.
Bug: https://github.com/eclipse/mosquitto/issues/656
2018-01-06 22:42:40 +00:00
Tatsuzo Osawa
024fd400d4
Fix Unsubscribe with No Topic
...
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
2018-01-06 12:11:06 +00:00
Pierre Fersing
254f30cdb1
Fix mosquitto_want_write for TLS sock connecting
...
Copied logic from mosquitto_loop which was already patched by
39ffd6fa
.
Bugs: #648
2018-01-05 15:39:11 +01:00
Pierre Fersing
c86b38cab6
[563] Fix mysql_log example
2018-01-04 11:07:50 +01:00
Roger A. Light
8025f5a29b
Fix ansi function declarations in html output.
2018-01-03 20:36:31 +00:00
Pierre Fersing
7775924bae
[534]Fix upgrade_outgoing_qos for retained message
2018-01-03 18:50:34 +01:00
Pierre Fersing
7df5c40004
Fix $SYS counters when message is sent over WS
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2018-01-02 16:51:56 +01:00
Pierre Fersing
a47c1a821b
Add test for bridge topic name mapping
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2017-12-29 16:59:39 +01:00
Pierre Fersing
60cb8bedb0
Fix <option> closing too early in man page
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2017-12-29 13:57:10 +01:00
Pierre Fersing
94ae095895
Update man page for "remote_clientid"
...
Fix occurent of old "clientid" option which was renamed in
"remote_clientid".
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2017-12-29 13:54:08 +01:00
Pierre Fersing
71a748e1c4
Remove duplicated bridge_attempt_unsubscribe option
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2017-12-29 13:50:09 +01:00
Pierre Fersing
a4e912079f
Merge pull request #403 from gavinsherry/master
2017-12-23 10:33:52 +01:00
Roger A. Light
b193918ca0
[649] Don't close socket again if nonblock fails.
...
Thanks to Edwin van den Oetelaar.
Bug: https://github.com/eclipse/mosquitto/issues/649
2017-12-21 21:56:01 +00:00
Roger A. Light
ae666b07ce
[654] Initialise "result" in mosquitto_topic_matches_sub.
...
Thanks to markhermelinggt.
Bug: https://github.com/eclipse/mosquitto/issues/654
2017-12-21 08:36:58 +00:00
Roger A. Light
7f82cdc753
[652] Don't limit config file lines to 1024 chars.
...
Bug: https://github.com/eclipse/mosquitto/issues/652
2017-12-20 11:00:16 +00:00
Roger A. Light
d2118aeb17
[636] Don't run TLS-PSK tests when disabled at compile time.
...
Thanks to 'TBK'.
Bug: https://github.com/eclipse/mosquitto/issues/636
2017-12-03 21:20:40 +00:00
Michael Heimpold
48dec391f7
Quote ${DESTDIR} usage in various Makefiles
...
This prevents failures during make install when whitespace
is part of DESTDIR pathname.
Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com>
2017-12-01 22:28:26 +00:00
Roger A. Light
d3239920d7
Validate UTF-8 client ids, usernames and topics.
2017-08-16 11:28:54 +01:00
Roger A. Light
0745bcdb91
Improve some struct ordering.
2017-08-12 00:25:59 +01:00
Roger A. Light
8795f063d4
Add ability to deny access to SUBSCRIBE messages.
...
This is as well as the current read/write accesses. Currently for auth
plugins only.
2017-08-11 22:15:37 +01:00
Roger A. Light
712cbfe599
Default to mqtt v3.1.1 for clients.
2017-08-09 23:59:08 +01:00
Roger A. Light
7096d57c3a
Documentation fix.
2017-08-09 22:17:11 +01:00
Roger A. Light
36e86355d7
Improve documentation and formatting.
2017-08-09 21:59:12 +01:00
Tatsuzo Osawa
355bb37ab9
Fix 08-ssl-bridge.conf to dial localhost by ipv4.
...
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
2017-08-09 21:25:32 +01:00
Roger A. Light
c0326c9e62
Enable epoll() by default on Linux.
2017-08-09 09:37:52 +01:00
Roger A. Light
b11855821e
Update UTF-8 validation checks.
2017-07-30 21:57:43 +01:00
Roger A. Light
a480a9daf9
Fix 08-ssl-bridge.py test when using async dns lookups.
...
Thanks to Tatsuzo Osawa.
Bug: https://github.com/eclipse/mosquitto/issues/507
2017-07-30 11:35:45 +01:00
toast-uz
df9ad5f0bd
Add Epoll. ( #495 )
...
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
2017-07-27 18:43:09 +01:00
Roger A. Light
124ee1af91
[490] Further fix for auth related crashes.
...
Bug: https://github.com/eclipse/mosquitto/issues/490
2017-07-27 14:56:10 +01:00
Roger A. Light
22063013be
[490] Fix auth plugin+WS client+MOSQ_ERR_AUTH related crash.
...
Thanks to "hasunperera".
Bug: https://github.com/eclipse/mosquitto/issues/490
2017-07-27 00:12:32 +01:00
Roger A. Light
7943072b1f
Fix use_identity_as_username not working on websockets clients.
...
Thanks to achest.
2017-07-26 23:27:04 +01:00
Roger A. Light
53c71b2a77
Fix memory leak related to use_identity_as_username.
2017-07-26 23:25:49 +01:00
Arnaud
d5e8217d20
1.4.14 support for docker ( #500 )
...
Signed-off-by: agrosjea <arnaudg@momentfactory.com>
2017-07-26 22:33:59 +01:00
Pierre Fersing
31639fec65
Add test for persistent subscription ( #501 )
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2017-07-20 19:02:55 +01:00