summaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/http
diff options
context:
space:
mode:
authorilnurkh <[email protected]>2023-10-17 08:15:44 +0300
committerilnurkh <[email protected]>2023-10-17 09:00:07 +0300
commit784925324fd115c37bc98c5bbfe64c15f9966d74 (patch)
treef763f6eaacfcd4757d249977aaddfa4e9b2a355b /library/cpp/actors/http
parentd6c75d9ec33559b29eb61a8f2e17cbca30fd5ae2 (diff)
Y_FAIL->Y_ABORT at '^li'
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/actors/http')
-rw-r--r--library/cpp/actors/http/http.cpp8
-rw-r--r--library/cpp/actors/http/http_proxy.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/actors/http/http.cpp b/library/cpp/actors/http/http.cpp
index 22d54093439..9da46e412bb 100644
--- a/library/cpp/actors/http/http.cpp
+++ b/library/cpp/actors/http/http.cpp
@@ -14,7 +14,7 @@ inline TStringBuf operator +(TStringBuf l, TStringBuf r) {
if (r.end() == l.begin()) {
return TStringBuf(r.data(), l.size() + r.size());
}
- Y_FAIL("oops");
+ Y_ABORT("oops");
return TStringBuf();
}
@@ -203,7 +203,7 @@ void THttpParser<THttpRequest, TSocketBuffer>::Advance(size_t len) {
break;
}
default:
- Y_FAIL("Invalid processing sequence");
+ Y_ABORT("Invalid processing sequence");
break;
}
}
@@ -590,10 +590,10 @@ THttpOutgoingRequest::THttpOutgoingRequest(TStringBuf method, TStringBuf scheme,
THttpOutgoingRequest::THttpOutgoingRequest(TStringBuf method, TStringBuf url, TStringBuf protocol, TStringBuf version) {
TStringBuf scheme, host, uri;
if (!CrackURL(url, scheme, host, uri)) {
- Y_FAIL("Invalid URL specified");
+ Y_ABORT("Invalid URL specified");
}
if (!scheme.empty() && scheme != "http" && scheme != "https") {
- Y_FAIL("Invalid URL specified");
+ Y_ABORT("Invalid URL specified");
}
Secure = (scheme == "https");
TString urie = UrlEscapeRet(uri);
diff --git a/library/cpp/actors/http/http_proxy.cpp b/library/cpp/actors/http/http_proxy.cpp
index ea7792ef813..74bf4976323 100644
--- a/library/cpp/actors/http/http_proxy.cpp
+++ b/library/cpp/actors/http/http_proxy.cpp
@@ -87,13 +87,13 @@ protected:
void Handle(TEvHttpProxy::TEvHttpIncomingResponse::TPtr event, const NActors::TActorContext& ctx) {
Y_UNUSED(event);
Y_UNUSED(ctx);
- Y_FAIL("This event shouldn't be there, it should go to the http connection owner directly");
+ Y_ABORT("This event shouldn't be there, it should go to the http connection owner directly");
}
void Handle(TEvHttpProxy::TEvHttpOutgoingResponse::TPtr event, const NActors::TActorContext& ctx) {
Y_UNUSED(event);
Y_UNUSED(ctx);
- Y_FAIL("This event shouldn't be there, it should go to the http connection directly");
+ Y_ABORT("This event shouldn't be there, it should go to the http connection directly");
}
void Handle(TEvHttpProxy::TEvHttpOutgoingRequest::TPtr event, const NActors::TActorContext& ctx) {