Rainbows! Rack HTTP server user/dev discussion
 help / color / Atom feed
51c40548955f638f44e3e4ad58142f7004a84c35 blob 482 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
# -*- encoding: binary -*-
# :enddoc:
class Rainbows::Fiber::Coolio::Server < Coolio::IOWatcher
  def to_io
    @io
  end

  def initialize(io)
    @io = io
    super(self, :r)
  end

  def close
    detach if attached?
    @io.close
  end

  def on_readable
    return if Rainbows.cur >= MAX
    c = @io.kgio_tryaccept(Rainbows::Client) and Fiber.new { process(c) }.resume
  end

  def process(io)
    Rainbows.cur += 1
    io.process_loop
  ensure
    Rainbows.cur -= 1
  end
end
debug log:

solving 51c4054 ...
found 51c4054 in http://bogomips.org/rainbows-public/20170402002615.GA32751@starla/
found 3d8d85e in http://bogomips.org/rainbows.git
preparing index
index prepared:
100644 3d8d85ee9fd51b1a69a63a2e2b65410b263fddde	lib/rainbows/fiber/coolio/server.rb

applying [1/1] http://bogomips.org/rainbows-public/20170402002615.GA32751@starla/
diff --git a/lib/rainbows/fiber/coolio/server.rb b/lib/rainbows/fiber/coolio/server.rb
index 3d8d85e..51c4054 100644

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

index at:
100644 51c40548955f638f44e3e4ad58142f7004a84c35	lib/rainbows/fiber/coolio/server.rb

Rainbows! Rack HTTP server user/dev discussion

Archives are clonable:
	git clone --mirror http://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git