The help for socket and socklet lists a -t option for the number of threads.
All it says is that in most cases you don’t need to change this value. When
would you need to? It would appear that there might be a limit to the number
of incoming socket connections my system will allow. Does this thread
parameter have any bearing on this?
The other curious parameter is the SOMAXCONN parameter (-l). What does this
actually do?
The reason for my questions is that my system (running incoming socket
connections for our own processes and Phindows and outgoing for 1 other
process) occasionally slows drastically. I have a select call which is sent
a timeout parameter which should timeout in 5msec (I have also tried a 0 and
1 msec timeout value). This call occasionally does not return for a long
time (sometimes as long as an hour, but typically 3-30 seconds). The system
will stay in this state for sometimes hours at a time before curing itself,
and other times I will get sick of it and restart Socklet and all will come
good.
Any clues anyone?