assertion errors

0 views
Skip to first unread message

Joe

unread,
Apr 22, 2008, 9:19:42 AM4/22/08
to ebbebb
Using the latest version of ebb with ramaze I occasionally get:

ruby: ebb.c:146: on_client_readable: Assertion `client->read <=
(client->parser.content_length + client->parser.nread)' failed.
Aborted

production server doing about 50 requests per second.

any ideas?


Ry

unread,
Apr 22, 2008, 9:25:05 AM4/22/08
to ebbebb
Hi Joe,

looks like a bug with the request logic. can you help me repeat it by
describing what you're doing?

thanks,
ry

Joe

unread,
Apr 22, 2008, 11:16:42 AM4/22/08
to ebbebb
I have nginx in front of ramaze which interfaces with ebb like:
Ramaze.start :adapter => :ebb, :host => '127.0.0.1', :port => 3010

There are a thousands of hosts that point to this server and all sorts
of weird requests getting thrown at it, but I want to do the same for
all requests, so I:

Ramaze::Route[/.*/] = '/index'

index just gets the host name from request.http_host and spits out a
template. It doesn't care about the request path, type or parameters.

The server has been using "thin" for a couple of months, but I'd like
to switch to ebb.

I'm not sure what request is causing it to die, if you want to send me
some debug code to print out the request structure I'd be happy to put
that in place.

thanks,
-joe

Ry

unread,
Apr 22, 2008, 11:26:09 AM4/22/08
to ebbebb
hi joe

On Apr 22, 5:16 pm, Joe <super...@gmail.com> wrote:
> The server has been using "thin" for a couple of months, but I'd like
> to switch to ebb.

cool, i'm interested to know of being used on sites with high traffic

> I'm not sure what request is causing it to die, if you want to send me
> some debug code to print out the request structure I'd be happy to put
> that in place.

can you uncomment ruby_lib/ebb.rb line 52 and send me the output?

thank you,
ry
Reply all
Reply to author
Forward
0 new messages