FACT++  1.0
void ConnectionLidar::HandleRequest ( const bs::error_code &  error)
inlineprotected

Definition at line 237 of file magiclidar.cc.

References Error(), and str.

Referenced by Request().

238  {
239  // 125: Operation canceled (bs::error_code(125, bs::system_category))
240  if (error && error!=ba::error::basic_errors::operation_aborted)
241  {
242  ostringstream str;
243  str << "Write timeout of " << URL() << ": " << error.message() << " (" << error << ")";// << endl;
244  Error(str);
245 
246  PostClose(false);
247  return;
248  }
249 
250  if (!is_open())
251  {
252  // For example: Here we could schedule a new accept if we
253  // would not want to allow two connections at the same time.
254  PostClose(true);
255  return;
256  }
257 
258  // Check whether the deadline has passed. We compare the deadline
259  // against the current time since a new asynchronous operation
260  // may have moved the deadline before this actor had a chance
261  // to run.
262  if (fKeepAlive.expires_at() > ba::deadline_timer::traits_type::now())
263  return;
264 
265  Request();
266  }
char str[80]
Definition: test_client.c:7
boost::asio::deadline_timer fKeepAlive
Definition: magiclidar.cc:208
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function:

+ Here is the caller graph for this function: