mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-30 02:02:36 +00:00 
			
		
		
		
	Compare commits
	
		
			9 Commits
		
	
	
		
			WIFI-431-f
			...
			v3.1.0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 36f491b1e2 | ||
|   | f39388d994 | ||
|   | 4ae0b99f55 | ||
|   | d7e05eac60 | ||
|   | 3b8a8bafff | ||
|   | d1a830bcb4 | ||
|   | 20785d82ce | ||
|   | 1327b29d7b | ||
|   | 226cd3e9e9 | 
| @@ -1,5 +1,5 @@ | ||||
| cmake_minimum_required(VERSION 3.13) | ||||
| project(owprov VERSION 3.0.2) | ||||
| project(owprov VERSION 3.1.0) | ||||
|  | ||||
| set(CMAKE_CXX_STANDARD 17) | ||||
|  | ||||
|   | ||||
| @@ -9,7 +9,7 @@ fullnameOverride: "" | ||||
| images: | ||||
|   owprov: | ||||
|     repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owprov | ||||
|     tag: main | ||||
|     tag: v3.1.0 | ||||
|     pullPolicy: Always | ||||
| #    regcred: | ||||
| #      registry: tip-tip-wlan-cloud-ucentral.jfrog.io | ||||
|   | ||||
| @@ -107,7 +107,16 @@ namespace OpenWifi { | ||||
| 					NewMessage.partition(0); | ||||
| 					NewMessage.payload(Msg->Payload()); | ||||
| 					Producer.produce(NewMessage); | ||||
| 					Producer.flush(); | ||||
| 					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_, | ||||
| @@ -117,8 +126,13 @@ namespace OpenWifi { | ||||
| 			} catch (...) { | ||||
| 				poco_error(Logger_, "std::exception"); | ||||
| 			} | ||||
| 			if (Queue_.size() == 0) { | ||||
| 				// message queue is empty, flush all previously sent messages | ||||
| 				Producer.flush(); | ||||
| 			} | ||||
| 			Note = Queue_.waitDequeueNotification(); | ||||
| 		} | ||||
| 		Producer.flush(); | ||||
| 		poco_information(Logger_, "Stopped..."); | ||||
| 	} | ||||
|  | ||||
| @@ -324,4 +338,4 @@ namespace OpenWifi { | ||||
| 											   partitions.front().get_partition())); | ||||
| 	} | ||||
|  | ||||
| } // namespace OpenWifi | ||||
| } // namespace OpenWifi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user