mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-09 00:05:46 +00:00
Failed to connect error for unix socket
This commit is contained in:
@@ -127,7 +127,7 @@ namespace Tesses::Framework::Http
|
|||||||
{
|
{
|
||||||
auto netStrm = new NetworkStream(uri.host,uri.GetPort(),false,false,false);
|
auto netStrm = new NetworkStream(uri.host,uri.GetPort(),false,false,false);
|
||||||
if(netStrm == nullptr) return nullptr;
|
if(netStrm == nullptr) return nullptr;
|
||||||
return new ClientTLSStream(netStrm, true, ignoreSSLErrors,uri.host, trusted_root_cert_bundle);
|
return new ClientTLSStream(netStrm, true, !ignoreSSLErrors,uri.host, trusted_root_cert_bundle);
|
||||||
}
|
}
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
@@ -142,7 +142,7 @@ namespace Tesses::Framework::Http
|
|||||||
{
|
{
|
||||||
auto netStrm = new NetworkStream(unixPath,false);
|
auto netStrm = new NetworkStream(unixPath,false);
|
||||||
if(netStrm == nullptr) return nullptr;
|
if(netStrm == nullptr) return nullptr;
|
||||||
return new ClientTLSStream(netStrm, true, ignoreSSLErrors,uri.host, trusted_root_cert_bundle);
|
return new ClientTLSStream(netStrm, true, !ignoreSSLErrors,uri.host, trusted_root_cert_bundle);
|
||||||
}
|
}
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ namespace Tesses::Framework::Streams {
|
|||||||
unlink(unixPath.c_str());
|
unlink(unixPath.c_str());
|
||||||
if(NETWORK_BIND(this->sock, (const sockaddr*)&unx, (socklen_t)sizeof(unx)) != 0)
|
if(NETWORK_BIND(this->sock, (const sockaddr*)&unx, (socklen_t)sizeof(unx)) != 0)
|
||||||
{
|
{
|
||||||
std::cout << "FAILED TO BIND: " << strerror(errno) << std::endl;
|
std::cerr << "FAILED TO BIND: " << strerror(errno) << std::endl;
|
||||||
this->success = false;
|
this->success = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -309,6 +309,7 @@ namespace Tesses::Framework::Streams {
|
|||||||
{
|
{
|
||||||
if(NETWORK_CONNECT(this->sock,(const sockaddr*)&unx, (socklen_t)sizeof(unx)) != 0)
|
if(NETWORK_CONNECT(this->sock,(const sockaddr*)&unx, (socklen_t)sizeof(unx)) != 0)
|
||||||
{
|
{
|
||||||
|
std::cerr << "FAILED TO CONNECT: " << strerror(errno) << std::endl;
|
||||||
this->success=false;
|
this->success=false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user