From: sapier Date: Sat, 19 Apr 2014 20:12:01 +0000 (+0200) Subject: Reduce log level for incoming crap packets X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a0dd2d89f3a71a9650290a8607d773cc439c7d75;p=zefram%2Fminetest%2Fminetest_engine.git Reduce log level for incoming crap packets Add log entry for peer timeout --- diff --git a/src/connection.cpp b/src/connection.cpp index ae1e4a1d..a51cc9df 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -1337,11 +1337,11 @@ void ConnectionSendThread::runTimeouts(float dtime) */ if(peer->isTimedOut(m_timeout)) { - LOG(derr_con<getDesc() + errorstream<getDesc() <<"RunTimeouts(): Peer "<id <<" has timed out." <<" (source=peer->timeout_counter)" - <id); // Don't bother going through the buffers of this one diff --git a/src/server.cpp b/src/server.cpp index ebde0d9e..3ec6fee2 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1328,7 +1328,13 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) } catch(con::PeerNotFoundException &e) { - errorstream<<"Server::ProcessData(): Cancelling: peer " + /* + * no peer for this packet found + * most common reason is peer timeout, e.g. peer didn't + * respond for some time, your server was overloaded or + * things like that. + */ + infostream<<"Server::ProcessData(): Cancelling: peer " <