The TcpClient Close method does not close the underlying TCP connection (821625)
The information in this article applies to:
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
This article refers to the following Microsoft .NET
Framework Class Library namespaces:
- System.Net
- System.Net.Sockets
SYMPTOMSWhen you call the TcpClient Close method, you expect the underlying TCP connection to be closed as
described in the "TcpClient.Close Method" topic of the .NET Framework Class Library
documentation. For more information, visit the following Microsoft Web site: RESOLUTIONTo resolve this problem, close the associated NetworkStream object that the TcpClient GetStream method returns.REFERENCESFor more information about the TcpClient class, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 1/26/2006 |
---|
Keywords: | KbClientServer kbAPI kbProgramming kbprb KB821625 kbAudDeveloper |
---|
|