We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656898a commit e77abefCopy full SHA for e77abef
Release/src/http/client/http_linux.cpp
@@ -73,8 +73,14 @@ namespace web { namespace http
73
// We need to correct inaccurate ASIO error code base on context information
74
switch (context)
75
{
76
+#if defined(__APPLE__)
77
+ case httpclient_errorcode_context::writeheader:
78
+ if (ec == boost::system::errc::broken_pipe)
79
+ errorcodeValue = make_error_code(std::errc::host_unreachable).value();
80
+ break;
81
+#endif
82
case httpclient_errorcode_context::connect:
- if (ec == boost::system::errc::connection_refused)
83
+ if (ec == boost::system::errc::connection_refused)
84
errorcodeValue = make_error_code(std::errc::host_unreachable).value();
85
break;
86
case httpclient_errorcode_context::readheader:
0 commit comments