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 --- src/common/socket.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common') 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