Commit Graph

1390 Commits

Author SHA1 Message Date
Ian Craggs f8a111b5cd Add some websockets retry/persistence tests 2020-05-18 18:22:29 +01:00
Ian Craggs c7f6161b4c Synchronize assign msgid on mqttcommand mutex #880 2020-05-13 18:52:15 +01:00
Ian Craggs 46c5ccb5a8 Move httpHeaders to end of connect options for binary compatibility #887 2020-05-13 18:49:59 +01:00
Ian Craggs 1baf2acfc4 Recomment out the timed getaddrinfo because of ECONNABORTED #870 2020-05-13 18:45:10 +01:00
Ian Craggs c75dbbe9db getaddrinfo timeout again 2020-05-13 16:05:28 +01:00
Ian Craggs ad214f2e02 Debug for getaddrinfo timeout 2020-05-13 15:10:12 +01:00
Ian Craggs c68b17607d See if we can get the getaddrinfo timeout code to not timeout 2020-05-13 12:00:12 +01:00
Ian Craggs bd4cd3c5ab Uncomment getaddrinfo timeout #870 2020-05-13 10:44:11 +01:00
Ian Craggs 146d210add Update README with more useful info 2020-05-12 22:45:18 +01:00
Ian Craggs 80831fbb02 Merge branch 'master' into develop 2020-05-12 15:42:06 +01:00
Ian Craggs 2a6346a161
Merge pull request #872 from ffontaine/master
Revert "Enable CXX language to support using GenerateExportHeader"
2020-05-12 15:41:45 +01:00
Ian Craggs 62a705ae7e Misc doc and static analysis fixes 2020-05-12 13:16:10 +01:00
Ian Craggs f003f0c658 Check outbound message list when assigning message id #649 2020-05-12 12:10:48 +01:00
Ian Craggs 6fdc8890c1 Free some memory on error #882 2020-05-11 21:31:25 +01:00
Ian Craggs b7db522826 Don't unmask websocket data if write not complete #877 2020-05-06 09:05:54 +01:00
Ian Craggs cdcd7be892 Fix websocket retry #877 2020-05-05 22:52:00 +01:00
Ian Craggs d5b2101da7 Merge branch 'master' into develop 2020-05-02 11:46:43 +01:00
Ian Craggs 62cd9290d8
Merge pull request #868 from mtrensch/bugfix/async_msgid_racecondition
Fetch clients messageid in locked state to prevent using same msgid for different messages (Issue #867)
2020-05-02 11:46:04 +01:00
Ian Craggs b2a419a08a Don't reference MQTTVersion-static 2020-05-01 11:56:13 +01:00
Ian Craggs f1459fac25 Don't build MQTTVersion for static build 2020-05-01 11:46:47 +01:00
Fabrice Fontaine 342b3824d2 Revert "Enable CXX language to support using GenerateExportHeader"
This reverts commit 23d68e8c79. Indeed,
GenerateExportHeader has been removed with commit
db5a2c216b and ENABLE_LANGUAGE(CXX) will
raise the following build failure if no C++ compiler is found:

CMake Error at CMakeLists.txt:34 (ENABLE_LANGUAGE):
  The CMAKE_CXX_COMPILER:

    /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

Fixes:
 - http://autobuild.buildroot.org/results/831ecc34b51ee2be82a3c25f5ec94f0dd2103655

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-05-01 12:41:59 +02:00
Ian Craggs aecdf1c476 More Linux build variants 2020-05-01 11:04:58 +01:00
Ian Craggs 7bc20f090e Fixup Travis config 2020-05-01 10:56:57 +01:00
Ian Craggs beb5712702 Merge branch 'develop' of github.com:eclipse/paho.mqtt.c into develop 2020-05-01 10:25:40 +01:00
Ian Craggs a9dc0a02ce Add another build for Linux 2020-05-01 10:25:02 +01:00
Michael Trensch 01cbe2033a Fetch clients messageid in locked state to prevent using same msgid multiple times, if one client uses multiple threads
Fixes #867

Signed-off-by: Michael Trensch <mtrensch@gmail.com>
2020-04-29 15:52:17 +02:00
Ian Craggs 3148fe2d5f Update Eclipse project config 2020-04-27 10:34:29 +01:00
Ian Craggs a7b32524d9 Merge branch 'develop' of github.com:eclipse/paho.mqtt.c into develop 2020-04-27 10:25:11 +01:00
Ian Craggs 05b529112d
Merge pull request #853 from tbeu/fix-error-message
Add error message for MQTTCLIENT_BAD_MQTT_VERSION
2020-04-27 10:22:47 +01:00
Ian Craggs 433a8a7fff
Merge pull request #861 from ffontaine/master
src/CMakeLists.txt: fix build on uclibc and musl
2020-04-27 10:12:43 +01:00
Fabrice Fontaine 517e8659ab src/CMakeLists.txt: fix build on uclibc or musl
Build of version 1.3.2 with uclibc or musl fails on:

[ 58%] Linking C shared library libpaho-mqtt3c.so
/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/5.5.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: cannot find -lanl
collect2: error: ld returned 1 exit status

This is due to commit 21ffebcb74 which
added a link to anl which is not available on uclibc or musl.

Fix this by checking if anl is found on the system before using it

Fixes:
 - http://autobuild.buildroot.org/results/4beb96d43180813906578b42875a1c3d4a905ed7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-04-24 23:58:06 +02:00
Ian Craggs 031a7b9492
Merge pull request #855 from mkfix/master
Fix calling convention for 'InitOnceFunction' for windows with STATIC…
2020-04-24 11:15:52 +01:00
Madhu Kumar 47b2914d55 Change WINAPI to CALLBACK as per review
Signed-off-by: Madhu Kumar <madhu.kumar@nxp.com>
2020-04-23 14:49:26 +02:00
Madhu Kumar bd87c1fd33 Fix calling convention for 'InitOnceFunction' for windows with STATIC build
Signed-off-by: Madhu Kumar <madhu.kumar@nxp.com>
2020-04-23 12:19:08 +02:00
tbeu 49e8de96d3 #847: Add error message for MQTTCLIENT_BAD_MQTT_VERSION
Additionally, only utilize MQTTCLIENT_BAD_MQTT_VERSION for unrecognized MQTT versions

Signed-off-by: tbeu <tc@tbeu.de>
2020-04-22 20:37:05 +02:00
Ian Craggs fbe39064c4 Merge branch 'develop' 2020-04-21 09:55:02 +01:00
Ian Craggs be44906706 Fix build on some Linux distros #851 2020-04-21 09:53:19 +01:00
Ian Craggs 4e4a57020a
Merge pull request #849 from jumoog/develop
build: add missing MQTTExportDeclarations.h file for release
2020-04-20 15:36:00 +01:00
Kilian von Pflugk 20bcc7b573 build: add missing MQTTExportDeclarations.h file for release
Signed-off-by: Kilian von Pflugk <github@jumoog.io>
2020-04-20 12:09:42 +02:00
Ian Craggs 872a35b665 Merge branch 'develop' 2020-04-18 14:42:42 +01:00
Ian Craggs b54218eb34 Merge branch 'develop' of github.com:eclipse/paho.mqtt.c into develop 2020-04-18 13:24:07 +01:00
Ian Craggs b20addc2a8 Update samples and doc which includes them 2020-04-18 13:18:39 +01:00
Ian Craggs d058d14437 Remove a windows compiler warning 2020-04-17 20:00:20 +01:00
Ian Craggs 3b8e1c9655 Some more Windows static initialization cleanup 2020-04-17 18:12:59 +01:00
Ian Craggs bc4c834e41 Tidy up the static Windows initialization 2020-04-17 18:04:47 +01:00
Ian Craggs 4a2ee0646b Coverity fixes 2020-04-16 13:15:15 +01:00
Ian Craggs 41bfa828ee Small README update 2020-04-16 12:23:22 +01:00
Ian Craggs 644c4d4d6c Fix some Coverity defects 2020-04-16 12:22:44 +01:00
Ian Craggs 2fecbfe7e5 Merge branch 'develop' 2020-04-15 18:36:06 +01:00
Ian Craggs 2f9641a38f Update version number to 1.3.2 2020-04-15 18:35:33 +01:00