From 36759ed2d2cdd3e319e86a571045229b234d9bac Mon Sep 17 00:00:00 2001 From: ai4rei Date: Thu, 2 Dec 2010 16:40:44 +0000 Subject: * Added an error message when a client connection exceeds the socket write buffer, so that it does not appear to be closed for no apparent reason (follow up to r13469). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14546 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/common/socket.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index c1780d6e8..10c9938c5 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,6 +1,7 @@ Date Added 2010/12/02 + * Added an error message when a client connection exceeds the socket write buffer, so that it does not appear to be closed for no apparent reason (follow up to r13469). [Ai4rei] * Random clif.c fixes and cleanups. [Ai4rei] - Fixed clif_homskillup using sd before nullpo check (since r9297 and r9307). - Merged code responsible for disabling pets in GvG and spawning them as per TODO (related r12002). diff --git a/src/common/socket.c b/src/common/socket.c index a76ae6e81..89c605c9d 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -655,6 +655,7 @@ int WFIFOSET(int fd, size_t len) if( !s->flag.server && s->wdata_size+len > WFIFO_MAX ) {// reached maximum write fifo size + ShowError("WFIFOSET: Maximum write buffer size for client connection %d exceeded, most likely caused by packet 0x%04x (len=%u, ip=%lu.%lu.%lu.%lu).\n", fd, WFIFOW(fd,0), len, CONVIP(s->client_addr)); set_eof(fd); return 0; } -- cgit v1.2.3-70-g09d2