在Ubuntu / Apache2 / PHP / cURL设置中,我通过https向远程服务器发出SOAP请求。原来这些请求中的第一个始终需要至少2秒,而以下通常具有0.4秒的往返时间。我做了一些日志记录,结果握手消耗了很多时间,多次往返。我的设置有什么问题吗? 请参阅典型握手的以下屏幕截图。
另外,命令
openssl s_client -connect cs17-was.my.salesforce.com:443 -state -nbio 2>&1 | grep "^SSL"
产生以下结果:
SSL_connect:before/connect initialization
SSL_connect:unknown state
SSL_connect:error in unknown state
SSL_connect:SSLv3 read server hello A
SSL_connect:error in SSLv3 read server certificate A
SSL_connect:error in SSLv3 read server certificate A
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server done A
SSL_connect:SSLv3 write client key exchange A
SSL_connect:SSLv3 write change cipher spec A
SSL_connect:SSLv3 write finished A
SSL_connect:SSLv3 flush data
SSL_connect:error in SSLv3 read finished A
SSL_connect:SSLv3 read finished A
SSL handshake has read 4332 bytes and written 647 bytes
任何人都知道问题出在哪里?