Sha256: c7459ff9adce0324e17fd062a523eff9b5364dea1a7cd47d2d19609869b11f52
Contents?: true
Size: 741 Bytes
Versions: 10
Compression:
Stored size: 741 Bytes
Contents
#!/usr/bin/env ruby # Modified Thin command line interface script. # This is fallback for WebSocket-Rack. # Use it when you have EventMachine version < 1.0.0 # Rationale: # Older versions of EM have bug that prevent to # clearing connection inactivity once it's set. # This one will set connection timeout to 0 at # default, so there will be no need to overwrite it. # Be aware that this will also change inactivity # timeout for "normal" connection, so it will be # easy to make DoS attack. require 'rubygems' require 'thin' if EM::VERSION < "1.0.0" begin old_verbose, $VERBOSE = $VERBOSE, nil ::Thin::Server.const_set 'DEFAULT_TIMEOUT', 0 ensure $VERBOSE = old_verbose end end Thin::Runner.new(ARGV).run!
Version data entries
10 entries across 10 versions & 1 rubygems