Commit 287c01a 1 parent 4239124 commit 287c01a Copy full SHA for 287c01a
File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -1894,7 +1894,9 @@ fromNetwork(
1894
1894
constexpr auto RPC_REPLY_MAX_BYTES = megabytes (256 );
1895
1895
1896
1896
using namespace std ::chrono_literals;
1897
- auto constexpr RPC_NOTIFY = 10min;
1897
+ // auto constexpr RPC_NOTIFY = 10min; // Wietse: lolwut 10 minutes for one
1898
+ // HTTP call?
1899
+ auto constexpr RPC_NOTIFY = 30s;
1898
1900
1899
1901
HTTPClient::request (
1900
1902
bSSL,
Original file line number Diff line number Diff line change @@ -78,12 +78,14 @@ class RPCSubImp : public RPCSub
78
78
{
79
79
std::lock_guard sl (mLock );
80
80
81
- if (mDeque .size () >= eventQueueMax)
82
- {
83
- // Drop the previous event.
84
- JLOG (j_.warn ()) << " RPCCall::fromNetwork drop" ;
85
- mDeque .pop_back ();
86
- }
81
+ // Wietse: we're not going to limit this, this is admin-port only, scale
82
+ // accordingly Dropping events just like this results in inconsistent
83
+ // data on the receiving end if (mDeque.size() >= eventQueueMax)
84
+ // {
85
+ // // Drop the previous event.
86
+ // JLOG(j_.warn()) << "RPCCall::fromNetwork drop";
87
+ // mDeque.pop_back();
88
+ // }
87
89
88
90
auto jm = broadcast ? j_.debug () : j_.info ();
89
91
JLOG (jm) << " RPCCall::fromNetwork push: " << jvObj;
@@ -182,7 +184,8 @@ class RPCSubImp : public RPCSub
182
184
}
183
185
184
186
private:
185
- enum { eventQueueMax = 32 };
187
+ // Wietse: we're not going to limit this, this is admin-port only, scale
188
+ // accordingly enum { eventQueueMax = 32 };
186
189
187
190
boost::asio::io_service& m_io_service;
188
191
JobQueue& m_jobQueue;
You can’t perform that action at this time.
0 commit comments