diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-22 18:19:11 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-22 18:19:11 +0000 |
commit | 86419b56c3c04ee10b6c58906124a471b9853d8b (patch) | |
tree | 4c5e26d179d09370318bcf4ac0cad45e4927008b /src/common/socket.c | |
parent | 93344af48f44a7a3e535831318fe9c991a015ed4 (diff) | |
download | hercules-86419b56c3c04ee10b6c58906124a471b9853d8b.tar.gz hercules-86419b56c3c04ee10b6c58906124a471b9853d8b.tar.bz2 hercules-86419b56c3c04ee10b6c58906124a471b9853d8b.tar.xz hercules-86419b56c3c04ee10b6c58906124a471b9853d8b.zip |
* 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
Diffstat (limited to 'src/common/socket.c')
-rw-r--r-- | src/common/socket.c | 12 |
1 files changed, 0 insertions, 12 deletions
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; |