| 334 | } |
| 335 | |
| 336 | void SSLServer::SendError(std::error_code ec) |
| 337 | { |
| 338 | // Skip Asio disconnect errors |
| 339 | if ((ec == asio::error::connection_aborted) || |
| 340 | (ec == asio::error::connection_refused) || |
| 341 | (ec == asio::error::connection_reset) || |
| 342 | (ec == asio::error::eof) || |
| 343 | (ec == asio::error::operation_aborted)) |
| 344 | return; |
| 345 | |
| 346 | // Skip Winsock error 995: The I/O operation has been aborted because of either a thread exit or an application request |
| 347 | if (ec.value() == 995) |
| 348 | return; |
| 349 | |
| 350 | onError(ec.value(), ec.category().name(), ec.message()); |
| 351 | } |
| 352 | |
| 353 | } // namespace Asio |
| 354 | } // namespace CppServer |