Giter Club home page Giter Club logo

Comments (8)

vans163 avatar vans163 commented on May 12, 2024 1

That issue looks a little different but who knows. The OTP is 23.2.7 erts 11.1.8 elixir 1.11.3 on ubuntu 20.10. Il make a PR yea NP.

from bakeware.

vans163 avatar vans163 commented on May 12, 2024
warning: Caught exception in Elixir.Prism.Bakeware.main/1: :exit => {{{:bad_action_from_state_function, {{:timeout, :handshake}, :cancel}},
  [
    {:gen_statem, :loop_actions_timeout, 13,
     [file: 'gen_statem.erl', line: 1615]},
    {:tls_connection, :init, 1, [file: 'tls_connection.erl', line: 153]},
    {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}
  ]}, {:gen_statem, :call, [#PID<0.883.0>, {:recv, 0, :infinity}, :infinity]}}
  (stdlib 3.9.2) gen.erl:177: :gen.do_call/4
  (stdlib 3.9.2) gen_statem.erl:611: :gen_statem.call_dirty/4
  (ssl 9.6.1) ssl_connection.erl:2525: :ssl_connection.call/2

I am able to recreate this

        {:ok, socket} = :ssl.connect({11,1,1,1}, 443, [{:server_name_indication, 'name}, {:active, false}, :binary], 30_000)
        :ok = :ssl.send(socket, <<>>)
        IO.puts :ssl.recv(socket, 0)

So on :ssl.recv the error above happens. It seems maybe the :SSL module is not setup correctly. (The ssl module is really complex requiring a bunch of ets and other preinited tables)

from bakeware.

vans163 avatar vans163 commented on May 12, 2024

Tried even spawning a process inside the main function, same problem, the ssl connection is all messed up.

from bakeware.

vans163 avatar vans163 commented on May 12, 2024

After further testing I think this is an issue with elixir releases on >=1.11.0

from bakeware.

vans163 avatar vans163 commented on May 12, 2024

Update on this, solved my problems by statically compiling openssl 1.1.1j into erlang itself. Maybe a note makes sense to have in the README, but not sure if this is an isolated issue with only my env.

from bakeware.

fhunleth avatar fhunleth commented on May 12, 2024

@vans163 What platform and OTP versions are you using? Could it be an issue similar to this erlef/setup-beam#7?

I also agree that it's worth a note to the README about statically linking OpenSSL. If you could PR some text that briefly describes the issue (one sentence is fine) and points to instructions on how to statically link openssl, that would be really helpful.

from bakeware.

vans163 avatar vans163 commented on May 12, 2024

#102

from bakeware.

jjcarstens avatar jjcarstens commented on May 12, 2024

Addressed with #102

from bakeware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.