{"id":3547,"date":"2016-01-29T19:47:10","date_gmt":"2016-01-29T19:47:10","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=3547"},"modified":"2016-01-29T19:47:10","modified_gmt":"2016-01-29T19:47:10","slug":"increasing-the-maximum-number-of-connections-with-maxconnection","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/increasing-the-maximum-number-of-connections-with-maxconnection\/","title":{"rendered":"Increasing the maximum number of connections with maxconnection"},"content":{"rendered":"<p>By default when calling webservices etc. we&#8217;re limited to 2 maximum connections at a time in an application, so it doesn&#8217;t matter if you (for example) create multiple background threads to run webservice calls as you&#8217;ll still be limited to two connections.<\/p>\n<p>We can change this using the App.config for our application and adding the following<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;system.net&gt;\r\n   &lt;connectionManagement&gt;\r\n      &lt;add address=&quot;*&quot; maxconnection=&quot;20&quot;\/&gt;\r\n   &lt;\/connectionManagement&gt;\r\n&lt;\/system.net&gt;\r\n<\/pre>\n<p><em>See <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/system.net.configuration.connectionmanagementelement.maxconnection(v=vs.110).aspx\" target=\"_blank\">ConnectionManagementElement.MaxConnection Property<\/a><\/em><\/p>\n<p><em>Note: The maxconnection does not apply to local web service calls<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default when calling webservices etc. we&#8217;re limited to 2 maximum connections at a time in an application, so it doesn&#8217;t matter if you (for example) create multiple background threads to run webservice calls as you&#8217;ll still be limited to two connections. We can change this using the App.config for our application and adding the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49,3],"tags":[],"class_list":["post-3547","post","type-post","status-publish","format-standard","hentry","category-net","category-c"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/3547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=3547"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/3547\/revisions"}],"predecessor-version":[{"id":3549,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/3547\/revisions\/3549"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=3547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=3547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=3547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}