Compare commits

..

3 Commits

Author SHA1 Message Date
i-chvets
a86c06d04d Merge pull request #112 from Telecominfraproject/WIFI-13597-fix-kafka-producer-using-poll
Wifi 13597 fix kafka producer using poll
2024-07-12 11:01:39 -04:00
TIP Automation User
894daa01d1 Chg: update image tag in helm values to v3.1.0 2024-06-29 16:50:24 +00:00
TIP Automation User
c63937b342 Chg: update image tag in helm values to v3.1.0-RC1 2024-06-09 17:01:44 +00:00
3 changed files with 3 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.13)
project(owsec VERSION 3.2.0)
project(owsec VERSION 3.1.0)
set(CMAKE_CXX_STANDARD 17)

View File

@@ -9,7 +9,7 @@ fullnameOverride: ""
images:
owsec:
repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owsec
tag: main
tag: v3.1.0
pullPolicy: Always
# regcred:
# registry: tip-tip-wlan-cloud-ucentral.jfrog.io

View File

@@ -107,17 +107,8 @@ namespace OpenWifi {
NewMessage.partition(0);
NewMessage.payload(Msg->Payload());
Producer.produce(NewMessage);
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_,
fmt::format("Caught a Kafka exception (producer): {}", E.what()));