문제

I'm load testing a CouchDB server from another machine using Tsung, and need to establish a secure connection. Unfortunately, I've not been able to find an example of the syntax in the documentation or online...

Any help would be greatly appreciated!

도움이 되었습니까?

해결책

In tsung.xml:

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

References from the 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'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top