mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/https.rb (HTTPServer#run): should set syncing-mode
to SSLSocket. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c791dc1345
commit
3d7147bcea
2 changed files with 7 additions and 1 deletions
|
@ -129,6 +129,7 @@ module WEBrick
|
|||
def run(sock)
|
||||
if @config[:SSLEnable]
|
||||
ssl = OpenSSL::SSL::SSLSocket.new(sock, @ctx)
|
||||
ssl.sync = true
|
||||
ssl.accept
|
||||
Thread.current[:WEBrickSocket] = ssl
|
||||
orig_run(ssl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue