Home | Networks | Community | Need Help? 

 
 Quick search

 
 
 RegisterRegister   Log inLog in 

irc.test.c.om- select irc.test.c.om[ip]:Bad file descriptor

 
Post new topic   Reply to topic    SearchIRC Forum Index -> IRCD & Network Services
Author Message
da0o
none
none


Joined: 06 Nov 2007
Posts: 3

PostPosted: Nov 06, 2007 8:16am    Post subject: irc.test.c.om- select irc.test.c.om[ip]:Bad file descriptor Reply with quote

Hi ,i'm having problem with unreal3.2.7 running on linux 2.6.9-42 1 GB Ram with this errors when users are more than 1024 :

Code: Select all
[23:05] -irc.test.c.om- select irc.test.c.om[ip]:Bad file descriptor
-
[23:05] -irc.test.c.om- select irc.test.c.om[ip]:Bad file descriptor
-
[23:05] -irc.test.c.om- select irc.test.c.om[ip]:Bad file descriptor
-
[23:05] -irc.test.c.om- *** Notice -- Aieeeee!!! Restarting server... too many select errors



So i just need to have more than normal 1024 clients as i have a server for gaming and didnt wanted to buy other dedicted to install ircd for other 1024 lol ,so i changed this thinks in my dedi:
/usr/include/bits/typesizes.h <== changed 1024 to 5000
then
added : session required pam_limits.so to :
/etc/pam.d/login
/etc/pam.d/sshd
/etc/pam.d/su
and
added this 2 lines in /etc/security/limits.conf :
root hard nofile 5000
root soft nofile 5000

(Added "root" as me is root)
After this IRCd start perfect and work perfect untill :
And now the problem is only when server get more than 1024 clients ,after got it ,ircd disconnect with the previous error message ,i tryed to changed the listen ip:port; in listen *:port; adding the options like clientsonly; under listen but nothing ,so typed also ulimit -n ,ulimit -n 5000 and started again ircd but nothing ,i hope someone can help me to solve this problem ,thanks

da0
Back to top
GeniusDex
Lurker
Lurker


Joined: 16 Aug 2003
Posts: 150

PostPosted: Nov 06, 2007 11:06am    Post subject: Reply with quote

A classic case of "don't !@#$ with things you don't know about". What you just did was make your program believe that you can handle more than 1024 clients instead of actually supporting more than 1024 clients. The maximum size of a FDSET for select() won't change because you change a system header (which you should NEVER EVER do), it's only an indication of what the compiled version can handle.
Back to top
da0o
none
none


Joined: 06 Nov 2007
Posts: 3

PostPosted: Nov 06, 2007 12:09pm    Post subject: Reply with quote

Ok ,so can you tell me where is the error ? I simple followed instruction finded on : vulnscan.o.rg/UnrealIRCd/faq/#46
Nothing more ,i also tryed this :
Code:

File descriptors on Linux

To increase number of file descriptors allowed per process (1024 is the default on recent Linux kernels). Use the ulimit or limit command in the shell you are using (see above) to start manager and tasks space server. To be able to increase number of file descriptors to more than 1024, follow the instructions below:

   1. Allow users to increase their file descriptor limits by changing the following configuration files:

      In /etc/security/limits.conf, add the lines:

      *       soft    nofile  1024
      *       hard    nofile  4096

      In /etc/pam.d/login, add:

      session required /lib/security/pam_limits.so

   2. Increase the system-wide file descriptor limit by adding the following three lines to the /etc/rc.d/rc.local startup script:

      # Increase system-wide file descriptor limit.
      echo  4096 > /proc/sys/fs/file-max
      echo 16384 > /proc/sys/fs/inode-max


But same if i type ulimit -n i got 5000 but if i disconnect from my shell and reconnect and i retype ulimit -n i got 1024 ,seem like isnt permanent ,so really dunno what to do ,i preferred to make possible to have 5000 clients instead of buyng other dedicated for my game ircd just for install other ircd to link ,so every kind of help and instrucions are welcome Smile
Thanks in advance
da0
Back to top
Display posts from previous:   
Post new topic   Reply to topic    SearchIRC Forum Index -> IRCD & Network Services All times are GMT - 6 Hours
Page 1 of 1

 
 
Forum powered by phpBB
 
 © 2000 - 2008 EverythingIRC, Inc. All rights reserved. Please read our disclaimer