diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-10-16 09:56:30 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-10-16 09:56:30 +0000 |
commit | db85b6483e9e9d67a28f1ba946c83bd0fca6e120 (patch) | |
tree | 8e0b58e2e935b8782bca3e2fbba0a3dc0d17f3cc | |
parent | 2424ac9283f7e370d4e3135758f92322c061c05e (diff) | |
download | hercules-db85b6483e9e9d67a28f1ba946c83bd0fca6e120.tar.gz hercules-db85b6483e9e9d67a28f1ba946c83bd0fca6e120.tar.bz2 hercules-db85b6483e9e9d67a28f1ba946c83bd0fca6e120.tar.xz hercules-db85b6483e9e9d67a28f1ba946c83bd0fca6e120.zip |
* Added a message indicating how many concurrent connections the server was compiled to support.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14978 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/common/socket.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index f54c97819..6934a6c21 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,6 +1,7 @@ Date Added 2011/10/16 + * Added a message indicating how many concurrent connections the server was compiled to support. [Ai4rei] * Added field for the change slot feature to character select list packet for 2011-09-28aRagexeRE and newer. [Ai4rei] * Changed function-like macros into inline functions where it seemed appropriate (topic:264007). [Ai4rei] * Fixed public/guild chat message packets sending strings without zero-termination causing recent clients to display trailing junk on such messages (bugreport:5068). [Ai4rei] diff --git a/src/common/socket.c b/src/common/socket.c index b522ac607..f1e1afdc8 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -1222,6 +1222,7 @@ int socket_getips(uint32* ips, int max) void socket_init(void) { char *SOCKET_CONF_FILENAME = "conf/packet_athena.conf"; + unsigned int rlim_cur = FD_SETSIZE; #ifdef WIN32 {// Start up windows networking @@ -1265,6 +1266,7 @@ void socket_init(void) if( err == EPERM ) errmsg = "permission denied"; ShowWarning("socket_init: failed to set socket limit to %d, setting to maximum allowed (original limit=%d, current limit=%d, maximum allowed=%d, error=%s).\n", FD_SETSIZE, rlim_ori, (int)rlp.rlim_cur, (int)rlp.rlim_max, errmsg); + rlim_cur = rlp.rlim_cur; } } } @@ -1294,6 +1296,8 @@ void socket_init(void) add_timer_func_list(connect_check_clear, "connect_check_clear"); add_timer_interval(gettick()+1000, connect_check_clear, 0, 0, 5*60*1000); #endif + + ShowInfo("Server supports up to '"CL_WHITE"%u"CL_RESET"' concurrent connections.\n", rlim_cur); } |