Displaying 20 results from an estimated 1000 matches similar to: "ssl patch"
2006 Aug 08
11
Core dump using sample DumbHttpClient
I''m using the current release branch from the repository (version_0)
on freebsd 6.1 with ruby 1.8.4. This is the error that is generated
when running the code below at the bottom of the message, plus a gdb
bt. Sorry no debugging symbols built into ruby but maybe the bt will
help anyways.
terminate called after throwing an instance of ''std::runtime_error''
what():
2007 Feb 25
6
Crash occurs where EventMachine.connect is
Hi everyone,
If you subclass EventMachine::Connection and call it outside an
EventMachine::run
event loop, EventMachine crashes! Example:
class Put < EventMachine::Connection
include EventMachine::Deferrable
HOST="localhost"
PORT=8080
def self.request(data)
EventMachine.connect(HOST, PORT, self) {|c|
c.instance_eval { @data = data }
}
end
#
2007 Aug 15
2
Interfaces for accessing SSL/TLS certificates
Hi everyone. Does anyone have any preferences or ideas for an interface for
SSL certificates, both client-side and server-side? At present, the only
interface is EventMachine::Connection#start_tls, which uses a built-in
self-signed cert on the server side. On the cilent side, it accepts any
well-formed cert (that is, it doesn''t check that the remote cert is signed
by a trusted authority).
2006 Jul 11
32
Database Concurrency Without a Web Server?
My Rails application requires a very busy worker process running in the
background at all times. I am launching this non-interactive process
using script/runner. This process is very busy and is communicating
with the MySQL server constantly. As I started putting some load on the
system to test, I started running into performance issues.
I have since discovered that Rails is only using 1
2009 Feb 26
1
0.12.4 dies with call SetTlsParms before
I upgraded from 12.2 to 12.4 and found that my happy little eventmachine
processes die with:
terminate called after throwing an instance of ''std::runtime_error''
what(): call SetTlsParms before calling StartTls
Here''s what I believe is the relevant snippet of my code, which calls
start_tls() in the connection_completed() callback:
connection =
2006 Aug 20
14
http parser
Just thought I''d let you know that your http parser worked great for
creating an http protocol handler for Eventmachine. It wouldn''t take
that much effort to use Eventmachine for Mongrel, might be worth a
shot just to see how it does. A few things would need to be
restructered, like HttpRequest where you read the rest of the body,
and calling the handler. But it
2007 Dec 14
21
Some silly benchs (was: 1.9)
Guys,
Just for fun, I tried to see (I know, a silly way to test it) how much
overhead we have calling the C functions of the extensions.
the benchmark script and the results:
http://pastie.caboo.se/128646
The naive C extension:
http://pastie.caboo.se/128647
I compared 1.8.6 (VC6 and mingw builds) against a fresh checkout of ruby trunk.
What I understand from that is 1.9 is slower than 1.8
2008 Jan 14
10
Using EventMachine to listen from non-network
I''ve actually found a way to make EventMachine listen to events from a
serial port, but only by using the pure Ruby version, using Guilliame
Pierronnet''s Ruby/SerialPort library. It turned out to be simpler
than I thought it would be:
require ''serialport''
$eventmachine_library = :pure_ruby
require ''eventmachine''
module EventMachine
class
2006 Jul 30
3
Returning custom error messages in ActionWebService
I want to return my own error messages from an API instead of letting
the client see the stack trace. I''m returning a custom structure so I
guess I could just put a member in that structure for the error
message, although that seems like kind of a hack. Any suggestions?
Chris
2006 Aug 07
16
Monthly billing and payment processor recommendations?
Hi,
I''m setting up a site that will bill on a monthly basis. I would
rather not have to worry about storing customer credit card
information. Does anyone have recommendations on payment processors
that offer monthly billing services?
I don''t want to go the paypal route as I want the user to stay on
the site. I''m hoping to find an API to integrate with. I have
2006 Jul 02
11
Google maps api in ruby/rails
I''ve been looking for any modules/tools that are available for using
the google maps api in rails. I found a couple of quick examples, but
not much more. If anyone knows of good sites that cover using google
maps api in rails please post it here:)
Chris
2007 Dec 09
38
libevent
Hello,
I have been looking at the Ruby/EventMachine. First let me say it look very
good. Reactor model with no threads makes for fast reliable server, and I
have read about marvelous Twisted framework for Python and am glad to see
something similar for Ruby.
I am writing network app with Ruby threads now and it very slow, and I try
new Ruby 1.9 with native threads that make it much slower.
2006 Oct 31
5
mongrel parser for server response
I''m taking a stab at creating a parser to parse the server response
using the mongrel parser as a base. Never having used a parser like
Ragel before in my life, I''d like some input on the following for
parsing an http server response. This is part of my modified version
of http11_parser.rl. In particular what would be better than using
''any'' to match the
2008 Jan 16
3
getsockname access
Is getsockname (or its equivalent) available to an EM Connection
object? I''d like to access the local port number in my client
application.
--Michael
2007 May 24
4
Multiple EM connections on separate threads
Hi EM Gurus,
I''m hoping someone can shed some light on the following...
I''m using a 3rd party (legacy) server that can accept up to 8
simultaneous connections on one port.
I''ve been able to make multiple connections to this server from within
one call to EventMachine::run {...}.
Specificaly, I can access each connection separately using:
em_thread = Thread.new do
2006 Aug 26
2
Mongrel grammar file
Hey Zed, any chance you mind sharing the grammar file you use with
lemon to create the parser? I''ve been meaning to sit down and learn
how to use one of those things. If not, any suggestions on a good
resource for learning how to use a LALR parser?
2005 Sep 14
2
drop down select lists within SlideDown section broken in Firefox
If I slide down a section that contains a select list, the selection box is
stuck (clicking on the down arrow on the right side of the box has no
effect). Works fine in IE. The javascript library is the one that comes with
the latest version of rails.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Sep 13
6
flicker in IE with SlideDown/SlideUp
The flicker I am seeing in IE is really really bad with SlideDown/SlideUp.
The element I am sliding is a div that contains a table. The tables are
stacked on top of each other so that the presentation actually appears as a
single table.
When I SlideDown, the toggled element flashed into view then disappears
before sliding down. On SlideUp it slides up then flashes into view for a
split
2005 Oct 30
4
IE crashing
Before I spend a ton of time trying to track something down that might not
actually be broken, maybe someone could test this with IE to see if it
crashes their browser also.
Go to http://asterisk.paymentonline.net:3000/login/user and login as user
''demo'', password ''password''. Then click on the dialplan menu option and then
click Add Script once or twice. on my
2007 Jun 24
3
Mongrel under opensolars with SMF
Thought I''d drop a note about my experience with running mongrel
directly under the solaris service management framework. So far I''m
very impressed. SMF is the solaris replacement for the init system.
It''s tied much more closely to the OS and for instance doesn''t use pid
files. I''ve found you can completely eliminate mongrel cluster, and
for that