repo.or.cz
/
rainbows.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
doc: misc cleanups and additions for RDoc
[rainbows.git]
/
lib
/
rainbows
/
rev
/
server.rb
blob
b75e593fe2f4133a29895bac28f885fa8b7781bb
1
# -*- encoding: binary -*-
2
# :enddoc:
3
class Rainbows::Rev::Server < Rev::IO
4
CONN = Rainbows::Rev::CONN
5
# CL and MAX will be defined in the corresponding worker loop
6
7
def on_readable
8
return if CONN.size >= MAX
9
io = @_io.kgio_tryaccept and CL.new(io).attach(LOOP)
10
end
11
end