1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/ext/puma_http11/extconf.rb
Evan Phoenix 46416cb49e More gracefully deal with SSL sessions. Fixes #1002
The problem was a few points:

* We were not clearing the reactor on a normal stop, which is what
  is used in a phased restart.
* On close, SSL sockets were not sending the shutdown message.
* SSL sockets that were completely uninitialized ended up sitting
  in reactor and could not actually be shutdown because there were
  not initialized.
2016-07-25 18:44:48 -07:00

15 lines
321 B
Ruby

require 'mkmf'
dir_config("puma_http11")
unless ENV["DISABLE_SSL"]
dir_config("openssl")
if %w'crypto libeay32'.find {|crypto| have_library(crypto, 'BIO_read')} and
%w'ssl ssleay32'.find {|ssl| have_library(ssl, 'SSL_CTX_new')}
have_header "openssl/bio.h"
end
end
create_makefile("puma/puma_http11")