{"id":28,"date":"2024-09-15T20:37:50","date_gmt":"2024-09-15T20:37:50","guid":{"rendered":"https:\/\/hrvoje-krizan.com\/?p=28"},"modified":"2024-09-16T05:06:24","modified_gmt":"2024-09-16T05:06:24","slug":"fun-fact-3-maximum-pool-connections-for-httpwebrequest-in-net-4-5","status":"publish","type":"post","link":"https:\/\/hrvoje-krizan.com\/index.php\/2024\/09\/15\/fun-fact-3-maximum-pool-connections-for-httpwebrequest-in-net-4-5\/","title":{"rendered":"Maximum Pool Connections for HttpWebRequest in .NET &lt;=4.5!"},"content":{"rendered":"\n<p><br>Did you know that in .NET Framework 4.5, the maximum number of connections in the pool for HTTP requests is controlled by the `ServicePointManager.DefaultConnectionLimit` property? \ud83d\udd11<br><br>By default, this limit is set to 2 for the HTTP\/1.1 protocol, meaning you can have up to two simultaneous connections to the same server. If your application requires more concurrent connections, you can increase this limit programmatically to meet your needs. \ud83d\ude80<br><br>\u2728 **Tip:** To increase the connection limit, simply set `ServicePointManager.DefaultConnectionLimit` to a higher value early in your application&#8217;s startup process:<br><br>System.Net.ServicePointManager.DefaultConnectionLimit = 100; \/\/ Adjusts the limit to 100<br><br>Keep your HTTP requests efficient and your apps running smoothly!<br><br>Stay tuned for more fun .NET\/SQL facts! \ud83d\udcbb\u2728<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know that in .NET Framework 4.5, the maximum number of connections in the pool for HTTP requests is controlled by the `ServicePointManager.DefaultConnectionLimit` property? \ud83d\udd11 By default, this limit is set to 2 for the HTTP\/1.1 protocol, meaning you can have up to two simultaneous connections to the same server. If your application requires [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,8,6,5,13,9],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-net","tag-connectionpooling","tag-dotnet","tag-funfact","tag-httprequests","tag-programmingtips"],"_links":{"self":[{"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/posts\/28"}],"collection":[{"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":2,"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/posts\/28\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hrvoje-krizan.com\/index.php\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}