summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-02 16:40:44 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-02 16:40:44 +0000
commit36759ed2d2cdd3e319e86a571045229b234d9bac (patch)
tree76b563eb4726dd7a3526c94de1b79053e4af7cbf
parent24b1d19b51c95758f86626443c6144672d37edca (diff)
downloadhercules-36759ed2d2cdd3e319e86a571045229b234d9bac.tar.gz
hercules-36759ed2d2cdd3e319e86a571045229b234d9bac.tar.bz2
hercules-36759ed2d2cdd3e319e86a571045229b234d9bac.tar.xz
hercules-36759ed2d2cdd3e319e86a571045229b234d9bac.zip
* 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
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/common/socket.c1
2 files changed, 2 insertions, 0 deletions
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;
}