任何人都可以发布一个如何在Tsung中启用SSL的示例吗?

我正在使用Tsung从另一台机器上测试CouchDB服务器,并且需要建立安全连接.不幸的是,我无法在文档或在线中找到语法示例…

任何帮助将不胜感激!

最佳答案
在tsung.xml中:

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

current Tsung documentation的参考文献:

6.2. Clients and Server > Basic setup

Type can be tcp, ssl, udp (for IPv6, use tcp6, ssl6 or udp6 ; only available in version 1.4.2 and newer) or websocket (only available in version 1.5.0 and newer)):

<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

Does your Erlang system has SSL support enabled?
To test it:

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

转载注明原文:任何人都可以发布一个如何在Tsung中启用SSL的示例吗? - 代码日志