title: tcp/ip accept not returning, but client does
body: <p>server:<br>
  vxworks 6.3<br>
  calls the usual socket, bind, listen, then:</p>
  
  <pre><code>for (;;)
  {
    client = accept(sfd,NULL,NULL);
    // pass client to worker thread
  }
  </code></pre>
  
  <p>client:<br>
  .NET 2.0<br>
  TcpClient constructor to connect to server that takes the string hostname and int port, like:  </p>
  
  <pre><code>TcpClient client = new TcpClient(server_ip, port);
  </code></pre>
  
  <p>This is working fine when the server is compiled and executed in windows (native c++).</p>
  
  <p>intermittently, the constructor to TcpClient will return the instance, without throwing any exception, but the accept call in vxWorks does not return with the client fd.  tcpstatShow indicates no accept occurred.</p>
  
  <p>What could possibly make the TcpClient constructor (which calls 'Connect') return the instance, while the accept call on the server not return?  It seems to be related to what the system is doing in the background - it seems more likely to get this symptom to occur when the server is busy persisting data to flash or an NFS share when the client attempts to connect, but can happen when it isn't also.</p>
  
  <p>I've tried adjusting priority of the thread running accept<br>
  I've looked at the size of the queue in 'listen'.  There's enough.<br>
  The total number of file descriptors available should be enough (haven't validated this yet though, first thing in the morning)  </p>