Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 441950

Summary: Check client use from multiple threads
Product: z_Archived Reporter: Ian Craggs <icraggs>
Component: PahoAssignee: Ian Craggs <icraggs>
Status: CLOSED NOT_ECLIPSE QA Contact: Project Inbox <paho-inbox>
Severity: normal    
Priority: P3 CC: james.sutton, paho-inbox
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ian Craggs CLA 2014-08-18 05:29:04 EDT
A new test should be created which checks the use of both C client libraries (multi-threaded mode for the sync library) from multiple client threads.

I expect the locking to work correctly.  What I suspect may be a problem is the starting of the background thread(s).  Only one instance of each should be started.  This depends on the variables storing the thread state being shared.

Needs to be checked on all operating systems (Linux, Windows, Mac), as it may be OS dependent.
Comment 1 Ian Craggs CLA 2015-02-09 06:19:15 EST
Adding helpwanted flag
Comment 2 Ian Craggs CLA 2015-08-13 11:50:41 EDT
I've created test2 which test multiple thread access to the same client object for MQTTClient.

Remaining tests:
	- multiple thread access to multiple client objects for MQTTClient
	- the same two tests for MQTTAsync
Comment 3 James Sutton CLA 2016-02-05 06:35:04 EST
Migrated to GitHub Issue: https://github.com/eclipse/paho.mqtt.c/issues/25
Comment 4 Ian Craggs CLA 2019-08-07 12:00:27 EDT
Moved to Github