Browse Source

* 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://svn.code.sf.net/p/rathena/svn/trunk@14546 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei 14 years ago
parent
commit
ff135c1ee5
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Changelog-Trunk.txt
  2. 1 0
      src/common/socket.c

+ 1 - 0
Changelog-Trunk.txt

@@ -1,6 +1,7 @@
 Date	Added
 Date	Added
 
 
 2010/12/02
 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]
 	* Random clif.c fixes and cleanups. [Ai4rei]
 	- Fixed clif_homskillup using sd before nullpo check (since r9297 and r9307).
 	- 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).
 	- Merged code responsible for disabling pets in GvG and spawning them as per TODO (related r12002).

+ 1 - 0
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 )
 	if( !s->flag.server && s->wdata_size+len > WFIFO_MAX )
 	{// reached maximum write fifo size
 	{// 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);
 		set_eof(fd);
 		return 0;
 		return 0;
 	}
 	}