                             }
                             if !keepAlive { break }
                         }
+                        self.currentRequests--
                         Socket.release(socket)
                     });
                 }

    var acceptSocket: CInt = -1
    let matchingOptions = NSMatchingOptions(0)
    let expressionOptions = NSRegularExpressionOptions(0)
    
    subscript (path: String) -> Handler? {
        get {

        }
    }
    
    func activeRequests() -> Int {
        return self.currentRequests
    }
    
    func routes() -> Array<String> {
        var results = [String]()
        for (expression,_) in handlers { results.append(expression.pattern) }
