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

Version Path
websocket-rack-0.3.3 bin/thin-websocket
websocket-rack-0.3.2 bin/thin-websocket
websocket-rack-0.3.1 bin/thin-websocket
websocket-rack-0.3.0 bin/thin-websocket
websocket-rack-0.2.1 bin/thin-websocket
websocket-rack-0.1.4 bin/thin-websocket
websocket-rack-0.1.3.1 bin/thin-websocket
websocket-rack-0.1.3 bin/thin-websocket
websocket-rack-0.1.2 bin/thin-websocket
websocket-rack-0.1.1 bin/thin-websocket