Sha256: 1d01e7830f6f83fdb84d37f2371ebf4b59e22d3ceea12db3fd3ee47ac0bdcb51
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require 'ldap/server' require 'rbmk/operation' module RBMK class Worker def self.hire peer, upstream; new(peer, upstream).serve end def initialize peer, upstream upstream.mktemp @peer = peer @conn = LDAP::Server::Connection.new @peer.socket, server: upstream, logger: $log, operation_class: RBMK::Operation, schema: upstream.schema, namingContexts: upstream.root_dse['namingContexts'] end def serve @conn.handle_requests ensure @peer.close end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbmk-0.1.0.e | lib/rbmk/worker.rb |