aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/http/http_proxy_sock_impl.h
diff options
context:
space:
mode:
authorAlexander Rutkovsky <alexvru@mail.ru>2022-02-10 16:47:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:40 +0300
commit667a4ee7da2e004784b9c3cfab824a81e96f4d66 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/actors/http/http_proxy_sock_impl.h
parentf3646f91e0de459836a7800b9ce3e8dc57a2ab3a (diff)
downloadydb-667a4ee7da2e004784b9c3cfab824a81e96f4d66.tar.gz
Restoring authorship annotation for Alexander Rutkovsky <alexvru@mail.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/actors/http/http_proxy_sock_impl.h')
-rw-r--r--library/cpp/actors/http/http_proxy_sock_impl.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/actors/http/http_proxy_sock_impl.h b/library/cpp/actors/http/http_proxy_sock_impl.h
index edef338d71..bf8c71d05a 100644
--- a/library/cpp/actors/http/http_proxy_sock_impl.h
+++ b/library/cpp/actors/http/http_proxy_sock_impl.h
@@ -45,12 +45,12 @@ struct TPlainSocketImpl : virtual public THttpConfig {
return Socket->Socket.Connect(&address);
}
- static constexpr int OnConnect(bool&, bool&) {
- return 1;
+ static constexpr int OnConnect(bool&, bool&) {
+ return 1;
}
- static constexpr int OnAccept(const TEndpointInfo&, bool&, bool&) {
- return 1;
+ static constexpr int OnAccept(const TEndpointInfo&, bool&, bool&) {
+ return 1;
}
bool IsGood() {
@@ -65,11 +65,11 @@ struct TPlainSocketImpl : virtual public THttpConfig {
return res;
}
- ssize_t Send(const void* data, size_t size, bool&, bool&) {
+ ssize_t Send(const void* data, size_t size, bool&, bool&) {
return Socket->Socket.Send(data, size);
}
- ssize_t Recv(void* data, size_t size, bool&, bool&) {
+ ssize_t Recv(void* data, size_t size, bool&, bool&) {
return Socket->Socket.Recv(data, size);
}
};
@@ -180,16 +180,16 @@ struct TSecureSocketImpl : TPlainSocketImpl, TSslHelpers {
void Flush() {}
- ssize_t Send(const void* data, size_t size, bool& read, bool& write) {
+ ssize_t Send(const void* data, size_t size, bool& read, bool& write) {
ssize_t res = SSL_write(Ssl.Get(), data, size);
if (res < 0) {
res = SSL_get_error(Ssl.Get(), res);
switch(res) {
case SSL_ERROR_WANT_READ:
- read = true;
- return -EAGAIN;
+ read = true;
+ return -EAGAIN;
case SSL_ERROR_WANT_WRITE:
- write = true;
+ write = true;
return -EAGAIN;
default:
return -EIO;
@@ -198,16 +198,16 @@ struct TSecureSocketImpl : TPlainSocketImpl, TSslHelpers {
return res;
}
- ssize_t Recv(void* data, size_t size, bool& read, bool& write) {
+ ssize_t Recv(void* data, size_t size, bool& read, bool& write) {
ssize_t res = SSL_read(Ssl.Get(), data, size);
if (res < 0) {
res = SSL_get_error(Ssl.Get(), res);
switch(res) {
case SSL_ERROR_WANT_READ:
- read = true;
- return -EAGAIN;
+ read = true;
+ return -EAGAIN;
case SSL_ERROR_WANT_WRITE:
- write = true;
+ write = true;
return -EAGAIN;
default:
return -EIO;
@@ -216,19 +216,19 @@ struct TSecureSocketImpl : TPlainSocketImpl, TSslHelpers {
return res;
}
- int OnConnect(bool& read, bool& write) {
+ int OnConnect(bool& read, bool& write) {
if (!Ssl) {
InitClientSsl();
}
int res = SSL_connect(Ssl.Get());
- if (res <= 0) {
+ if (res <= 0) {
res = SSL_get_error(Ssl.Get(), res);
switch(res) {
case SSL_ERROR_WANT_READ:
- read = true;
- return -EAGAIN;
+ read = true;
+ return -EAGAIN;
case SSL_ERROR_WANT_WRITE:
- write = true;
+ write = true;
return -EAGAIN;
default:
return -EIO;
@@ -237,19 +237,19 @@ struct TSecureSocketImpl : TPlainSocketImpl, TSslHelpers {
return res;
}
- int OnAccept(const TEndpointInfo& endpoint, bool& read, bool& write) {
+ int OnAccept(const TEndpointInfo& endpoint, bool& read, bool& write) {
if (!Ssl) {
InitServerSsl(endpoint.SecureContext.Get());
}
int res = SSL_accept(Ssl.Get());
- if (res <= 0) {
+ if (res <= 0) {
res = SSL_get_error(Ssl.Get(), res);
switch(res) {
case SSL_ERROR_WANT_READ:
- read = true;
- return -EAGAIN;
+ read = true;
+ return -EAGAIN;
case SSL_ERROR_WANT_WRITE:
- write = true;
+ write = true;
return -EAGAIN;
default:
return -EIO;