2013-02-11 25 views

回答

7

在tsung.xml:从current Tsung documentation

<servers> 
    <server host="HOSTNAME_HERE" port="443" type="ssl"></server> 
</servers> 

参考文献:

6.2. Clients and Server > Basic setup

类型可以是tcpssludp(对于IPv6,使用tcp6ssl6udp6;仅在1.4.2版本和更新)或websocket(只在1.5.0和更新的版本))可提供:

<servers> 
    <server host="server1" port="80" type="ssl" weight="4"></server> 
    <server host="server2" port="80" type="ssl" weight="1"></server> 
</servers> 

10. FAQ > Tsung crashes when I start it

贵二郎系统具有SSL支持启用?
为了测试它:

erl 
Eshell V5.2 (abort with ^G) 
1> ssl:start(). 
you should see 'ok' 
+0

感谢Alies。关于凭证呢?他们在哪里定义? – Colfax 2013-02-27 17:51:44

+1

假设你必须为此使用Erlang SSL模块。查看这些文章:[使用Erlang简要介绍ssl](http://pdincau.wordpress.com/2011/06/22/a-brief-introduction-to-ssl-with-erlang/),[使用SSL Erlang Distribution](http://www.erlang.org/doc/apps/ssl/ssl_distribution.html),[使用SSL API](http://www.erlang.org/doc/apps/ssl/using_ssl .html)[配置Erlang以使用SSL](http://stackoverflow.com/questions/2207384/configuring-erlang-to-work-with-ssl)。 – 2013-02-27 18:46:33

+1

此外,请确保您没有使用Tsung 1.5.0 - 该版本包含[阻止SSL连接成功的错误](https://support.process-one.net/browse/TSUN-278),并返回结果一个'error_connect_ssl_not_started'错误。 – 2015-02-04 23:47:07

相关问题