我的一个程序,使用socket从服务器中取得每期数据,在winxp中一切正常,但在win7中使用,却延迟时间很长,比方在xp中一两秒就从服务端取到数据了,但程序安装到win7中后,却要用几分钟时间才能取到,为什么在win7中的socket速度如此之慢呢?有什么办法可以解决这个问题呢?我怀疑,在win7中的socket,跟winxp中的,完全不是一回事,在此请教达人指点!
调试欢乐多
命令行下执行:
netsh int tcp set global autotuninglevel=disable
2. Next, follow the instructions .
First enter: "netsh int tcp set global autotuninglevel=disabled" and reboot.
Then enter: "netsh int tcp set global autotuninglevel=normal" to restore it to the typical setting.
3. Finally, go to Control Panel > Programs > Turn Windows Features on or off > and check "Simple TCPIP services (i.e. echo, daytime, etc.) so that it is enabled.
4. Reboot your system again, and the file transfer rates should be excellent.