fast connect() to many sockets fails

fast connect() to many sockets fails

Post by Tira Mis » Sun, 20 Sep 2009 18:40:28


Hello,

I try to connect to many (about 60) sockets in a short time using
connectWithTimeout() (timeout 100ms). But after 3 connected sockets I get no
connect (return -1). If i wait some seconds i can open the next 3 sockets.
It seams that vxWorks has a kind of socket pool. If it is exhausted the OS
needs some seconds to alloc new sockets.

Here my questions.
* Is there something like this in the kernel?
* How can i influence this behavior in vxWorks?

regards
tira
 
 
 

fast connect() to many sockets fails

Post by Tira Mis » Sun, 27 Sep 2009 03:01:10


"Tira Misu" < XXXX@XXXXX.COM > schrieb im Newsbeitrag


I solved my problem. There was a bug in my "ethernet" driver. It sends in a
wrong way and never got response ...