diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-02 16:40:44 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-02 16:40:44 +0000 |
commit | 36759ed2d2cdd3e319e86a571045229b234d9bac (patch) | |
tree | 76b563eb4726dd7a3526c94de1b79053e4af7cbf /src/common/socket.c | |
parent | 24b1d19b51c95758f86626443c6144672d37edca (diff) | |
download | hercules-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
Diffstat (limited to 'src/common/socket.c')
-rw-r--r-- | src/common/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |