Jump to content
  • 0

Connection above 1024 players


fckng

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

 

Well, I'd like some help on the following question When I hit 1024 players my server is crashing I have already followed all the tutorials present here in the forum, even the unanswered ones I changed the FTD SIZE I moved on the socket.h But it keeps falling and I do not know what else to do, anyone with a solution?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   29
  • Joined:  10/06/16
  • Last Seen:  

use hercules emulator or use freebsd as host for rathena server.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

4 minutes ago, 4144 said:

use hercules emulator or use freebsd as host for rathena server.

 

 

Why use freebsd? I use centos, is there no solution for him?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   29
  • Joined:  10/06/16
  • Last Seen:  

because rathena using legacy network api. it support on any linux host max 1024 connections.

need use better api (not in rathena) or use freebsd host, where it support more than 1024 connections for legacy api

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

 

On 12/4/2018 at 1:32 PM, 4144 said:

because rathena using legacy network api. it support on any linux host max 1024 connections.

need use better api (not in rathena) or use freebsd host, where it support more than 1024 connections for legacy api

got it

working on that part

typesizes.h  ->

/ * Number of descriptors that can fit in an `fd_set '. * /

#define __FD_SETSIZE 1024

 

posix_type.h

#undef __FD_SETSIZE

#define __FD_SETSIZE 1024

even if I change, will not work?

Edited by fckng
dupplicate
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   29
  • Joined:  10/06/16
  • Last Seen:  

yes

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  547
  • Reputation:   270
  • Joined:  11/08/11
  • Last Seen:  

Changing FD_SETSIZE will not work, because you will end up with different compile time values and compilation will cancel.

Check Pull: 3799

With this you should be able to define the maximum you like. Make sure you increase your file descriptor limit on your OS with ulimit or something similar first though.

Link to comment
Share on other sites

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.

×
×
  • Create New...