Drop db logging, up stale connections

This commit is contained in:
Akkadius 2019-08-10 02:47:08 -05:00
parent 69bad593cd
commit 17c8af3814
6 changed files with 3 additions and 23 deletions

View File

@ -257,7 +257,7 @@ namespace EQ
resend_delay_min = 150;
resend_delay_max = 5000;
connect_delay_ms = 500;
stale_connection_ms = 30000;
stale_connection_ms = 60000;
connect_stale_ms = 5000;
crc_length = 2;
max_packet_size = 512;

View File

@ -471,7 +471,7 @@ static void ProcessCommandIgnore(Client *c, std::string Ignoree) {
Clientlist::Clientlist(int ChatPort) {
EQStreamManagerInterfaceOptions chat_opts(ChatPort, false, false);
chat_opts.opcode_size = 1;
chat_opts.daybreak_options.stale_connection_ms = 300000;
chat_opts.daybreak_options.stale_connection_ms = 600000;
chat_opts.daybreak_options.resend_delay_ms = RuleI(Network, ResendDelayBaseMS);
chat_opts.daybreak_options.resend_delay_factor = RuleR(Network, ResendDelayFactor);
chat_opts.daybreak_options.resend_delay_min = RuleI(Network, ResendDelayMinMS);

View File

@ -1,11 +0,0 @@
CREATE TABLE `character_kick_events` (
`Id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(64) NOT NULL,
`Reason` TEXT NOT NULL,
`Created` TIMESTAMP NOT NULL DEFAULT '',
PRIMARY KEY (`Id`),
INDEX `Name` (`Name`),
INDEX `Created` (`Created`)
)
ENGINE=InnoDB
;

View File

@ -2590,7 +2590,7 @@ void Client::SetPVP(bool toggle, bool message) {
void Client::Kick(const std::string &reason) {
client_state = CLIENT_KICKED;
database.CreateKickEvent(GetName(), reason);
Log(Logs::General, Logs::Client_Login, "Client [%s] kicked, reason [%s]", GetCleanName(), reason.c_str());
}
void Client::WorldKick() {

View File

@ -3835,14 +3835,6 @@ void ZoneDatabase::UpdateItemRecastTimestamps(uint32 char_id, uint32 recast_type
QueryDatabase(query);
}
void ZoneDatabase::CreateKickEvent(const std::string &character_name, const std::string &reason)
{
std::string query =
StringFormat("INSERT INTO character_kick_events (Name, Reason) VALUES ('%s', '%s')", character_name.c_str(), reason.c_str());
QueryDatabase(query);
}
void ZoneDatabase::LoadPetInfo(Client *client)
{

View File

@ -292,7 +292,6 @@ public:
void SavePetInfo(Client *c);
void RemoveTempFactions(Client *c);
void UpdateItemRecastTimestamps(uint32 char_id, uint32 recast_type, uint32 timestamp);
void CreateKickEvent(const std::string &character_name, const std::string &reason);
bool DeleteCharacterAAs(uint32 character_id);
bool DeleteCharacterBandolier(uint32 character_id, uint32 band_id);