Is there a limit to create sockets on UNIX??

Guy Harris guy at auspex.auspex.com
Fri Jul 27 06:41:57 AEST 1990


>	Sounds like a filesystem limitation.  If you are using UNIX
>	family sockets it actually writes to file space and this causes
>	a file to be opened.  Thus you may have to many open files.

Nope.  "Too many open files" really means "too many open file
descriptors in this process"; a socket in any family uses a file
descriptor, so switching to another family won't help.

>	Just a suggestion.  Also you can check so see if a process
>	can increase the the number of files it can have open on your
>	system.

Yup, the per-process file descriptor limit is the problem.  This limit
varies from 20 to 64 to 256 in some systems.



More information about the Comp.unix.questions mailing list