Add slow start and back-off timeout in Fetcher
Change-Id: I0b1698f118819f32bd93b5a4ab46cfde0bc4c03a
diff --git a/src/fetcher.h b/src/fetcher.h
index 515b2e9..1bc5d03 100644
--- a/src/fetcher.h
+++ b/src/fetcher.h
@@ -133,6 +133,11 @@
uint32_t m_pipeline;
uint32_t m_activePipeline;
+ double m_rto;
+ double m_maxRto;
+ bool m_slowStart;
+ uint32_t m_threshold;
+ uint32_t m_roundCount;
boost::posix_time::ptime m_lastPositiveActivity;
@@ -142,6 +147,8 @@
ExecutorPtr m_executor; // to serialize FillPipeline events
boost::mutex m_seqNoMutex;
+ boost::mutex m_rtoMutex;
+ boost::mutex m_pipelineMutex;
};
typedef boost::error_info<struct tag_errmsg, std::string> errmsg_info_str;