Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net “之间的https延迟”;更改密码规格“;及;“应用程序数据”;_.net_Ssl_Https_Windows Networking - Fatal编程技术网

.net “之间的https延迟”;更改密码规格“;及;“应用程序数据”;

.net “之间的https延迟”;更改密码规格“;及;“应用程序数据”;,.net,ssl,https,windows-networking,.net,Ssl,Https,Windows Networking,我在Windows7(客户端)上使用.NET4.5对运行在嵌入式系统(服务器)上的lighttpd进行https调用 第一个https请求比后续请求慢+-120ms。第一个请求速度较慢是正常的,因为连接已建立,其他请求重新使用现有连接 当我查看Wireshark时,我看到以下TLSv1消息: client -> server: Client Hello server -> client: Server Hello, Certificate, Server Hello Done cli

我在Windows7(客户端)上使用.NET4.5对运行在嵌入式系统(服务器)上的lighttpd进行https调用

第一个https请求比后续请求慢+-120ms。第一个请求速度较慢是正常的,因为连接已建立,其他请求重新使用现有连接

当我查看Wireshark时,我看到以下TLSv1消息:

client -> server: Client Hello
server -> client: Server Hello, Certificate, Server Hello Done
client -> server: Client Key Exchange, Change Cipher Spec, Finished
server -> client: Change Cipher Spec, Finished
此设置过程大约需要25毫秒

然后,Windows计算机发送http请求需要80毫秒

client -> server: Http Request
问题

为什么Windows机器需要80毫秒才能发送请求?我可以减少延迟吗

注意 如果我在同一台机器上使用Qt5.2(使用OpenSSL)发送请求,安装过程大约需要55毫秒,Http请求在1毫秒内发送。

(回答我自己的问题)

在此期间.NET验证服务器证书。验证包括验证名称并将证书链接到系统受信任的根CA

时间不能缩短