代码改变世界

随笔档案-2013年09月

.NET client connection Limit

2013-09-12 16:10 by 蜡笔小旧, 745 阅读, 收藏, 编辑
摘要: 调试出了一个诡异的问题,使用多个进程没问题,单进程出现了。fix://默认限制为2个连接//public const int DefaultPersistentConnectionLimit = 2;ServicePointManager.DefaultConnectionLimit = int.MaxValue; // Summary: // The default number of non-persistent connections (4) allowed on a System.Net.ServicePoint // obje... 阅读全文

IE or Chrome can not use localhost, firefox can works.

2013-09-12 16:05 by 蜡笔小旧, 699 阅读, 收藏, 编辑
摘要: 因为服务器开启'localhost:9999",使用IE无法登陆,firefox下正常。遂查看cookie,果然没有写入。stackoverflow.com:"ie enable cookies for localhost""ie localhost not working"一般答案都是重置IE,设置hosts文件:127.0.0.1 localhost,都无法解决问题。正解:IEs认为domain name都带‘.’,不能为一级域名,所以hosts文件设置"127.0.0.1 localhost.com",可以解决 阅读全文
点击右上角即可分享
微信分享提示