improved tracker error messages
This commit is contained in:
parent
1e71e76085
commit
480b63b516
|
@ -195,6 +195,12 @@ namespace libtorrent
|
||||||
// keep this alive
|
// keep this alive
|
||||||
boost::intrusive_ptr<http_tracker_connection> me(this);
|
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())
|
if (!parser.header_finished())
|
||||||
{
|
{
|
||||||
fail(-1, "premature end of file");
|
fail(-1, "premature end of file");
|
||||||
|
|
Loading…
Reference in New Issue