mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 18:57:51 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			fix_improv
			...
			release/v3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | a86c06d04d | ||
|   | 894daa01d1 | ||
|   | c63937b342 | 
							
								
								
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -21,7 +21,7 @@ defaults: | |||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   docker: |   docker: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-20.04 | ||||||
|     env: |     env: | ||||||
|       DOCKER_REGISTRY_URL: tip-tip-wlan-cloud-ucentral.jfrog.io |       DOCKER_REGISTRY_URL: tip-tip-wlan-cloud-ucentral.jfrog.io | ||||||
|       DOCKER_REGISTRY_USERNAME: ucentral |       DOCKER_REGISTRY_USERNAME: ucentral | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| cmake_minimum_required(VERSION 3.13) | cmake_minimum_required(VERSION 3.13) | ||||||
| project(owsec VERSION 3.2.0) | project(owsec VERSION 3.1.0) | ||||||
|  |  | ||||||
| set(CMAKE_CXX_STANDARD 17) | set(CMAKE_CXX_STANDARD 17) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ fullnameOverride: "" | |||||||
| images: | images: | ||||||
|   owsec: |   owsec: | ||||||
|     repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owsec |     repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owsec | ||||||
|     tag: main |     tag: v3.1.0 | ||||||
|     pullPolicy: Always |     pullPolicy: Always | ||||||
| #    regcred: | #    regcred: | ||||||
| #      registry: tip-tip-wlan-cloud-ucentral.jfrog.io | #      registry: tip-tip-wlan-cloud-ucentral.jfrog.io | ||||||
|   | |||||||
| @@ -107,20 +107,7 @@ namespace OpenWifi { | |||||||
| 					NewMessage.partition(0); | 					NewMessage.partition(0); | ||||||
| 					NewMessage.payload(Msg->Payload()); | 					NewMessage.payload(Msg->Payload()); | ||||||
| 					Producer.produce(NewMessage); | 					Producer.produce(NewMessage); | ||||||
| 					if (Queue_.size() < 100) { | 					Producer.poll((std::chrono::milliseconds) 0); | ||||||
| 						// 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); |  | ||||||
| 					} |  | ||||||
| 				} |  | ||||||
| 	                        if (Queue_.size() == 0) { |  | ||||||
| 					// message queue is empty, flush all previously sent messages |  | ||||||
| 					Producer.flush(); |  | ||||||
| 				} | 				} | ||||||
| 			} catch (const cppkafka::HandleException &E) { | 			} catch (const cppkafka::HandleException &E) { | ||||||
| 				poco_warning(Logger_, | 				poco_warning(Logger_, | ||||||
| @@ -130,6 +117,10 @@ namespace OpenWifi { | |||||||
| 			} catch (...) { | 			} catch (...) { | ||||||
| 				poco_error(Logger_, "std::exception"); | 				poco_error(Logger_, "std::exception"); | ||||||
| 			} | 			} | ||||||
|  | 			if (Queue_.size() == 0) { | ||||||
|  | 				// message queue is empty, flush all previously sent messages | ||||||
|  | 				Producer.flush(); | ||||||
|  | 			} | ||||||
| 			Note = Queue_.waitDequeueNotification(); | 			Note = Queue_.waitDequeueNotification(); | ||||||
| 		} | 		} | ||||||
| 		Producer.flush(); | 		Producer.flush(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user