mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-06 19:55:49 +00:00
Compare commits
3 Commits
hook-api-u
...
fix/rpc-qu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e26fd326e0 | ||
|
|
6fdb285d48 | ||
|
|
e2e0186b32 |
@@ -1894,7 +1894,9 @@ fromNetwork(
|
|||||||
constexpr auto RPC_REPLY_MAX_BYTES = megabytes(256);
|
constexpr auto RPC_REPLY_MAX_BYTES = megabytes(256);
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
auto constexpr RPC_NOTIFY = 10min;
|
// auto constexpr RPC_NOTIFY = 10min; // Wietse: lolwut 10 minutes for one
|
||||||
|
// HTTP call?
|
||||||
|
auto constexpr RPC_NOTIFY = 30s;
|
||||||
|
|
||||||
HTTPClient::request(
|
HTTPClient::request(
|
||||||
bSSL,
|
bSSL,
|
||||||
|
|||||||
@@ -78,12 +78,14 @@ public:
|
|||||||
{
|
{
|
||||||
std::lock_guard sl(mLock);
|
std::lock_guard sl(mLock);
|
||||||
|
|
||||||
if (mDeque.size() >= eventQueueMax)
|
// Wietse: we're not going to limit this, this is admin-port only, scale
|
||||||
{
|
// accordingly Dropping events just like this results in inconsistent
|
||||||
// Drop the previous event.
|
// data on the receiving end if (mDeque.size() >= eventQueueMax)
|
||||||
JLOG(j_.warn()) << "RPCCall::fromNetwork drop";
|
// {
|
||||||
mDeque.pop_back();
|
// // Drop the previous event.
|
||||||
}
|
// JLOG(j_.warn()) << "RPCCall::fromNetwork drop";
|
||||||
|
// mDeque.pop_back();
|
||||||
|
// }
|
||||||
|
|
||||||
auto jm = broadcast ? j_.debug() : j_.info();
|
auto jm = broadcast ? j_.debug() : j_.info();
|
||||||
JLOG(jm) << "RPCCall::fromNetwork push: " << jvObj;
|
JLOG(jm) << "RPCCall::fromNetwork push: " << jvObj;
|
||||||
@@ -182,7 +184,8 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum { eventQueueMax = 32 };
|
// Wietse: we're not going to limit this, this is admin-port only, scale
|
||||||
|
// accordingly enum { eventQueueMax = 32 };
|
||||||
|
|
||||||
boost::asio::io_service& m_io_service;
|
boost::asio::io_service& m_io_service;
|
||||||
JobQueue& m_jobQueue;
|
JobQueue& m_jobQueue;
|
||||||
|
|||||||
Reference in New Issue
Block a user