Changeset 10822 for trunk/FACT++/src
- Timestamp:
- 05/25/11 16:25:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Connection.cc
r10780 r10822 123 123 void Connection::HandleWriteTimeout(const bs::error_code &error) 124 124 { 125 if (error==ba::error::basic_errors::operation_aborted) 126 return; 127 125 128 // 125: Operation canceled (bs::error_code(125, bs::system_category)) 126 if (error && error!=ba::error::basic_errors::operation_aborted)129 if (error) 127 130 { 128 131 ostringstream str; … … 155 158 void Connection::HandleSentData(const bs::error_code& error, size_t n) 156 159 { 157 if (error )160 if (error && error != ba::error::not_connected) 158 161 { 159 162 ostringstream str; … … 165 168 } 166 169 167 ostringstream msg; 168 msg << n << " bytes successfully sent to " << URL(); 169 Message(msg); 170 if (error == ba::error::not_connected) 171 { 172 ostringstream msg; 173 msg << n << " bytes could not be sent to " << URL() << " due to missing connection."; 174 Warn(msg); 175 } 176 else 177 { 178 ostringstream msg; 179 msg << n << " bytes successfully sent to " << URL(); 180 Message(msg); 181 } 170 182 171 183 // This is "thread" safe because SendMessage and HandleSentMessage … … 236 248 void Connection::HandleConnectionTimer(const bs::error_code &error) 237 249 { 238 // 125: Operation canceled 239 if (error && error!=ba::error::basic_errors::operation_aborted) 250 if (error==ba::error::basic_errors::operation_aborted) 251 return; 252 253 if (error) 240 254 { 241 255 ostringstream str; … … 286 300 fConnectionStatus = kConnecting; 287 301 302 // FIXME: "No route to host (syytem::113)" gives error:"Operation already in progress. (system:114)" 288 303 ostringstream msg; 289 304 if (!host.empty())
Note:
See TracChangeset
for help on using the changeset viewer.