{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/5044","repository_url":"https://api.github.com/repos/xamarin/xamarin-macios","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/5044/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/5044/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/5044/events","html_url":"https://github.com/xamarin/xamarin-macios/issues/5044","id":374334737,"node_id":"MDU6SXNzdWUzNzQzMzQ3Mzc=","number":5044,"title":"TcpClient network stream ignores network connectivity changes","user":{"login":"borrrden","id":2470288,"node_id":"MDQ6VXNlcjI0NzAyODg=","avatar_url":"https://avatars0.githubusercontent.com/u/2470288?v=4","gravatar_id":"","url":"https://api.github.com/users/borrrden","html_url":"https://github.com/borrrden","followers_url":"https://api.github.com/users/borrrden/followers","following_url":"https://api.github.com/users/borrrden/following{/other_user}","gists_url":"https://api.github.com/users/borrrden/gists{/gist_id}","starred_url":"https://api.github.com/users/borrrden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borrrden/subscriptions","organizations_url":"https://api.github.com/users/borrrden/orgs","repos_url":"https://api.github.com/users/borrrden/repos","events_url":"https://api.github.com/users/borrrden/events{/privacy}","received_events_url":"https://api.github.com/users/borrrden/received_events","type":"User","site_admin":false},"labels":[{"id":770328998,"node_id":"MDU6TGFiZWw3NzAzMjg5OTg=","url":"https://api.github.com/repos/xamarin/xamarin-macios/labels/iOS","name":"iOS","color":"edd60e","default":false},{"id":779344254,"node_id":"MDU6TGFiZWw3NzkzNDQyNTQ=","url":"https://api.github.com/repos/xamarin/xamarin-macios/labels/support","name":"support","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/9","html_url":"https://github.com/xamarin/xamarin-macios/milestone/9","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/9/labels","id":2969797,"node_id":"MDk6TWlsZXN0b25lMjk2OTc5Nw==","number":9,"title":"Future","description":"Reviewed but not assigned to a specific milestone","creator":{"login":"spouliot","id":260465,"node_id":"MDQ6VXNlcjI2MDQ2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/260465?v=4","gravatar_id":"","url":"https://api.github.com/users/spouliot","html_url":"https://github.com/spouliot","followers_url":"https://api.github.com/users/spouliot/followers","following_url":"https://api.github.com/users/spouliot/following{/other_user}","gists_url":"https://api.github.com/users/spouliot/gists{/gist_id}","starred_url":"https://api.github.com/users/spouliot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spouliot/subscriptions","organizations_url":"https://api.github.com/users/spouliot/orgs","repos_url":"https://api.github.com/users/spouliot/repos","events_url":"https://api.github.com/users/spouliot/events{/privacy}","received_events_url":"https://api.github.com/users/spouliot/received_events","type":"User","site_admin":false},"open_issues":157,"closed_issues":266,"state":"open","created_at":"2017-12-10T22:47:28Z","updated_at":"2018-10-26T17:55:46Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-10-26T11:04:32Z","updated_at":"2018-10-26T21:39:21Z","closed_at":"2018-10-26T15:50:47Z","author_association":"NONE","body":"<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->\r\n\r\n<!--\r\nPlease fill in the *entire* template below.\r\nThe template is designed to avoid unnecessary delays to confirm and fix reported issues. Issues with missing information generally end up with a `need-info` label and take significantly more time to fix. Please help us help you!\r\nFor more information see https://github.com/xamarin/xamarin-macios/wiki/Submitting-Bugs-&-Suggestions\r\nFor support requests use https://www.xamarin.com/support\r\n-->\r\n### Steps to Reproduce\r\n\r\n1. Start up a server that listens for incoming TCP connections\r\n2. Create a client that connects using TcpClient and writes to the stream returned by `GetStream()`\r\n3. Allow at least one write to go through and then switch the phone to airplane mode\r\n4. The write (and flush) continues to succeed despite the lack of network connectivity, making ability to detect a disconnected stream impossible\r\n\r\n### Expected Behavior\r\n\r\nThere should be an exception thrown during the write call.  This is the behavior when calling `Connect` with airplane mode already on.\r\n\r\n### Actual Behavior\r\n\r\nThe write succeeds and sends the bytes to ??? (I don't know where)\r\n\r\n### Environment\r\n\r\n<!--\r\n1.\r\nVisual Studio: Help > About Microsoft Visual Studio > Copy Info [button]\r\nVisual Studio for Mac: Visual Studio > About Visual Studio > Show Details > Copy Information [button]\r\n2. Paste into the code block below (between ```)\r\n-->\r\n\r\n```\r\n=== Visual Studio Community 2017 for Mac ===\r\n\r\nVersion 7.6.5 (build 20)\r\nInstallation UUID: 9c860ff0-60f7-49fa-9bc5-91a16d0b99b1\r\nRuntime:\r\n\tMono 5.12.0.301 (2018-02/4fe3280bba1) (64-bit)\r\n\tGTK+ 2.24.23 (Raleigh theme)\r\n\tXamarin.Mac 4.4.1.178 (master / eeaeb7e6)\r\n\r\n\tPackage version: 512000301\r\n\r\n=== NuGet ===\r\n\r\nVersion: 4.3.1.4445\r\n\r\n=== .NET Core ===\r\n\r\nRuntime: /usr/local/share/dotnet/dotnet\r\nRuntime Versions:\r\n\t2.1.2\r\n\t2.1.1\r\n\t2.0.5\r\n\t2.0.0\r\n\t1.1.4\r\n\t1.0.7\r\nSDK: /usr/local/share/dotnet/sdk/2.1.302/Sdks\r\nSDK Versions:\r\n\t2.1.302\r\n\t2.1.301\r\n\t2.1.4\r\n\t2.0.0\r\n\t1.1.4\r\nMSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks\r\n\r\n=== Xamarin.Profiler ===\r\n\r\n'/Applications/Xamarin Profiler.app' not found\r\n\r\n=== Apple Developer Tools ===\r\n\r\nXcode 9.4.1 (14161)\r\nBuild 9F2000\r\n\r\n=== Xamarin.Mac ===\r\n\r\nXamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.\r\n\r\n=== Xamarin.iOS ===\r\n\r\nVersion: 11.14.0.14 (Visual Studio Community)\r\nHash: 1a6e2786\r\nBranch: HEAD\r\nBuild date: 2018-08-28 00:12:06-0400\r\n\r\n=== Xamarin.Android ===\r\n\r\nVersion: 9.0.0.20 (Visual Studio Community)\r\nAndroid SDK: /Users/borrrden/Library/Developer/Xamarin/android-sdk-macosx\r\n\tSupported Android versions:\r\n\t\t5.0 (API level 21)\r\n\t\t6.0 (API level 23)\r\n\t\t7.0 (API level 24)\r\n\t\t7.1 (API level 25)\r\n\t\t8.0 (API level 26)\r\n\t\t8.1 (API level 27)\r\n\r\nSDK Tools Version: 26.1.1\r\nSDK Platform Tools Version: 27.0.1\r\nSDK Build Tools Version: 27.0.3\r\n\r\nJava SDK: /usr\r\njava version \"1.8.0_131\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_131-b11)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)\r\n\r\nAndroid Designer EPL code available here:\r\nhttps://github.com/xamarin/AndroidDesigner.EPL\r\n\r\n=== Xamarin Inspector ===\r\n\r\nVersion: 1.4.3\r\nHash: db27525\r\nBranch: 1.4-release\r\nBuild date: Mon, 09 Jul 2018 21:20:18 GMT\r\nClient compatibility: 1\r\n\r\n=== Build Information ===\r\n\r\nRelease ID: 706050020\r\nGit revision: f6a29a810eb4b81ceb9a4ea4ba411da98b6e25cf\r\nBuild date: 2018-09-11 21:34:07+00\r\nBuild branch: release-7.6\r\nXamarin extensions: 097e18c3e104c652bde3a02799dcba13eaad6f7b\r\n\r\n=== Operating System ===\r\n\r\nMac OS X 10.13.6\r\nDarwin 17.7.0 Darwin Kernel Version 17.7.0\r\n    Thu Jun 21 22:53:14 PDT 2018\r\n    root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64\r\n\r\n=== Enabled user installed extensions ===\r\n\r\nInternet of Things (IoT) development (Preview) 7.5\r\n```\r\n\r\n### Build Logs\r\n\r\n<!--\r\n1. Place cursor below this comment block.\r\n2. Attach build log or link to gist (https://gist.github.com/) of the log.\r\n-->\r\n\r\nn/a\r\n\r\n### Example Project (If Possible)\r\n\r\n<!--\r\n1. Place cursor below this comment block.\r\n2. Drag and drop the compressed project or files needed to reproduce.\r\n-->\r\n\r\n[WTFSocket.zip](https://github.com/xamarin/xamarin-macios/files/2518912/WTFSocket.zip)\r\n\r\n<!--\r\nSwitch to the \"Preview\" tab to ensure your issue renders correctly.\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/comments/433550706","html_url":"https://github.com/xamarin/xamarin-macios/issues/5044#issuecomment-433550706","issue_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/5044","id":433550706,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzU1MDcwNg==","user":{"login":"borrrden","id":2470288,"node_id":"MDQ6VXNlcjI0NzAyODg=","avatar_url":"https://avatars0.githubusercontent.com/u/2470288?v=4","gravatar_id":"","url":"https://api.github.com/users/borrrden","html_url":"https://github.com/borrrden","followers_url":"https://api.github.com/users/borrrden/followers","following_url":"https://api.github.com/users/borrrden/following{/other_user}","gists_url":"https://api.github.com/users/borrrden/gists{/gist_id}","starred_url":"https://api.github.com/users/borrrden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borrrden/subscriptions","organizations_url":"https://api.github.com/users/borrrden/orgs","repos_url":"https://api.github.com/users/borrrden/repos","events_url":"https://api.github.com/users/borrrden/events{/privacy}","received_events_url":"https://api.github.com/users/borrrden/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T21:39:21Z","updated_at":"2018-10-26T21:39:21Z","author_association":"NONE","body":"I don't understand this response.  Even if the OS socket is closed is should not be functional anymore.  It will fail to get any ACK responses for its transmissions and shut itself down, would it not?"}}
{"actor":{"display_login":"borrrden"}}