Jump to content
  • 0

[Warning] socket_init Issue


Question

Posted

Apparently I get this warning:

socket_init: failed to set socket limit to 16384, setting to maximum allowed (original limit=1024, current limit=1024, maximum allowed=1024, error=unknown).

Anyone know what this means or what causes it? o_O

14 answers to this question

Recommended Posts

  • 1
Posted

$ ulimit -n
1024 // this is limit for the user
$ grep FD_SETSIZE /usr/include/linux/posix_types.h
#define __FD_SETSIZE 1024 // this is your system default

In your case limit is 1024, and #define is 16384, am I right?

Posted
The user running rAthena doesn't have permissions to change open files limit. Did you change your FD_SETSIZE?

Where is this FD_SETSIZE? I don't remember changing anything regarding this o_o

Posted

$ ulimit -n
1024 // this is limit for the user
$ grep FD_SETSIZE /usr/include/linux/posix_types.h
#define __FD_SETSIZE 1024 // this is your system default

In your case limit is 1024, and #define is 16384, am I right?

So, I should change 1024 to 16384? And see what happens? Also, is this in mmo?

Posted

rAthena uses default values found in system lib, but it's above user limit. You have 2 options:

  • change ulimit for rA user
  • change FD_SETSIZE for rAthena
  • ignore the warning

The last two should have the same outcome. Socket limit will be set to ulimit -n which is 1024 (you don't need more concurrent connections that that, do you?)

Posted
The last two should have the same outcome. Socket limit will be set to ulimit -n which is 1024 (you don't need more concurrent connections that that, do you?)

No idea Gepard lol.

Secondly, I have no what the file is called to increase such a limit (or the directory).

Finally, if I don't fix this warning, would it cause any issues?

Posted

I guess no, unless you have more than 1024 players online at the same time.

No. But as I said earlier, I don't even remember changing this area in the source to even give me this warning o_O.

Posted (edited)

I'm having the same issue also. Any way that we could fix this problem?

[Warning] socket_init: failed to set socket limit to 16384 (current limit 1024).

Edited by pathos
Posted

I'm having the same issue also. Any way that we could fix this problem?

[Warning] socket_init: failed to set socket limit to 16384 (current limit 1024).

rAthena uses default values found in system lib, but it's above user limit. You have 2 options:

  • change ulimit for rA user
  • change FD_SETSIZE for rAthena
  • ignore the warning

The last two should have the same outcome. Socket limit will be set to ulimit -n which is 1024 (you don't need more concurrent connections that that, do you?)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...