Skip to content

ssl_verify_peer does close the connection also for outbound connections #2

Description

@ibc

In lib/vines/stream.rb#L94 it is writen:

    def ssl_verify_peer(pem)
      # EM is supposed to close the connection when this returns false,
      # but it only does that for inbound connections, not when we
      # make a connection to another server.
      @store.trusted?(pem).tap do |trusted|
        close_connection unless trusted
      end
    end

Fortunatelly that is an already fixed bug (in EM master branch). Take a look to this report:

I also recommend you to check this bug I've found using EM with TLS:

And I've not tested this one:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions