FACT++  1.0
void ConnectionPFmini::HandleRequest ( const bs::error_code &  error)
inlineprivate

Definition at line 93 of file pfminictrl.cc.

References Error(), and str.

Referenced by Request().

94  {
95  // 125: Operation canceled (bs::error_code(125, bs::system_category))
96  if (error && error!=ba::error::basic_errors::operation_aborted)
97  {
98  ostringstream str;
99  str << "Timeout of " << URL() << ": " << error.message() << " (" << error << ")";// << endl;
100  Error(str);
101 
102  PostClose(false);
103  return;
104  }
105 
106  // Check whether the deadline has passed. We compare the deadline
107  // against the current time since a new asynchronous operation
108  // may have moved the deadline before this actor had a chance
109  // to run.
110  if (fKeepAlive.expires_at() > ba::deadline_timer::traits_type::now())
111  return;
112 
113  // Re-open connection
114  PostClose(true);
115  }
char str[80]
Definition: test_client.c:7
boost::asio::deadline_timer fKeepAlive
Definition: pfminictrl.cc:91
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function:

+ Here is the caller graph for this function: