From 86419b56c3c04ee10b6c58906124a471b9853d8b Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 22 Feb 2008 18:19:11 +0000 Subject: * Removed code in socket.c that tries to avoid send buffer overloading, as there is a scenario (many players and charserver disconnect) where mass char saving produces huge ammounts of data to send (see r11503) * Cleaned up player respawning code (bugreport:1022) * Increased the max amount of different autocast skills from 5 to 10 * Added a missing function declaration, for real this time (followup to r12229) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12232 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/socket.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/common') diff --git a/src/common/socket.c b/src/common/socket.c index 995aabedb..b7d99fd6f 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -528,7 +528,6 @@ static int create_session(int fd, RecvFunc func_recv, SendFunc func_send, ParseF session[fd]->func_send = func_send; session[fd]->func_parse = func_parse; session[fd]->rdata_tick = last_tick; - session[fd]->session_data = NULL; return 0; } @@ -584,17 +583,6 @@ int realloc_writefifo(int fd, size_t addition) else // no change return 0; - // crash prevention for bugs that cause the send queue to fill up in an infinite loop - if( newsize > 5*1024*1024 ) // 5 MB is way beyond reasonable - { - ShowError("realloc_writefifo: session #%d's send buffer was overloaded! Disconnecting...\n", fd); - // drop all data (but the space will still be available) - session[fd]->wdata_size = 0; - // request disconnect - set_eof(fd); - return 0; - } - RECREATE(session[fd]->wdata, unsigned char, newsize); session[fd]->max_wdata = newsize; -- cgit v1.2.3-70-g09d2