baiwyc119 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

server.lua: Disallowed FD number: 1024 #478

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. About 2k users registered
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.9.4

Please provide any additional information below.
 socket  warn    server.lua: Disallowed FD number: 1024

I have increased the max fd number in server_select.lua and the message 
disappeared, but users can´t connect. 

My Linux ulimit -n: 
 ulimit -n
65535

Original issue reported on code.google.com by geniltod...@gmail.com on 3 Mar 2015 at 6:34

GoogleCodeExporter commented 9 years ago
Hi, thanks for the report.

With a large number of users, you need to use the libevent backend for 
connection handling. It enables more efficient code specific to your platform, 
so that Prosody can handle thousands of connections. Please see 
https://prosody.im/doc/libevent

I'll close this issue, but feel free to re-open it if this solution does not 
solve your problem. Hope it does!

Original comment by MWild1 on 3 Mar 2015 at 6:38