Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
a24d65efb615fd120493dd1d5b837a907950d516 blob 313 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
# -*- encoding: binary -*-
# :enddoc:
class Rainbows::Coolio::Server < Coolio::IO
  CONN = Rainbows::Coolio::CONN
  # CL and MAX will be defined in the corresponding worker loop

  def on_readable
    return if CONN.size >= MAX
    io = @_io.kgio_tryaccept(Rainbows::Client) and CL.new(io).attach(LOOP)
  end
end
debug log:

solving a24d65e ...
found a24d65e in https://yhbt.net/rainbows-public/20170402002615.GA32751@starla/
found 0d8af8c in https://yhbt.net/rainbows.git
preparing index
index prepared:
100644 0d8af8ca36c790b47874c5c6339585f682decc68	lib/rainbows/coolio/server.rb

applying [1/1] https://yhbt.net/rainbows-public/20170402002615.GA32751@starla/
diff --git a/lib/rainbows/coolio/server.rb b/lib/rainbows/coolio/server.rb
index 0d8af8c..a24d65e 100644

Checking patch lib/rainbows/coolio/server.rb...
Applied patch lib/rainbows/coolio/server.rb cleanly.

index at:
100644 a24d65efb615fd120493dd1d5b837a907950d516	lib/rainbows/coolio/server.rb

Code repositories for project(s) associated with this inbox:

	../../../rainbows.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).