[erlang-questions] YAWS, SOAP and SSL under load result in SSL socket closing with bad_info

Ingela Andin ingela.andin@REDACTED
Mon Aug 16 09:31:40 CEST 2010


Hi!

Using the latest erlang ssl-version the ssl connection will be
shutdown gracefully and
you will get an info report about the tcp error.

Regards Ingela Erlang/OTP team - Ericsson AB

2010/8/12 Jan Jacobs <hpjcon@REDACTED>:
>  Hi,
>
> I have an application which uses YAWS(1.88) in embedded mode with SOAP over
> SSL.
> It is using R13B04 on windows platforms (XP 32 Bit, Vista 32 Bit and Windows
> 2008 64 Bit).
>
> I am getting the following error:
>
> (It looks like a SSL error)
> =ERROR REPORT==== 4-Aug-2010::11:37:19 ===
> ** State machine <0.7595.0> terminating
> ** Last message in was {tcp_error,#Port<0.17333>,econnaborted}
> ** When State == connection
>
> ...
>
>                     undefined,undefined,#Ref<0.0.0.223980>,
>                     {<0.7592.0>,#Ref<0.0.0.232900>},
>                     0,<<>>,true}
> ** Reason for termination =
> ** bad_info
>
> (which then kicks a yaws error)
> =ERROR REPORT==== 4-Aug-2010::11:37:19 ===
> Yaws process died: {bad_info,{gen_fsm,sync_send_all_state_event,
>                                      [<0.7595.0>,{recv,0},30000]}}
>
> This happens under load or when more than 300000 SOAP transaction has been
> processed.
> I then have to stop SSL and YAWS applications and start them again to accept
> more transactions.
>
> YAWS Config:
>  GL =
>  [
>    {enable_soap,       true}
>    ,{trace,            false}
>    ,{tmpdir,           DirLog}
>    ,{logdir,           DirLog}
>    ,{ebin_dir,         [DirEbin]}
>    ,{include_dir,      DirInc}
>    ,{max_connections,  nolimit}
>    ,{use_old_ssl,      false}
>    ,{flags,            [
>                          {auth_log,      true}
>                          ,{tty_trace,    true}
>                          ,{copy_errlog,  false}
>                        ]}
>  ],
>
>  SL =
>  [
>    {port,              PortYaws}
>    ,{servername,       MyHostname}
>    ,{dir_listings,     true}
>    ,{listen,           {0,0,0,0}}
>    ,{appmods,          [{"/OpenAPI",maxman_km_service_soap}]}
>    ,{flags,            [
>                          {access_log,true}
>                        ]}
>    ,ssl()
>  ],
>
>
> YAWS SSL Config:
>  {ssl,
>  [
>    {keyfile,Keyfile}
>    ,{certfile,Certfile}
>    ,{verify,0}
>    ,{depth,0}
>  ]}
>
> Any suggestions and/or comments will be appreciated.
>
> Thanks
> Jan
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list