Method: Ftpd::ConnectionTracker#track
- Defined in:
- lib/ftpd/connection_tracker.rb
#track(socket) ⇒ Object
Track a connection. Yields to a block; the connection is tracked until the block returns.
39 40 41 42 43 44 45 46 |
# File 'lib/ftpd/connection_tracker.rb', line 39 def track(socket) start_track socket begin yield ensure stop_track socket end end |