made http_stream and proxy_base support builds with exceptions disabled

This commit is contained in:
Arvid Norberg
2007-12-28 19:26:26 +00:00
parent e6e5b43219
commit e88bcaea90
2 changed files with 24 additions and 6 deletions

View File

@@ -44,7 +44,8 @@ namespace libtorrent
if (e || i == tcp::resolver::iterator())
{
(*h)(e);
close();
asio::error_code ec;
close(ec);
return;
}
@@ -57,7 +58,8 @@ namespace libtorrent
if (e)
{
(*h)(e);
close();
asio::error_code ec;
close(ec);
return;
}
@@ -89,7 +91,8 @@ namespace libtorrent
if (e)
{
(*h)(e);
close();
asio::error_code ec;
close(ec);
return;
}
@@ -104,7 +107,8 @@ namespace libtorrent
if (e)
{
(*h)(e);
close();
asio::error_code ec;
close(ec);
return;
}
@@ -134,7 +138,8 @@ namespace libtorrent
if (status == 0)
{
(*h)(asio::error::operation_not_supported);
close();
asio::error_code ec;
close(ec);
return;
}
@@ -143,7 +148,8 @@ namespace libtorrent
if (code != 200)
{
(*h)(asio::error::operation_not_supported);
close();
asio::error_code ec;
close(ec);
return;
}