{"id":11413,"date":"2011-02-23T07:00:00","date_gmt":"2011-02-23T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2011\/02\/23\/how-long-does-an-idle-unc-connection-remain-active-before-it-is-automatically-disconnected\/"},"modified":"2011-02-23T07:00:00","modified_gmt":"2011-02-23T07:00:00","slug":"how-long-does-an-idle-unc-connection-remain-active-before-it-is-automatically-disconnected","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20110223-00\/?p=11413","title":{"rendered":"How long does an idle UNC connection remain active before it is automatically disconnected?"},"content":{"rendered":"<p>When you access a resource via a <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/cc232144.aspx#universal_naming_convention\"> UNC<\/a>, the Windows network redirector keeps the virtual circuit open for a while even after you close the resource. This is done to take advantage of locality: If you access a network resource once, you&#8217;re probably going to access it again in a short time, so the redirector leaves the connection open for a little bit, on the off chance that you&#8217;re going to use it again. For example, if copying a bunch of files from a server via a UNC, once one file copy is complete, the next one is going to start very shortly thereafter.\n If there is no activity on a connection for a while, then the redirector decides, &#8220;Okay, well, I guess that&#8217;s all there is for that&#8221; and closes the connection.<\/p>\n<p> The <a href=\"http:\/\/www.microsoft.com\/technet\/prodtechnol\/windows2000serv\/reskit\/regentry\/58896.mspx\"> default duration for this &#8220;UNC grace period&#8221; is ten minutes<\/a>. You can customize it by setting the <code>KeepConn<\/code> parameter. Increasing the value will keep the connection active longer, which is a greater convenience for the client, but it also increases the load on the server. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you access a resource via a UNC, the Windows network redirector keeps the virtual circuit open for a while even after you close the resource. This is done to take advantage of locality: If you access a network resource once, you&#8217;re probably going to access it again in a short time, so the redirector [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-11413","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>When you access a resource via a UNC, the Windows network redirector keeps the virtual circuit open for a while even after you close the resource. This is done to take advantage of locality: If you access a network resource once, you&#8217;re probably going to access it again in a short time, so the redirector [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/11413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=11413"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/11413\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=11413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=11413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=11413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}