Issue 1448058: problems with too many sockets in FreeBSD (original) (raw)

Issue1448058

Created on 2006-03-11 23:19 by aix-d, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg27751 - (view) Author: aix-d (aix-d) Date: 2006-03-11 23:19
When there are about 200 sockets, or so, i'm getting errors: "unable to select on socket" We are running multithread application, for each thread there is one socket. TRACEBACK contains: r = self.connection.recv(1024) error: unable to select on socket. This error appeared after fixing this problem: http://sourceforge.net/tracker/index.php?func=detail&aid=1429585&group_id=5470&atid=105470 Python version: 2.5a0 (trunk, Mar 8 2006, 18:28:30) OS version: FreeBSD 6.1-PRERELEASE Soon we will make program that will reproduce this error if needed.
msg27752 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-03-14 07:37
Logged In: YES user_id=33168 What is the value of FD_SETSIZE? Perhaps you should increase this value before including any headers on FreeBSD? If you are using a lot of sockets, you may prefer to use poll() instead of select() as poll() doesn't have the FD_SETSIZE limitation.
msg27753 - (view) Author: aix-d (aix-d) Date: 2006-03-22 19:32
Logged In: YES user_id=1449422 Thank you very much! It was fixed by increasing FD_SETSIZE.
History
Date User Action Args
2022-04-11 14:56:15 admin set github: 43018
2006-03-11 23:19:10 aix-d create