FACT++  1.0
void ConnectionFSC::HandleReadTimeout ( const bs::error_code &  error)
inlineprivate

Definition at line 519 of file fscctrl.cc.

References Error(), and str.

520  {
521  if (error==ba::error::basic_errors::operation_aborted)
522  return;
523 
524  if (error)
525  {
526  ostringstream str;
527  str << "Read timeout of " << URL() << ": " << error.message() << " (" << error << ")";// << endl;
528  Error(str);
529 
530  PostClose();
531  return;
532 
533  }
534 
535  if (!is_open())
536  {
537  // For example: Here we could schedule a new accept if we
538  // would not want to allow two connections at the same time.
539  return;
540  }
541 
542  // Check whether the deadline has passed. We compare the deadline
543  // against the current time since a new asynchronous operation
544  // may have moved the deadline before this actor had a chance
545  // to run.
546  if (fInTimeout.expires_at() > ba::deadline_timer::traits_type::now())
547  return;
548 
549  Error("Timeout reading data from "+URL());
550 
551  PostClose();
552  }
char str[80]
Definition: test_client.c:7
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function: