mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-30 18:27:49 +00:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			v3.1.0
			...
			version_up
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 1977ecdfb7 | ||
|   | 1d703e1737 | ||
|   | 22ddb40d4c | ||
|   | 791b72aec4 | ||
|   | bb09f919e6 | 
| @@ -1,5 +1,5 @@ | ||||
| cmake_minimum_required(VERSION 3.13) | ||||
| project(owsec VERSION 3.1.0) | ||||
| project(owsec VERSION 3.2.0) | ||||
|  | ||||
| set(CMAKE_CXX_STANDARD 17) | ||||
|  | ||||
|   | ||||
| @@ -107,7 +107,16 @@ namespace OpenWifi { | ||||
| 					NewMessage.partition(0); | ||||
| 					NewMessage.payload(Msg->Payload()); | ||||
| 					Producer.produce(NewMessage); | ||||
| 					Producer.poll((std::chrono::milliseconds) 0); | ||||
| 					if (Queue_.size() < 100) { | ||||
| 						// use flush when internal queue is lightly loaded, i.e. flush after each | ||||
| 						// message | ||||
| 						Producer.flush(); | ||||
| 					} | ||||
| 					else { | ||||
| 						// use poll when internal queue is loaded to allow messages to be sent in | ||||
| 						// batches | ||||
| 						Producer.poll((std::chrono::milliseconds) 0); | ||||
| 					} | ||||
| 				} | ||||
| 			} catch (const cppkafka::HandleException &E) { | ||||
| 				poco_warning(Logger_, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user