Skip to content

Commit 2896360

Browse files
committed
misc + wrap dir_config inside the rescue, see issue #159
1 parent b0761e6 commit 2896360

File tree

4 files changed

+278
-76
lines changed

4 files changed

+278
-76
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ please review the `iodine -h` command line options for more details on these and
4747

4848
## Iodine - a fast & powerful HTTP + WebSockets server/client with native Pub/Sub
4949

50-
Iodine includes a light and fast HTTP and WebSocket server written in C that was written to support both the [NeoRack Specifications](https://github.com/boazsegev/neorack) (with [WebSocket](https://github.com/boazsegev/neorack/blob/master/extensions/websockets.md) / [SSE](https://github.com/boazsegev/neorack/blob/master/extensions/sse.md)) and [Rack specifications](https://github.com/rack/rack/blob/main/SPEC.rdoc) (with the experimental [WebSocket / SSE Rack draft](./Old-WebSocket-Draft.md)).
50+
Iodine includes a light and fast HTTP and WebSocket server written in C that was written to support both the [NeoRack Specifications](https://github.com/boazsegev/neorack) (with [WebSocket](https://github.com/boazsegev/neorack/blob/master/extensions/websockets.md) / [SSE](https://github.com/boazsegev/neorack/blob/master/extensions/sse.md)) and [Rack specifications](https://github.com/rack/rack/blob/main/SPEC.rdoc) (with the experimental [WebSocket / SSE Rack draft](https://github.com/boazsegev/neorack/blob/master/deprecated/Rack-WebSocket-Draft.md)).
5151

5252
Iodine also supports native process cluster Pub/Sub and a native RedisEngine to easily scale iodine's Pub/Sub horizontally.
5353

ext/iodine/extconf.rb

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
require "mkmf"
22

3-
dir_config("openssl")
4-
5-
if have_library('crypto') && have_library('ssl')
6-
begin
3+
begin
4+
dir_config("openssl")
5+
if have_library('crypto') && have_library('ssl')
76
require 'openssl'
87
if(OpenSSL::VERSION.to_i > 2)
98
puts "* Detected OpenSSL version >= 3 (#{OpenSSL::VERSION}), setting the HAVE_OPENSSL flag."
109
$defs << "-DHAVE_OPENSSL"
1110
else
1211
puts "* Detected OpenSSL with incompatible version (#{OpenSSL::VERSION})."
1312
end
14-
rescue LoadError
15-
puts "* Couldn't find OpenSSL - skipping!"
1613
end
14+
rescue => e
15+
puts "* Couldn't find OpenSSL - skipping!\n\t Err: #{e.message}"
1716
end
1817

1918
$defs << "-DDEBUG" if ENV["DEBUG"]

0 commit comments

Comments
 (0)