Commit Graph

1718 Commits

Author SHA1 Message Date
Ian Craggs 90ef1087fb Add test trace debug 2022-07-01 11:41:33 +01:00
Ian Craggs 17fd7a8446 Add some assertions to test5 2022-06-30 19:31:24 +01:00
Ian Craggs e065cd28d1 Add debug for some tests 2022-06-30 18:46:16 +01:00
Ian Craggs 66a65bfb53 Skip close code when socket count is 0 for the poll implementation 2022-06-30 13:03:20 +01:00
Ian Craggs 6f276a3ea0 Ensure reconnect attempts continue if connect command add fails #1215 2022-06-29 17:37:41 +01:00
Ian Craggs 56c6151e9b Fix some timing issues in some scenarios for the poll implementation 2022-05-26 21:26:39 +01:00
Ian Craggs 22690b8881 To avoid a startup delay, don't increase cycle read timeout until some work is ready 2022-05-26 21:25:09 +01:00
Ian Craggs f54f10ec10 Set username and password fields to NULL if not used #1227 2022-05-20 13:26:34 +01:00
Ian Craggs e72f39ffba Add security and code of conduct directly 2022-04-08 17:41:13 +01:00
Ian Craggs 9798913282 Protect running variable #1214 2022-04-04 13:06:51 +01:00
Ian Craggs 29ed338abc Merge branch 'develop' of github.com:eclipse/paho.mqtt.c into develop 2022-03-22 15:03:24 +00:00
Ian Craggs 0b31833ade Update patch version number 2022-03-22 15:02:26 +00:00
Ian Craggs 4b9103bc31 Make #1203 fix work across multiple clients 2022-03-22 15:00:05 +00:00
Ian Craggs 6af66f31e2 Update tests so they don't try to assign a now invalid value #1193 2022-03-07 20:30:59 +00:00
Ian Craggs 5bb49f8772 Ensure options aren't null #1193 2022-03-07 17:42:25 +00:00
Ian Craggs 045ce2d492 Don't allow maxBufferedMessages to be set to 0 #1193 2022-03-07 11:20:41 +00:00
Ian Craggs b36c86e3ba Add warning about API calls in trace callback #1200 2022-03-07 11:03:37 +00:00
Ian Craggs 5fa7baf227 If first round of commit retries doesn't finish, complete it later #1203 2022-03-04 10:50:29 +00:00
Ian Craggs 5bf0e00ea2 Free data on SSL abort write #1206 2022-03-04 10:48:41 +00:00
Ian Craggs 743ff1be69 Ensure return code from Socket_new is SOCKET_ERROR on error #1192 2022-02-19 18:25:10 +00:00
Ian Craggs 0f0e5e4d92 Send QoS 2 responses under more circumstances #1114 2022-02-19 18:14:50 +00:00
Ian Craggs c88c957e1a Merge branch 'locez-bugfix-double-free-for-qos0' into develop 2022-02-17 14:33:29 +00:00
Ian Craggs 82d4092a75 Merge branch 'bugfix-double-free-for-qos0' of https://github.com/locez/paho.mqtt.c into locez-bugfix-double-free-for-qos0 2022-02-17 12:58:00 +00:00
10km bd1c9e598a Update CMakeLists.txt
remove '-MD' in ADD_DEFINITIONS command. why add the -MD?
this -MD forcible control MSVC generate code with /MD option
if user want to compile with /MT by set option -DCMAKE_USER_MAKE_RULES_OVERRIDE=compiler_flag_overrides.cmake in command line,
the '-MD' definition cause it not work;
2022-02-17 12:53:50 +00:00
Ian Craggs 2485e0e80a Merge branch 'develop' of github.com:eclipse/paho.mqtt.c into develop 2022-02-17 12:12:06 +00:00
Ian Craggs 78cb49db50
Merge pull request #1174 from andrey-starodubtsev/ssl_read_with_num_0
Prevent calling `SSL_read` with `num == 0`
2022-02-17 12:11:24 +00:00
Ian Craggs 3937812e0f Update copyright statements in changed samples 2022-02-17 11:24:00 +00:00
Ashechol e4b0f66ad6 Update paho_cs_pub.c
The function MQTTClient_connect() first var client should be MQTTClient, but in function myconnect() var client is a pointer of MQTTClient
2022-02-17 11:20:39 +00:00
Ashechol 864ce620e0 Update paho_cs_pub.c 2022-02-17 11:20:39 +00:00
Ashechol d00f6e9ac1 Update paho_cs_sub.c
Fixed myconnect()
2022-02-17 11:20:39 +00:00
Ian Craggs 8786689299 Remove debug again 2022-02-15 13:17:40 +00:00
Ian Craggs 9e887a2b28 Run all tests 2022-02-15 12:08:36 +00:00
Ian Craggs 7eeffadd82 More testing 2022-02-15 12:02:09 +00:00
Ian Craggs 79e216b0fd Increase debug tests 2022-02-15 11:46:01 +00:00
Ian Craggs 8ca1e5d625 Merge branch 'develop' of github.com:eclipse/paho.mqtt.c into develop 2022-02-15 11:25:47 +00:00
Ian Craggs 655b87d22c Debug for Windows 2022-02-15 11:24:33 +00:00
Ian Craggs 22e841d917 Merge branch 'poll' into develop 2022-02-14 11:28:48 +00:00
Ian Craggs b35a2dc237 Avoid slow connect in MQTTAsync #1039 2022-02-14 10:30:59 +00:00
Ian Craggs b7455f3330 Fix select timeout calculation 2022-02-11 19:01:53 +00:00
Ian Craggs edf99c19b2 Merge branch 'poll' of github.com:eclipse/paho.mqtt.c into poll 2022-02-11 17:40:52 +00:00
Ian Craggs 90c3916819 Allow old select code to be used optionally 2022-02-11 15:55:52 +00:00
Ian Craggs 4b1389e6d8 Correct freeing of some persistence buffers 2022-02-11 14:10:44 +00:00
Ian Craggs 8d37b94c38 Correct freeing of some persistence buffers 2022-02-10 18:18:10 +00:00
Ian Craggs 1964b6697a Correct freeing of some persistence buffers 2022-02-10 18:09:15 +00:00
Ian Craggs 5780587c0e Some locking for callbacks 2022-02-10 18:05:13 +00:00
Ian Craggs de5e9509f7 Fix return code from getrawsocketdata 2022-02-10 18:02:51 +00:00
Ian Craggs 932cfbb62c Fix memmove length calculation 2022-02-09 20:25:19 +00:00
Ian Craggs 5b240c29a1 Reinstate all Windows tests 2022-02-09 11:11:16 +00:00
Ian Craggs 487d3a574f Remove test8 extra trace 2022-02-09 10:51:50 +00:00
Ian Craggs 7004cb8a28 Fix test8 and remove debug printfs 2022-02-09 10:49:39 +00:00