mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
Drop db logging, up stale connections
This commit is contained in:
parent
69bad593cd
commit
17c8af3814
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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
|
||||
;
|
||||
@ -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() {
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user