Hi All, Can someone please confirm that the following is a bug? I've searched both this list and the regular .NET list, and in Microsofts KB, and didn't find any reference to this behavior:
When calling Socket.Select method with a timeout, and the *timeout expires*, an exception is thrown of type System.ArgumentException. The exception is thrown from a method called by Socket.Select (Socket.SelectFileDescriptor). The documentation of Socket.Select doesn't mention this exception. When the socket is ready for reading (or writing) before the timeout expires, there's no exception. The following is the code snippest that casued this behavior: // Check if the socket is ready for reading. Socket[] readList = new Socket[1]; readList[0] = m_Socket; Socket.Select(readList, null, null, timeout); // This line throws the exception when the timeout expires if (readList.Length > 0) { // This is not the full implementation bytesReceived += m_Socket.Receive(buffer, bytesReceived, byteMissing, SocketFlags.None); } Thnaks, Lidor Lidor Wyssocky Software Infrastructure and Tools NDS Technologies Israel E-Mail: [EMAIL PROTECTED] Phone: 972-2-589-4801 Fax: 972-2-589-4900 You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.