FACT++  1.0
void ConnectionSQM::HandleRequestTrigger ( const bs::error_code &  error)
inlineprivate

Definition at line 172 of file sqmctrl.cc.

References Error(), and str.

Referenced by ConnectionEstablished(), and HandleRead().

173  {
174 
175  // 125: Operation canceled (bs::error_code(125, bs::system_category))
176  if (error && error!=ba::error::basic_errors::operation_aborted)
177  {
178  ostringstream str;
179  str << "RequestTrigger failed of " << URL() << " failed: " << error.message() << " (" << error << ")";// << endl;
180  Error(str);
181 
182  PostClose(false);
183  return;
184  }
185 
186  if (!is_open())
187  {
188  // For example: Here we could schedule a new accept if we
189  // would not want to allow two connections at the same time.
190  //PostClose(true);
191  return;
192  }
193 
194  // Check whether the deadline has passed. We compare the deadline
195  // against the current time since a new asynchronous operation
196  // may have moved the deadline before this actor had a chance
197  // to run.
198  if (fTrigger.expires_at() > ba::deadline_timer::traits_type::now())
199  return;
200 
201  StartReadReport();
202  }
char str[80]
Definition: test_client.c:7
void StartReadReport()
Definition: sqmctrl.cc:204
boost::asio::deadline_timer fTrigger
Definition: sqmctrl.cc:38
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function:

+ Here is the caller graph for this function: