negativecode/vines — Issue #2: ssl_verify_peer does close the connection also for outbound connections
Author: ibc
Created: 2011-11-06 18:00:37+00:00
State: open

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

```ruby
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:

* https://github.com/eventmachine/eventmachine/issues/277

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

* https://github.com/eventmachine/eventmachine/issues/194

And I've not tested this one:

* https://github.com/eventmachine/eventmachine/issues/275