Class: Bane::Behaviors::NeverRespond

Inherits:
BasicBehavior show all
Defined in:
lib/bane/behaviors.rb

Overview

Accepts a connection and never sends a byte of data. The connection is left open indefinitely.

Instance Method Summary collapse

Methods inherited from BasicBehavior

inherited, simple_name

Instance Method Details

#serve(io, options) ⇒ Object



114
115
116
# File 'lib/bane/behaviors.rb', line 114

def serve(io, options)
  loop { sleep 1 }
end