dotnet / dotnet/dotnet-api-docs
TCP connection is closed as well
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
First of all, I didn't expect the call to through an exception. I expected it to just return after the timeout and return 0. I clearly hadn't read this document yet... It correctly states an exception is thrown. What this help page does not mention is the fact that the TCP connection is reset and therefor closed. Does that go without saying?
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 4b646f07-6f0e-e3b2-8c34-38b7032c9e92
* Version Independent ID: f111ed87-bf2f-3882-a402-85144de8edaf
* Content: [TcpClient.ReceiveTimeout Property (System.Net.Sockets)](https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.tcpclient.receivetimeout?view=netframework-4.7.2)
* Content Source: [xml/System.Net.Sockets/TcpClient.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Net.Sockets/TcpClient.xml)
* Product: **dotnet-api**
* GitHub Login: @karelz
* Microsoft Alias: **ncldev**
Contributor guide
Assessment
This issue has not been assessed yet.