Forgottenserver: Cant connect more than 1000 players

Created on 6 Jan 2018  路  4Comments  路  Source: otland/forgottenserver

Can I create an issue using tfs 1.2?
Sorry if I can not but who can help anyway .. I believe it is a tfs bug

Before creating an issue, please ensure:

  • [ ] This is a bug in the software that resides in this repository, and not a
    support matter (use https://otland.net/forums/support.16/ for support)
  • [ ] This issue is reproducible without changes to the code in this repository

Steps to reproduce (include any configuration/script required to reproduce)

  1. Server with 1000 players online.
  2. Try to connect and you can't.

Expected behaviour


It should connect normal, since my config.lua is set to "3000"

Actual behaviour


Nobody connect after 1000 onlines
Sometimes the server stays offline in otservlist, when it has 1000 online

Environment

Does any other site check player limit, other than waitinglist.cpp?
I'm using tfs 1.2
waitinglist.cpp
https://hastebin.com/dodehesuqo.cpp

invalid

Most helpful comment

To get over 1024, which is the default, use the command:
ulimit -n 3000
to increase this limit to 3000.

All 4 comments

This is not a tfs issue, you are probably using Tibia 11, so you have some custom changes in protocol, which could cause these issues.
Btw, we are reporting here issues, which are present in current repository without any custom code to reproduce it.

I got it on screen:

[ServicePort::open] Error: open: Too many open files

It's ulimit issue, not a bug.

To get over 1024, which is the default, use the command:
ulimit -n 3000
to increase this limit to 3000.

Was this page helpful?
0 / 5 - 0 ratings