You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now require/link Boost::url when using Boost 1.81+; fallback logic keeps compatibility with older Boost versions.
Harden ETP session code: avoid holding locks while doing work, add sleeps in busy-wait loops to prevent spin, early-return on resolver errors.
fesapi_log("Cannot send Message id :", std::to_string(std::get<0>(front)->messageHeader.messageId), "because the previous message has not finished to be sent.");
137
+
fesapi_log("Cannot send Message id :", std::to_string(std::get<0>(front)->messageHeader.messageId), " because the previous message has not finished to be sent.");
138
+
return;
139
+
}
140
+
fesapi_log("Sending Message id :", std::to_string(std::get<0>(front)->messageHeader.messageId));
141
+
142
+
auto avroBytes = std::get<0>(front)->encodeHeaderAndBody();
143
+
if (avroBytes->size() >= maxWebSocketMessagePayloadSize) {
144
+
throwstd::invalid_argument("You cannot send a message which is too big. Please use message part or chunk or whatever else.");
136
145
}
137
-
else {
138
-
fesapi_log("Sending Message id :", std::to_string(std::get<0>(front)->messageHeader.messageId));
139
-
140
-
auto avroBytes = std::get<0>(front)->encodeHeaderAndBody();
141
-
142
-
//asio::buffer is a non-owning view. We must keep the underlying storage alive until the I/O completes.
143
-
if (avroBytes->size() < maxWebSocketMessagePayloadSize) {
send(ETP_NS::EtpHelpers::buildSingleMessageProtocolException(19, "The agent is unable to de-serialize the body of the message id " + std::to_string(receivedMh.messageId) + " : " + std::string(e.what())), 0, 0x02);
175
154
}
176
155
177
-
if (specificProtocolHandlers.empty() && isCloseRequested_)
auto it = protocolHandlers.find(static_cast<std::underlying_type<Energistics::Etp::v12::Datatypes::Protocol>::type>(Energistics::Etp::v12::Datatypes::Protocol::Core));
0 commit comments