Spaces:
Sleeping
Sleeping
Dmitry Beresnev commited on
Commit ·
dc32982
1
Parent(s): 470e737
fix exceptions
Browse files582 unmodified lines583584585586587588582 unmodified lineshttp::write(socket, res);beast::error_code ec;socket.shutdown(boost::asio::ip::tcp::socket::shutdown_send, ec);} catch (const std::exception &e) {log_line("session_exception=" + std::string(e.what()));} catch (...) {582 unmodified lines583584585586587588589590591592593582 unmodified lineshttp::write(socket, res);beast::error_code ec;socket.shutdown(boost::asio::ip::tcp::socket::shutdown_send, ec);} catch (const beast::system_error &e) {// Suppress "end of stream" — these are TCP-level health probes (e.g. HuggingFace Spaces)// that connect and disconnect without sending an HTTP request; not a real error.if (e.code() != http::error::end_of_stream)log_line("session_exception=" + std::string(e.what()));} catch (const std::exception &e) {log_line("session_exception=" + std::string(e.what()));} catch (...) {
cpp/server.cpp+5