I am using TcpListener to implement a simple http server that listens on port 8080. I am using .Pending() to determine if there is a client request, and then use .AcceptTcpClient() in a new thread to handle the connection.
However, there are times when a client request is made, but .Pending() does not return true right away. I saw the request delivered 30 seconds earlier using a sniffer. What could cause this buffering of a request? I tried taking .Pending() out of the equation, and just used .AcceptTcpClient() and blocked the main thread, but the same behavior occurred. The OS is Win2000 Server. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.