improved tracker error messages

This commit is contained in:
Arvid Norberg 2008-02-25 00:55:31 +00:00
parent 1e71e76085
commit 480b63b516
1 changed files with 6 additions and 0 deletions

View File

@ -195,6 +195,12 @@ namespace libtorrent
// keep this alive
boost::intrusive_ptr<http_tracker_connection> me(this);
if (ec && ec != asio::error::eof)
{
fail(-1, ec.message().c_str());
return;
}
if (!parser.header_finished())
{
fail(-1, "premature end of file");