<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Magnus,<br>
      <br>
      I did the ssl:start() as you suggested, and it now appears to
      work. So why is that necessary?<br>
      <br>
      The program calls:<br>
      <br>
         application:start(ssl),<br>
      <br>
      which I presume would cause ssl:start() to be called... Why is
      that not enough?<br>
      <br>
      Also, is it ok to put the ssl:start() inside the program, and why
      wasn't that done?<br>
      <br>
      Lastly, Vimal Kumar suggested I use
      application:ensure_all_started(ssl), would that remove the need
      for the ssl:start() ?<br>
      <br>
      Sorry for all the questions :-)<br>
      <br>
      Regards<br>
      <br>
      Roger<br>
      <br>
      On 19/02/16 16:31, Magnus Henoch wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ67tHo-JZG_sVci7hauBzqhrcwJV8=jc8DGaa-jxTQj4TFZLg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>You need to run <span
              style="font-family:monospace,monospace">ssl:start()</span>
            before starting the example.<br>
            <br>
          </div>
          Regards,<br>
        </div>
        Magnus<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Feb 19, 2016 at 2:55 PM, Roger
          Wenham <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:roger.wenham@gmx.net" target="_blank">roger.wenham@gmx.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi, <br>
              Having had some difficulty writing a TLS server, I decided
              to run the example in the sources for SSL <br>
              (...<i><span>/</span>erlang/lib/ssl-7.2/examples<span>/</span></i>...)
              and to my surprise, it fails also. <br>
              <br>
              What I get is: <br>
              <br>
              Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:8:8]
              [async-threads:10] [hipe] [kernel-poll:false] <br>
              <br>
              Eshell V7.2.1  (abort with ^G) <br>
              <br>
              1> client_server:start(). <br>
              ** exception exit: {noproc,{gen_server,call, <br>
                                                    
              [ssl_listen_tracker_sup, <br>
                                                          
              {start_child,[#Port<0.748>, <br>
                                                          
              [{active,false}, <br>
                                                                    
              {packet_size,0}, <br>
                                                                    
              {packet,0}, <br>
                                                                    
              {header,0}, <br>
                                                                    
              {mode,list}], <br>
                                                                    
              {ssl_options,tls, <br>
                                                                    
              [{3,3},{3,2},{3,1}], <br>
                                                                           

              verify_peer,undefined,#Fun<ssl.9.76101806>,true,false,

              <br>
                                                                           

              undefined,2,<<"/opt/local/lib/erlang/li"...>>,undefined,

              <br>
                                                             
<<"/opt/local/lib/e"...>>,undefined,[],undefined,<<...>>,...}]},<br>
                                                                        
                 infinity]}} <br>
                   in function  gen_server:call/3 (gen_server.erl, line
              212) <br>
                   in call from ssl:listen/2 (ssl.erl, line 155) <br>
                   in call from client_server:start/0
              (client_server.erl, line 35) <br>
              <br>
              I have tried this on several platforms, and the failure
              appears to be the same...<br>
              <br>
              I checked back trough the archive for the last few months,
              but no joy... <br>
              <br>
              Anyone have any idea about what I'm doing wrong? <br>
              <br>
              Thanks <br>
              <span class="HOEnZb"><font color="#888888"> <br>
                  Roger <br>
                  <br>
                  <br>
                </font></span></div>
            <br>
            _______________________________________________<br>
            erlang-questions mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
            <a moz-do-not-send="true"
              href="http://erlang.org/mailman/listinfo/erlang-questions"
              rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>