Class: Raindrops::ListenStats

### Home Classes Methods

### In Files

- lib/raindrops.rb

### Parent

Struct.new(:active, :queued)

### Methods

- #total

### Files

- LICENSE
- NEWS
- README

### Class/Module Index

Quicksearch

- Raindrops
- Raindrops::Aggregate
- Raindrops::Aggregate::LastDataRecv
- Raindrops::Aggregate::PMQ
- Raindrops::InetDiagSocket
- Raindrops::LastDataRecv
- Raindrops::Linux
- Raindrops::ListenStats
- Raindrops::Middleware
- Raindrops::Middleware::Proxy
- Raindrops::Middleware::Stats
- Raindrops::Struct
- Raindrops::TCP_Info
- Raindrops::Watcher

No matching classes.

# Raindrops::ListenStats

Used to represent the number of `active` and `queued` sockets for a single listen socket across all threads and processes on a machine.

For TCP listeners, only sockets in the TCP_ESTABLISHED state are accounted for. For Unix domain listeners, only CONNECTING and CONNECTED Unix domain sockets are accounted for.

`active` connections is the number of accept()-ed but not-yet-closed sockets in all threads/processes sharing the given listener.

`queued` connections is the number of un-accept()-ed sockets in the queue of a given listen socket.

These stats are currently only available under Linux

### Public Instance Methods

total() click to toggle source

the sum of `active` and `queued` sockets

    # File lib/raindrops.rb, line 35
    def total
      active + queued
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.